I've ran "cd /var/www/cgi-bin" in putty but it didn't work, instead I would get this error message8 ) Add cron.pl script to your crontab to run it every hour, cron_deleted_email.pl to run every day.
Sample:
0 * * * * cd /var/www/cgi-bin;./cron.pl >/dev/null 2>&1
0 0 * * * cd /var/www/cgi-bin;./cron_deleted_email.pl >/dev/null 2>&1
"-bash: cd: /var/www/cgi-bin: No such file or directory"
but I've ran "./cron.pl >/dev/null 2>&1" and it worked
so I was wondering, in the crontab do I just insert "./cron.pl >/dev/null 2>&1" for command or is it necessary to insert "cd /var/www/cgi-bin;./cron.pl >/dev/null 2>&1"??
It's the same scenario with "cd /var/www/cgi-bin;./cron_deleted_email.pl >/dev/null 2>&1"
"./cron_deleted_email.pl >/dev/null 2>&1" works but again, do insert "./cron_deleted_email.pl >/dev/null 2>&1" into command for crontab or I have to put both "cd /var/www/cgi-bin;./cron_deleted_email.pl >/dev/null 2>&1"?
thanks!