[mrtg] Need help when running script in crontab

Ershad Shafi Chowdhury iru at bol-online.com
Mon Aug 2 10:39:52 MEST 1999


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


More information about the mrtg mailing list