-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Denny White wrote:
When f-prot tries to update in root's cron, it reports fatal
error, can't find unzip. Unzip is located in /usr/local/bin
which is in root's path env:

PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:
/usr/local/bin

On Dec 27 Nick Holland contributed the following:
WHICH "root's path env"?
When root logs in?  or when root's crontab runs?  That's two separate
environments...

Have tried unzip from deep into directory structure and it works,
comes up fine. Just wondering what I'm doing wrong. Works fine on
my old hp netserver running fbsd_5_4. Can't find any major differences
in the setups. Thanks for any & all help & advice.
Denny White

replace your invocation of unzip or whatever you actually have in your
cron job with a "echo $PATH" and see what your path REALLY is when the
program executes.

Something funny about the way your line broke there...gotta wonder if
that "/usr/local/bin" is on a separate physical line...assuming that was
in the crontab in the first place...

Nick.


Thanks Nick. Here's what "echo" $PATH returned from the cron job:

/bin:/sbin:/usr/bin:/usr/sbin

I fixed the path statement in cron. Now I see what you're saying. And,
the path line I put in the original message was too long to fit on the
screen, at least as far as I thought was acceptable in the mailing list,
so I just continued it on the next line. F-prot was trying to call unzip
from within the perl script updater & not getting anywhere due to my goof.
Sorry for the bother. I'm still trying learn my way around obsd. I've run
fbsd for a while on another box & never had path problems there with cron
& f-prot. I went & checked it & there is no path path statement in roots
crontab on that system. That's why, I guess, I never thought to check it
on this system. BTW, the script just ran & updated f-prot successfully.
Thanks again for the help.

Please do not CC me. Already subscribed to mailing list.

GnuPG key  : 0x1644E79A  |  http://wwwkeys.nl.pgp.net
Fingerprint: D0A9 AD44 1F10 E09E 0E67  EC25 CB44 F2E5 1644 E79A
iD8DBQFDsleOy0Ty5RZE55oRAgsSAJ9TldTe3hkWbGbJW1iyjhCxSM0RWQCgwIXC
EGRBW0lryVhHfa5g8LYgdPE=
=iZ0L
-----END PGP SIGNATURE-----

Reply via email to