Hi
I want to run nph-index.cgi from cron however
if I run perl nph-index.cgi from the command line I get a message:
(offline mode: enter name=value pairs on standard input)
I was told to hit control d which then lets the script run (and fine it does) but I want to run this scheduled from crontab.
So 2 questions how do I get rid of this message which requires me to hit control d and also if I try to run the script anywhere outside the admin directory it can not find links.pm.
So in crontab I have a line:
00 14 * * * root /home/chilli/cgi-bin/links/admin/admin_index
and I have a file called "admin_index" in the admin directory with a line which says:
perl /home/chilli/cgi-bin/links/admin/nph-index.cgi
So is this not working because of the control d problem above or have I done this completely wrong.
Many Thanks
Tony
I want to run nph-index.cgi from cron however
if I run perl nph-index.cgi from the command line I get a message:
(offline mode: enter name=value pairs on standard input)
I was told to hit control d which then lets the script run (and fine it does) but I want to run this scheduled from crontab.
So 2 questions how do I get rid of this message which requires me to hit control d and also if I try to run the script anywhere outside the admin directory it can not find links.pm.
So in crontab I have a line:
00 14 * * * root /home/chilli/cgi-bin/links/admin/admin_index
and I have a file called "admin_index" in the admin directory with a line which says:
perl /home/chilli/cgi-bin/links/admin/nph-index.cgi
So is this not working because of the control d problem above or have I done this completely wrong.
Many Thanks
Tony