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

2 comments:

Unknown said...

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

Unknown said...

Excelent!! This works for me. Tahks!