in reply to 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?

Replies are listed 'Best First'.
Re^2: Running a script daily
by speedyshady (Novice) on Aug 19, 2010 at 16:53 UTC

    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.

      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