* Running TOP using crontab
@ 1995-03-03 0:38 NSYSTEM
0 siblings, 0 replies; only message in thread
From: NSYSTEM @ 1995-03-03 0:38 UTC (permalink / raw)
To: tru64-unix-managers
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1995-03-03 0:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-03-03 0:38 Running TOP using crontab NSYSTEM
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox