running script on ssh command line, want to see output
I'm trying to remotely run a script on a target machine though the ssh command-line using passwordless login. I know the keys are set up correctly because if I remove the call to the script, the ssh session succeeds and I can log into the remote machine, but when I call the csh script, I don't get any output on the command line. If I call an identical bash script, I do get the output. Specifically, calling line 1 below just returns me to the command line, but running line 2 echo's hello then returns to the command line (both scripts simply contain a single line to echo hello, and both work when run locally on the remote machine). Why do my csh scripts send any output through the ssh link whereas the bash does?
Code:
1) ssh -i /root/.ssh/id_rsa user@remotemachine /tmp/test.csh |
Try
Code:
ssh -i /root/.ssh/id_rsa user@remotemachine "tcsh /tmp/test.csh" Cheers, Tink |
Quote:
|
Silly question: is (t)csh actually installed on your target machine?
|
could you do a 2 lines script and try it:
Code:
[georges@t61 temp]$ vi lq.tcsh Code:
[georges@t61 temp]$ ssh georges@localhost /home/georges/temp/lq.tcsh |
All times are GMT -5. The time now is 09:06 PM. |