[mrtg] Re: Need help when running script in crontab

Mike Starkweather mstark at primary.net
Mon Aug 2 10:38:21 MEST 1999


Have you checked the rights of scripts run under crontab.  Might they be
different than your rights?

Mike Starkwather
-----Original Message-----
From: Ershad Shafi Chowdhury <iru at bol-online.com>
To: mrtg at list.ee.ethz.ch <mrtg at list.ee.ethz.ch>
Date: Monday, August 02, 1999 3:36 AM
Subject: [mrtg] Need help when running script in crontab


>hi! I have script that calculates the total number of users online and
>redirects output to four lines with no problems. But the same script, when
>run from crontab returns a value of "zero". basically the script looks like
>this :
>
>telnet hostname 987  | grep user  | wc -l  > filename
>..
>..
>..
>
>The output from "telnet" from cron is
>
>Connected to maia.bol-online.com.
>Escape character is '^]'.
>Connection closed by foreign host.
>
>with all the stuff inbetween missing, so obviously "grep" can't find any
>"user" and "wc" counts zero lines!
>I figured someone else here must have faced a similar problem. Any
>suggestions?
>
>TIA!
>EC
>
>--
>* To unsubscribe from the mrtg mailing list, send a message with the
>  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
>* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
>

--
* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg


More information about the mrtg mailing list