in reply to Can a script tell if it is being run from inside a script versus in an interactive terminal session?

This is a fairly common question it seems. One answer that might be helpful can be found here.

You must always remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.
  • Comment on Re: Can a script tell if it is being run from inside a script versus in an interactive terminal session?