Issue when running a bash script
1) Environment:Red Hat Linux bash shell
Script to be run owned by user :myUser
Home environment of myUser: pathto/home
2) ESP agent with root access will run
su - myUser -c "/pathto/home/bin/script.sh"
where script.sh has some echo statements and an exit statement in the end
Current behaviour when running the script:
(and then the control remains on the following path)
(have to print "exit" to get the output of echo statements and ctrl back to root@ServerName1
Expected behaviour when running the script:
Thanks for help.
Your post is very confusing.
Could you paste the contents of jobxxx.sh and script.sh?
|All times are GMT +2. The time now is 09:35.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.