From: NSYSTEM () beau ! nb ! rockwell ! com
To: tru64-unix-managers
Subject: Running TOP using crontab
Date: Fri, 03 Mar 1995 00:38:14 +0000 [thread overview]
Message-ID: <96075318306375.tru64-unix-managers.marc@archive.invalid> (raw)
Hello,
I am running a ksh script every half an hour using crontab.
In the script I have an entry as follows:
nohup /root/bin/top |grep "Processes" >> $log_file
And I put the script containing the entry above into
the crontab as follows
00,30 * * * * /root/general/work > /root/general/work.log 2>&1
I am unable to get results from the grep command because
something is not right when TOP starts. I get errors
top: can't allocate sufficient memory
top: can't allocate sufficient memory
in my work.log file. I am trying to get the number of processes
and the memory usage to output to a log file. I appreciate any
suggestions. When I tried running the script by issuing
./work
I was able to get the result from the grep command, but it will
not work when I run it using the crontab. Thanks.
reply other threads:[~1995-03-03 0:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox