Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cron job help

Status
Not open for further replies.

Astor

Programmer
Jul 3, 2002
12
ES
This must be a very stupid question.

I have a very simple perl script called test.cgi

I call it through the browser and it does what it's supposed to do. Now I want the server to run it say every minute. For my cron tab command I have:

* * * * * /<my path>/test.cgi

Obviously the script is not being run, so my question is: What am I missing?
 
you want to ignore the "webiness" of your script?

if so, 1st try
<my path>/test.cgi

if this works, is the cron running as the same user as you are testing the cgi with? if not, you need to assure the environment and permissions are correct.

is there mail (cron output) when it fails?
 
* * * * * /<my path>/test.cgi

Didn't send me any email notifications.

I tried, * * * * * <my path>/test.cgi

and now I get these emails:

/bin/sh: line 1: <path>/test.cgi: No such file or directory

Permissions are ok, as when I call the script manually through a browser it works fine.

Any thoughts?
Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top