in reply to Re^2: Running a perl script automatically on Mac OS X 10.5
in thread Running a perl script automatically on Mac OS X 10.5
and if the current "mode flags" on the script file allow it to be executable (use the chmod +x to make the script executable), then your crontab entry can simply be:#!/usr/bin/perl
(plus any args that the script might need for its @ARGV). Note that if the script writes anything to STDOUT or STDERR, this material will be sent to your mac login account as an email message (check out the unix "mail" command), unless your cron entry includes redirection on the command line, e.g.:23 13 * * * /absolute/path/to/script.pl
In that example, "./" represents your home directory, which is where the output files will be created.23 13 * * * ./mypath/to/script.pl > cron.out 2> cron.err
|
|---|