I have a script that can be executed by processes or users on our AIX box, the script contains the following:
trap "" 13
exec $PROSHUT "$@"
How can I edit the above code so that it traps which process or user is running the script and log it to a file? Would there be something I can add to the code in the original file?