tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* [Summary] cron
@ 1998-10-15 21:09 Oyanarte Portilho
  0 siblings, 0 replies; only message in thread
From: Oyanarte Portilho @ 1998-10-15 21:09 UTC (permalink / raw)
  To: tru64-unix-managers

Hi Guys/Gals,

Thanks to the following folks:

"Sheila Hollenbaugh" <shollen@cs.wright.edu>
"Skeate, Scott B" <scott.b.skeate@lmco.com>
"Sean O'Connell" <sean@stat.Duke.EDU>
alan@nabeth.cxo.dec.com
"Dr. Tom Blinn" <tpb@doctor.zk3.dec.com>
"Bruce B. Platt" <bbp@comport.com>
Bruce Hines <Bruce.Hines@mci.com>
"Kevin Oberman" <oberman@es.net>
Rich Lafferty <rich@alcor.concordia.ca>
"Nestor Ruiz" <nruiz@hermes.bvl.com.pe>

As ever Dr. Tom Blinn rides again, together with Nestor
Ruiz. They provided the solution that works to me, namely
just add a symbolic link for gzip in /usr/bin pointing to
/usr/local/bin/gzip.

Some people also suggested to give the full path whenever
gzip is called inside aw-parser but I preferred not to
edit that copyrighted file.

Sean O'Connell suggested to include the PATH command in
my script but unfortunately it did not work in this case.

Below are the original post and the instructive message
from Dr. Tom Blinn.


	Oyanarte Portilho
	Institute of Physics
	University of Brasilia, Brazil

---------

(original)

Hi Gurus,

I have edited crontab in order to run periodically a script
containing two commands related to Accesswatch data update:
aw-parser and aw-report. The data are collected from the
access_log file generated by httpd. However cron complains
not finding gzip as can be noticed from its e-mail to root:

        sh: gzip: not found

However if I run the script manually everything works fine.
How can I teach cron to find gzip's path, i.e., /usr/local/bin?

--------
--------

(Dr. Tom Blinn' reply):

With great diffculty.  Cron is NOT a shell.  It gets run from init, which is
not a shell.  You can either put a symlink to gzip in the usual places where
the default root path would find it (e.g., in /usr/bin), or you can edit
your shell script to add /usr/local/bin to the PATH before you attempt to
run the section that runs gzip.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-10-15 21:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-10-15 21:09 [Summary] cron Oyanarte Portilho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox