unix - Crontab append remotely -



unix - Crontab append remotely -

i append entries crontab on remote server. this.

for host in $hosts ssh $host echo "5,10,15,20 05,35 8-20 * * * /myhome/myscript" crontab_file done

problem not know name of crontab file line needs appended with

you should not edit crontab file directly, utilize crontab -e (why? read this). create simple text file script , cut&paste crontab.

unix

Comments

Popular posts from this blog

c# - Move local mssql database to webhosted MYSQL -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

java - How to pass parameters between Request-Scoped Controllers? -