[lug] Shell/Cron and passing args
John Starkey
jstarkey at advancecreations.com
Fri Jan 31 10:46:51 MST 2003
On Thu, 2003-01-30 at 13:27, Andrew Gilmore wrote:
> I think he really needs a pipe instead...
>
> 01 00 * * * /path/to/make_featured.php links | /path/to/phpbin >
> /path/to/log/cron 2>&1
>
> May work better. I didn't catch that you were using a redirect from
> another script. That won't work at all. And if you omit the argument,
> you'll just get the file contents directed.
The "phpbin" is just a compiled php binary, custom for that user - I
probably should have just used "/path/to/php" instead.
Thanks Andrew, and everyone, for the help. Piping it worked.
John
--
John Starkey <jstarkey at advancecreations.com>
More information about the LUG
mailing list