I add some job in crontab file on a server.
-
When I log out and the server is still on, will the job still run?
-
Does it matter if I create a screen or tmux session and run some shell in it and detach it before log out?
cron
I add some job in crontab file on a server.
When I log out and the server is still on, will the job still run?
Does it matter if I create a screen or tmux session and run some shell in it and detach it before log out?
Best Answer
cron
is a process which deals with scheduled tasks whether you are logged in or not. It is not necessary to have a screen or tmux session running since the cron daemon will execute the scheduled tasks in separate shells.See
man cron
andman crontab
for details.