Hi...
I'm not sure if this right... but this is what I put in my crontabs....
at the first line I put:

#!/bin/sh
PATH=/usr/bin:/usr/sbin  (or what ever paths you want)

* * * * * command blah blah


Hope this helps...

Mike
----- Original Message -----
From: "André Borman" <[EMAIL PROTECTED]>
To: <debian-user@lists.debian.org>
Sent: Wednesday, May 30, 2001 7:50 PM
Subject: crontab running scripts




Hi there,

I would like to know how I can get e.g. this crontab entry

* * * * * /usr/local/bin/foo -options arg1 arg2

to run right.

Foo is a script that calls external programs itself that need the mentioned
options and arguments. It seems that when foo is executed, the external
programs are not executed because they're not in the path. When I include
the absolute paths in the script everything works fine, but that's not
really satisfying.

I thought

* * * * * /bin/bash foo -options arg1 arg2

might do it because the path is defined somewhere in the bash config,
right? But it doesn't work.

Can somebody help me out?

Best regards,

André Borman.



==========================================================================
--------------------  - -- .. Random Thought .. -- -  --------------------
--------------------------------------------------------------------------

"Enjoy the little things in life, for one day you may look back and realize
they were the big things." - Antonio Smith

==========================================================================


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact
[EMAIL PROTECTED]



Reply via email to