On Wed, Nov 27, 2002 at 09:55:44AM -0500, Mark Stosberg wrote:
>   /usr/local/bin/python /usr/local/bin/tmda-pending -Cbs -O 48h | /usr/bin/mail -s 
>"TMDA new in pending" \
>        [EMAIL PROTECTED] > /dev/null 2>&1

[ ... ]

>   /usr/local/bin/python /usr/local/bin/tmda-pending -sbdO 30d | /usr/bin/mail -s 
>"TMDA deleted from pending" \
>        [EMAIL PROTECTED] > /dev/null 2>&1

I don't think that we should put the "/usr/local/bin/python" and 
"/usr/local/bin/tmda-pending" lines in there.  That assumes that python is
installed in /usr/local/bin (not necessarily a good assumption) and it
assumes that tmda-pending is installed in /usr/local/bin (also not
necessarily a good assumption).

>On FreeBSD 4.5, this failed until I was explicit about my paths. This change
>shouldn't hurt other environments (as long as the installation directory is the
>same, which I think people should be smart enough to change)

The problem that you're having is with your PATH environment variable.
On my machine, I've put the above commands (without the full pathname)
into a script.  In that script I set the path by putting the following
into the script before the commands:

        PATH=$PATH:/usr/local/bin

Once you do this, the commands should work just fine.  If you are not
putting these commands into a script and are running them directly out
of cron, then you can easily tell cron to use /usr/local/bin by adding
the above line to the crontab.  Try "man 5 crontab" for more details.

I don't think that adding the full paths to the FAQ entry is a good idea.
But if everyone else does, then that's fine with me.

Cheers,
- Mark
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to