in reply to Re: Running a script daily
in thread Running a script daily

Are you on linux or something unixoide? In that case there is a cron daemon already running on your system. Why start another one?

Well the issue is that I don't even know how to implement this. I want to update the .txt at midnight everyday and then produce a new bar graph or chart of the data.

Replies are listed 'Best First'.
Re^3: Running a script daily
by jethro (Monsignor) on Aug 19, 2010 at 18:11 UTC

    Short intro to cron. Call cron with this on the command line (as the user who should run the script):

    export EDITOR=emacs crontab -e

    Substitute 'emacs' with your favourite editor if you like

    Then your editor should start and you can input a line

    0 0 * * * script.pl

    The first 0 means minute, the second hour. The next fields are day of month, month and day of week, and a '*' is equivalent to 'any'. So it is 0:00 of any day in any month and any day of the week.

    Save and from then on cron will call your script.pl every night at 12

Re^3: Running a script daily
by choroba (Cardinal) on Aug 19, 2010 at 16:58 UTC