Aug 17, 2010

TERM environment variable not set

Using a cron execution of linux TOP command it generate the error "TERM environment variable not set".

To solve it:

#!/bin/sh
TERM=linux
export TERM
top -b -n 1 >> <Output file>

No comments: