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.
Received on Thu Mar 02 1995 - 19:39:49 NZDT