[Tutor] interactif or not

Cedric BRINER work at infomaniak.ch
Fri Jun 3 12:01:20 CEST 2005


hi,

How can I know if a script is launched interactively or not because I'd like to make a script verbose or not depending if it is executed as interactive or not.

eg.

If I invoke it in a shell.. then it can be verbose

If it is launched from a crontab.. then it is less verbose.

Ced.

-- 

Cedric BRINER


More information about the Tutor mailing list