I'm running Slackware 13.37, and I was wondering if there was a way to tell which script executed a command. I tracked the process and its arguments, but I would like to know where the command originated from. Thanks!
There is no guaranteed generic way to do that apart from walking the process tree (by looking at the commands
There's a good utility for that though, if you're not trying to script something:
There are options to show the