Schedule cron.pl to run daily

Hi,
I have "inherited" perl script that need to be run daily and cron.pl script but i don't know how to schedule cron.pl script to run daily on Windows 2000 computer.

thanks
galinakAsked:
Who is Participating?
 
browolfCommented:
ok.
there's a program called cygwin that which is like a unix environment  that you can run on win2k http://cygwin.com/

here's someone asking a similar thing to you
http://www.cygwin.com/ml/cygwin/2002-04/msg00803.html
You can search the cygwin mailing list archives here as well: http://cygwin.com/ml/cygwin/

if you're familiar with cron on linux/unix or just familiar with linux/unix  you shouldnt  have too much trouble.

the only other thing i can think of is to run c:\pathtoperl\perl.exe cron.pl from the startup folder in the start menu.  To get it there you'll have to create a shortcut for it at
C:\Documents and Settings\All Users\Start Menu\Programs\Startup

or you can create your own services using a prog called srvany.exe
http://support.microsoft.com/?id=137890
get the files here: http://snakefoot.fateback.com/tweak/winnt/files.html


0
 
Yan_westCommented:
go to dos, and type at /?

this command lets you schedule something at any time and date you want..

here is the syntax... it works in XP, NT 4, 2000:

http://windows.about.com/library/tips/bltip637.htm
0
 
browolfCommented:
there should be a "scheduled tasks" item in control panel. where you can add it. the only problem then being the commandline to use to run the script. probably something like

c:\pathtoperl\perl.exe cron.pl

0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
galinakAuthor Commented:
cron.pl is a script that supposed to replace windows scheduling in the same way as cron is working in Unix.
0
 
browolfCommented:
you want to use cron.pl to run another perl script?
0
 
galinakAuthor Commented:
Right.
0
 
browolfCommented:
why do you need to use cron instead of windows scheduler?
0
 
galinakAuthor Commented:
It was done this way and client wants to have it done this way.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.