<html>
<body>
The examples have two different spellings of the variable: QUERY_STRING
and QUIERY_STRING. If it's in the crontab job that way it might be the
problem.<br>
Also make sure the shebang line in the Perl program has the right path to
your Perl executable. If that path is not right, you'll get the
&quot;file not found&quot; message from trying to find the Perl
executable. BTW I frequently screw this up when developing on a Windows
box to run on Linux or Unix.<br><br>
At 08:53 PM 6/29/2003 -0500, David Murphy wrote:<br><br>
<blockquote type=cite class=cite cite><font face="arial" size=2>Im trying
to load a script via&nbsp; crontab<br>
</font><br>
<font face="arial" size=2>&nbsp;<br>
</font><br>
<font face="arial" size=2>&nbsp;<br>
</font><br>
<font face="arial" size=2>The cronttab entry is&nbsp; <br>
</font><br>
<font face="arial" size=2>*/2 * * * *&nbsp;
QUERY_STRING=Blah:Blah&amp;&amp; export QUIERY_STRING &amp;&amp; cd
/path/to/script &amp;&amp; ./script.pl<br>
</font><br>
<font face="arial" size=2>&nbsp;<br>
</font><br>
<font face="arial" size=2>Some varations ive tried are
<ol>
<li>Putting the command in a sh file and running that</font> 
<li><font face="arial" size=2>*/2 * * * *&nbsp; QUERY_STRING=Blah:Blah;
export QUIERY_STRING ;cd /path/to/script ; ./script.pl</font> 
<li><font face="arial" size=2>*/2 * * * *&nbsp; QUERY_STRING=Blah:Blah;
export QUIERY_STRING ;cd /path/to/script ; perl script.pl</font> 
<li><font face="arial" size=2>*/2 * * * *&nbsp; QUERY_STRING=Blah:Blah;
export QUIERY_STRING ; perl&nbsp; /path/to/script.pl</font> 
<li><font face="arial" size=2>*/2 * * * *&nbsp; QUERY_STRING=Blah:Blah;
export QUIERY_STRING ; /path/to/script.pl</font> 
<li><font face="arial" size=2>Writing a Perl script that&nbsp; issue
system(QUERY_STRING=Blah:Blah; export QUIERY_STRING ;cd /path/to/script ;
./script.pl)</font> 
</ol><br>
<font face="arial" size=2>None of these work but all of these if put into
sh or bash run fine.<br>
</font><br>
<font face="arial" size=2>&nbsp;<br>
</font><br>
<font face="arial" size=2>&nbsp;<br>
</font><br>
<font face="arial" size=2>What I get back via a cronemail is
variable<br>
</font><br>
<font face="arial" size=2>But one thing&nbsp; is constant it always in
one way or another say file not found<br>
</font><br>
<font face="arial" size=2>Either sh cant find it or perl cant or bin/sh
couldnt find it.<br>
</font><br>
<font face="arial" size=2>&nbsp;<br>
</font><br>
<font face="arial" size=2>&nbsp;<br>
</font><br>
<font face="arial" size=2>Anyhelp here would be awesome<br>
</font><br>
<font face="arial" size=2>&nbsp;<br>
</font><br>
<font face="arial" size=2>&nbsp;<br>
</font><br>
<font face="arial" size=2>And&nbsp; 0755 is the permissions and owner
ship of the file it to the user running the cron.</blockquote>
<x-sigsep><p></x-sigsep>
------------------------------------------------------------------------<br>
Larry Hunter&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
lhunter@lhunter.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://lhunter.com/" eudora="autourl">http://lhunter.com/</a></font></body>
</html>