If i run rsync inside screen, then after while i can login to server and attach detached screen.
Now i want to run rsync from crontab
. I added entry to crontab: 03 19 * * * root /usr/bin/screen -dmS rsyncSess uptime
after crontab executes command, i run screen -ls
. nothing listed. after i run command: /usr/bin/screen -dmS rsyncSess watch -n 5 uptime
i can see that session when run command: screen -ls
How i can run script in screen from crontab
and then attach that screen session to see output of rsync (even after rsync are finished)?
Until now i found this tread: https://askubuntu.com/a/15291