Shell script validation using process.

view full story

http://www.unix.com – Hi All, I have a shell script in Linux and it will be invoked by 2 methods, 1) An automated background process . 2) Logining into the box and directly executing the script. I need to put a validation in my shell script such that it will be executed successfully on when an automated background process invokes it. When any user login and invoke it manually it should throw an error and exit. Please advise how this can be achieved inside my shell script (HowTos)