1

How to check if script is run via cron or manual=command line?

view story
linux-howto

http://www.unix.com – Hi all, I have a script that can be run via cron or via the command line. Is there any way that I can place something on the script to be able to distinguish/differentiate whether the script was run via a user in the command line or whether it was run from the cron? (HowTos)