rhodesy

Well-Known Member
Dec 24, 2003
305
0
166
Hey, Im looking to insert a cron job automatically from a php script - any ideas?

The cpanel username and password are given.

Thanks!
 

rhodesy

Well-Known Member
Dec 24, 2003
305
0
166
thats an idea - im noy too familuar with cpanels cron function - does each user have their own - im guessing they do - if so, where is it pls
 

PWSowner

Well-Known Member
Nov 10, 2001
2,903
4
343
ON, Canada
User cron jobs would be in the file at /var/spool/cron/username which doesn't exist until the user has a cronjob set. You just need to have your script add the properly formated line to that file and restart crond.
 

rhodesy

Well-Known Member
Dec 24, 2003
305
0
166
right - thankyou very much - il have a play around. The reason I want this is that its one less job for the user to have to do when installing a script of mine.