From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075318306375.tru64-unix-managers.marc@archive.invalid> From: NSYSTEM () beau ! nb ! rockwell ! com Date: Fri, 03 Mar 1995 00:38:14 +0000 To: tru64-unix-managers Subject: Running TOP using crontab X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075318306375 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.