<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1021441" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1021441</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/crontab-errors#comment-1132197</link>
    <description> &lt;p&gt;Oh, and the difference...&lt;/p&gt;
&lt;p&gt;Say you had a script that required environmental variables (apache settings, etc.).  Or you needed information from the client&#039;s HTTP Request header.  Yadda yadda yadda.  Or any interaction whatsoever with a user.&lt;/p&gt;
 </description>
     <pubDate>Wed, 28 May 2003 06:34:40 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1132197 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/crontab-errors#comment-1132196</link>
    <description> &lt;p&gt;That is the directory, not the binary.  So try this path:&lt;br /&gt;
/usr/local/lib/php/bin/php&lt;/p&gt;
&lt;p&gt;I found the location by doing &quot;whereis php&quot;.  Which returned &quot;/usr/local/php&quot;.  I new the binary was &quot;bin/php&quot;, so I appended that and used &quot;/usr/local/php/bin/php&quot;.&lt;/p&gt;
 </description>
     <pubDate>Wed, 28 May 2003 06:33:19 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1132196 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/crontab-errors#comment-1132185</link>
    <description> &lt;p&gt;I think you need to go to the executable PHP directory&lt;br /&gt;
Mine is /usr/bin/php&lt;br /&gt;
I never was able to get it to work as a standalone executable though.... bleh&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 May 2003 20:50:06 +0000</pubDate>
 <dc:creator>nike_guy_man</dc:creator>
 <guid isPermaLink="false">comment 1132185 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/crontab-errors#comment-1132183</link>
    <description> &lt;p&gt;/bin/sh: /usr/local/lib/php: is a directory&lt;/p&gt;
&lt;p&gt;Is the new error, with this:&lt;/p&gt;
&lt;p&gt;58 23 * * * /usr/local/lib/php -f /path/to/file/expiredfiles.php&lt;/p&gt;
&lt;p&gt;? Ideas?&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 May 2003 20:30:42 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1132183 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/crontab-errors#comment-1132179</link>
    <description> &lt;p&gt;Okay, how do you know where php is?&lt;/p&gt;
&lt;p&gt;Edit: nevermind, for my server it&#039;s /usr/local/lib/php and I find this by doing the &amp;lt;? php_info() ?&amp;gt; thing, it&#039;s the include_path, right?&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 May 2003 19:58:05 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1132179 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/crontab-errors#comment-1132176</link>
    <description> &lt;p&gt;oh wow, a new option!!&lt;/p&gt;
&lt;p&gt;okay, trying that, thanks, Mark!&lt;/p&gt;
&lt;p&gt;Quick Question: what&#039;s the difference between running it under apache and not running it under apache?&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 May 2003 19:30:56 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1132176 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/crontab-errors#comment-1132167</link>
    <description> &lt;p&gt;Hey hold up!  No need to rewrite when you just need a simple crontab line...&lt;/p&gt;
&lt;p&gt;Depending on how your script needs to run... under apache:&lt;br /&gt;
58 23 * * * lynx &lt;a href=&quot;http://example.com/path/to/file.php&quot; title=&quot;http://example.com/path/to/file.php&quot;&gt;http://example.com/path/to/file.php&lt;/a&gt;&lt;br /&gt;
58 23 * * * wget &lt;a href=&quot;http://example.com/path/to/file.php&quot; title=&quot;http://example.com/path/to/file.php&quot;&gt;http://example.com/path/to/file.php&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;not under apache:&lt;br /&gt;
58 23 * * * /path/to/php -f /path/to/file.php&lt;/p&gt;
&lt;p&gt;on my linux box, php is at /usr/local/php/bin/php&lt;/p&gt;
&lt;p&gt;If you&#039;re script has any output, you can redirect it with &quot;2&amp;gt;/dev/null/&quot;  or any other log file &quot;2&amp;gt;my.log&quot;.&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 May 2003 18:17:48 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1132167 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/crontab-errors#comment-1132162</link>
    <description> &lt;p&gt;Ok Suaznne, I&#039;ll take a look at the source from my office tomorrow. From what you describe, it should be easy enough -- Perl has the same good support for databases through the DBI set of modules as has PHP.&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 May 2003 17:49:55 +0000</pubDate>
 <dc:creator>Wil</dc:creator>
 <guid isPermaLink="false">comment 1132162 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/crontab-errors#comment-1132156</link>
    <description> &lt;p&gt;Heh, nah, I was just posting as I was learning. Sometimes I need to explain things to someone else in order to figure things out and there wasn&#039;t anyone nearby. &lt;/p&gt;
&lt;p&gt;I don&#039;t think I gave anyone a chance to comment!&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 May 2003 16:54:28 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1132156 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/crontab-errors#comment-1132154</link>
    <description> &lt;p&gt;LOL...I don&#039;t think I have ever seen anyone post 6 times (talking to themselves) before someone steps in and answers. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt; &lt;/p&gt;
&lt;p&gt;I guess that is a disadvantage of knowing more than than most everyone else here huh? &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 May 2003 16:50:17 +0000</pubDate>
 <dc:creator>disaster-master</dc:creator>
 <guid isPermaLink="false">comment 1132154 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
