ssh -q <hostname> /opt/tcs/satish/tst.ksh
ssh -q <anotherserver> /opt/tcs/satish/tst.ksh
tst.ksh has "nohup <command> & "
when i execute below script , its throwing error as
nohup can not be found
ssh -q <anotherserver> /opt/tcs/satish/tst.ksh > log &
can someone let me know what is the error ???????
how to execute a shell script which is located in another server.
The error probably means what it says -- it can't find nohup.
Does that server actually have nohup on it?
If it does, is it in the PATH of the script being run?
this is the path of the script to be run
/opt/tcs/satish/tst.ksh
-----------------------
nohup is present in that server, when i logging from that server and executed that script,,,, script is doing well
is my syntax correct ?
I said PATH, not path. PATH as in the special variable PATH, which the shell uses to hunt for programs.
Where is nohup on that server?
What value does the script have for PATH? 'echo $PATH' if unsure.
i donno where is nohup in another server ???
can u please change the script/syntax if any ?
ssh -q <anotherserver> /opt/tcs/satish/tst.ksh > log &
If you don't know where nohup is on the remote server, how do you know it's there at all?
Run whereis nohup on the remote server to see if it can find it.
I don't have magic solutions that'll work no matter what the problem is. I can give you things to look at to help you figure out which problem it is.