Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cronjobs not working

Status
Not open for further replies.

kusaitenshichan

Programmer
Oct 2, 2001
1
CA
I'm having a problem setting up my cron jobs on freeBSD.

I created a file called 'cronfile.txt' and inside i placed the following

32 12 * * * /home/
then i performed the following call thru ssh:

crontab cronfile.txt

and i checked it with crontab -l.
but at 12:32 pm, the script didn't run.

I also tried creating the cronfile with crontab -e, but that didn't work either.

The script works fine when i execute it at the command prompt.

Any help on this matter would be appreciated.

Thanks!
 
check any environment dependencies (variables, paths , etc) in your script myscript.pl

hth
stan
 
you have to specify the username that run that script, so your new cron line will look like this:

32 12 * * * username/home/www/blah.com/myscript.pl

and finally insert that line into /etc/crontab
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top