APM: Crontab problem

David Murphy David at starlightmedia.net
Sun Jun 29 20:53:51 CDT 2003


Im trying to load a script via  crontab

 

 

The cronttab entry is  

*/2 * * * *  QUERY_STRING='Blah:Blah' && export QUIERY_STRING && cd
/path/to/script && ./script.pl

 

Some varations ive tried are

1.	Putting the command in a sh file and running that
2.	*/2 * * * *  QUERY_STRING='Blah:Blah' ; export QUIERY_STRING ;cd
/path/to/script ; ./script.pl
3.	*/2 * * * *  QUERY_STRING='Blah:Blah' ; export QUIERY_STRING ;cd
/path/to/script ; perl script.pl
4.	*/2 * * * *  QUERY_STRING='Blah:Blah' ; export QUIERY_STRING ;
perl  /path/to/script.pl
5.	*/2 * * * *  QUERY_STRING='Blah:Blah' ; export QUIERY_STRING ;
/path/to/script.pl
6.	Writing a Perl script that  issue
system('QUERY_STRING='Blah:Blah' ; export QUIERY_STRING ;cd
/path/to/script ; ./script.pl')

None of these work but all of these if put into sh or bash run fine.

 

 

What I get back via a cronemail is variable

But one thing  is constant it always in one way or another say file not
found

Either sh cant find it or perl cant or bin/sh couldn't find it.

 

 

Anyhelp here would be awesome

 

 

And  0755 is the permissions and owner ship of the file it to the user
running the cron.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/austin/attachments/20030629/39e01b2b/attachment.htm


More information about the Austin mailing list