0

I am running a remote bash script on RHL7, via ssh. The script invokes several unix commands using su. All the commands in the script run fine until I kick off another script (installer), which is provided by a third party. This second script performs a number of operations, then finally invokes yet another script (install), this one is sh. As soon as the subscript is called, everything terminates with

Session terminated, killing shell... ...killed.

I have tried several methods to invoke script2, including:

su - sahm  -c " export VERBOSE=1; export NSUER=sahm; cd $HOME; ${HOME}/current/installer >>$HOME/narr-sci-dep.log 2>&1"

I have also tried

/sbin/runuser -l sahm -c ...

Any suggestions will be appreciated.enter code here

4

0 回答 0