ksmatthews Posted September 29, 2008 Share Posted September 29, 2008 Hi There, Does anyone have any ideas about editing crontab programmatically using PHP. When a crontab file is created by a user, where does it actually live ?? Which directory ? The crontab manual recommends NOT trying to edit the crontab file manually but by using crontab -e. Regards, Steven M Link to comment https://forums.phpfreaks.com/topic/126241-programming-crontab/ Share on other sites More sharing options...
trq Posted September 29, 2008 Share Posted September 29, 2008 The following would add.... * * * * * /usr/bin/echo foo to the thorpe users current crontab. echo -e "$(crontab -l)\n* * * * * /usr/bin/echo foo" | crontab -u thorpe - Link to comment https://forums.phpfreaks.com/topic/126241-programming-crontab/#findComment-652839 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.