Standard input errors from cron jobs

If you have a cron job that is giving the following error:
stty: standard input: Invalid argument

This can be fixed by removing the TERM environment variable, as follows:

unset TERM

Last updated: 04/11/2006