I am on unix serverA where i have a script called A.sh
After the ssh takes me to serverB; i execute a script on serverB called B.sh
With the two exit statements on serverB i was expecting that the control would comeback to serverA and that i would exit from serverB. But that did not happen and i had to manually type exit twice to come back to serverA where it then printed Welcome
Which is quite normal as of the little content of b.sh ... int other words it exited on the first exit as we would suppose it should have done and second is never executed...
How? Where?
We see nothing in what you have submitted so we cant help...
After the script A.sh of serverA helps me ssh to ServerB; i manually execute the script on serverB i.e. ./B.sh. What do i have to code inside the B.sh so that it helps exit from serverB back to A.sh on serverA
I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code
TARFILE=${NAME}.tar
TARGZFILE=${NAME}.tar.gz
ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
i have a "if .. then exit end " in s shell script on remote servers.
now the connection to the remote server got killed after i run this script on the remote servers. How do i run this script on remote hosts and still keep remote connections alive after executing the script.
Thank you. (10 Replies)
I have an situation that are quite strange to me. I am not able to exit the server terminal and enter back into my home computer terminal by the command exit like I used to be able to exit the server terminal with before. I end up into my root shell again without even typing the root password like... (6 Replies)
Hi
In one of the script I am seeing some thing like exit 7,exit 1,exit 2,exit 3,exit 9,exit6.What is the difference between all of this exit.Can anyone help here please (3 Replies)
Hi,
I am trying to start Weblogic Admin server using start-up script (./startWeblogic.sh) from a remote host using a different user. The server starts fine but prompt is stuck, it does not return
Background: We have multiple admin servers in different environment and the requirement is all... (4 Replies)
hi,
I am using the below line to run a script from remote server(say server A) to another server(say server B).
ssh username@servername ksh script name.
The issue is the script logs into server B, executes the script on server B, transfers the file to server A but does not exit from... (4 Replies)
Hi,
Can someone please help me in resolving this issue -
I am doing SSH from a server 1 to another server 2 and executing some statements there and then automatically exit out of second server to the first where script was getting executed.
Can you please help me script this code ?
Thanks (3 Replies)
I'm receiving an exit code 64 in our batch scheduler (BMC product control-m) executing a PERL script on UX-HP. Can you tell me where I can find a list of exit codes and their meaning. I'm assuming the exit code is from the Unix operating system not PERL. (3 Replies)