in reply to Checking for STDIN
HTH,
Update
Note, also, that if invoked non-interactively e.g. by cron(1), the environment is very basic i.e. none of the login scripts will have been run, so it's always best to invoke them in the cron(1) command e.g. * * * * * . $HOME/profile ; some_cmd > /dev/null 2>&1
|
|---|