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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

anyone familiar with cronw? I can't my cronjob to run

Status
Not open for further replies.

GZPM

IS-IT--Management
Jan 20, 2006
18
US
I'm on W-xp, so I installed cronw service last night. This is my first time dealing with crons. I already read the FAQ on this site, but everything is geared towards unix.

the intended perl script to be run via cronjob works fine when I run it directly, so I know that's not where the problem lies.

my cronlog file states (and I can see perl.exe in my task manager process window):
[2007/01/11 04:18:30] starting service
[2007/01/11 04:18:30] cron service started

I edited the crontab.txt in the Cronw directory to this one line, saved it, and waited:
10 0 * * * C:\Perl\bin\perl.exe C:\Documents and Settings\Me\My Documents\create_ftp_output.plx

nothing happens.

What additional step am I missing?
 
Did you want your cronjob to run at 10:00hrs or at 00:10hrs ?
Your crontab.txt file says run the job at 00:10 (ten minutes past midnight) every day of the week. It looks like the service has only been up since 04:00, so perhaps you should wait another 20 hours or so, or re-edit your crontab.txt file.

I hope that helps.

Mike
 
How long did you wait? ;-)

That entry should run at 10 past midnight. Is that what you were expecting?
 
thanks for catching that Mike042. I went back and edited the crontab.txt file to :

2 * * * * C:\Perl\bin\perl.exe C:\Documents and Settings\Me\My Documents\create_ftp_output.plx

and still waiting for some kind of output.
 
Have the time gone passed 2 minutes passed the hour ? It should run then.

I hope that helps.

Mike
 
I tried various times since last night, I even now have it down to every two minutes...nada.

*/2 * * * * C:\Perl\bin\perl.exe C:\Documents and Settings\Me\My Documents\create_ftp_output.plx

does the crontab.txt file need to be in a different path? it's currently in the original path where it was created: C:\Perl\CRONw

I have admin rights on the machine it's running on, but do I still need to use the --user= and --pass= switches to identify myself?

 
I use Perl on Solaris and Windows Server 2003, so I don't know where the file should be located. Doesn't the documentation tell you where it should be for WinXP?

Regards.

Mike
 
Did you start the cron service and is it running? I wonder if it is going to handle the spaces in your path without quotes? Also you do know that XP has utility built in call Scheduled Tasks that is pretty much identical to cron (but with all those pretty GUI windows :) )
 
travs69 you hit it on the nose! I moved my perl script from where it was originally (folder name with spaces) onto the main C drive. That did it.

Thanks for the help everyone!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top