I am trying to run sudo and other MQSERIES related commands from inside a shell script. But I am not moving forward with script executing the first command and stopping.
#!/usr/bin/ksh
sudo su - mylogin # My script comes to this command and after executing it, stops there
external command1 # these commands are application related (like websphere startup)
external command2 # this command is calling MQSERIES and running some query on it.
As I said, I want my script to take all these commands and run without any manual instructions.
Can some one help me...
#!/usr/bin/ksh
sudo su - mylogin # My script comes to this command and after executing it, stops there
external command1 # these commands are application related (like websphere startup)
external command2 # this command is calling MQSERIES and running some query on it.
As I said, I want my script to take all these commands and run without any manual instructions.
Can some one help me...