I'm in need of help with AIX.
I have a script I run as root on an AIX machine. This script uses /bin/sh
su - user -c path_to_script/script2.sh
su - user -c path_to_script/script3.sh
Now, when I run script1 as root, the command prompt changes to the user and I have to type exit to get the original script, then it runs script3, and again I have to explicitly type exit to return to script1.
How do I get the subshell to return to the calling script without needing manual intervention?
Add a comment...