On Wed, 18 Feb 2009, GESBBB wrote:
I am using this snippet of code in a bash script that is run via CRON.
# See if we are running via CRON
if [ ! -t 0 ]
# Use the BASH RANDOM function to generate a random number between 0 & 32767
It runs fine from the console; however, when run via CRON, it outputs this
Tput: No terminal type specified and no TERM environmental variable.
I have Googled about, yet I cannot find an answer. Perhaps some Bash guru can
cron uses /bin/sh, not bash.
-Warren Block * Rapid City, South Dakota USA
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"