Solved

Schedule cron.pl to run daily

Posted on 2004-10-25
345 Views
Last Modified: 2010-04-13
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
0
Question by:galinak
    8 Comments
     
    LVL 15

    Expert Comment

    by:Yan_west
    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
     
    LVL 3

    Expert Comment

    by:browolf
    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
     

    Author Comment

    by:galinak
    cron.pl is a script that supposed to replace windows scheduling in the same way as cron is working in Unix.
    0
     
    LVL 3

    Expert Comment

    by:browolf
    you want to use cron.pl to run another perl script?
    0
     

    Author Comment

    by:galinak
    Right.
    0
     
    LVL 3

    Expert Comment

    by:browolf
    why do you need to use cron instead of windows scheduler?
    0
     

    Author Comment

    by:galinak
    It was done this way and client wants to have it done this way.
    0
     
    LVL 3

    Accepted Solution

    by:
    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    Every business owner understands the significance of online customer reviews and the impact it can have on sales and revenues. With technology advancing at such a rapid pace, getting online reviews has never been easier, especially when many regions…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    913 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now