On 1/3/02 at 8:07 PM, Paul Rimmer <[EMAIL PROTECTED]> wrote:

> Is there a command equivalent to "env" to check all
> available environment variables?

env may be available as part of recent busybox versions; I know there
was a patch for it.  Also, ash should give you a report with the 'set'
command:

# set

Hope this helps!

> Any ideas on what should I check to rule this out Dave?

Make sure the path is set correctly.  Many cron jobs will set their
own paths.  If there are any other environment variables you are
counting on, set them - though I'm not sure which ones those would be.

Another way is to hard code the actual locations.  Some programs look
like this:

#!/bin/sh

RM=/bin/rm
GZIP=/usr/bin/gzip

$GZIP xxxxxx && $RM xxxxxxxx

...and so forth.  I think that setting your own PATH is easier - and
probably also more secure.
--
David Douthitt
UNIX Systems Administrator
HP-UX, Unixware, Linux
[EMAIL PROTECTED]

_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to