Thursday, April 11, 2013

Top command issue on cron job

Use -b option to run top command through cron and extend script for snmp configuration, etc. Otherwise top will failed with "top: failed tty get" message.
      top -b -n 1

1 comment:

Jean-Fran├žois Rullier said...

Exactly what I was looking for.
I didn't read the man page enough
Thank you.