2017/03/23

Create cronjob for specific user.

It tells how to create cronjob for specific user.

Please modify /etc/crontab directly if use the user column for cronjob.

  */5 * * * * hubert /path/to/MyRoutineProc.sh  

[command]
sudo vi /etc/crontab

---------------------------------------------------------------

Please use -u option to assign cronjob for specific user.

[command]
sudo crontab -u USERNAME -e

[reference]
http://stackoverflow.com/a/30445074

1 comment: