[opensuse] Fwd: [opensuse-factory] ssh command problem



Sorry folks. I sould have said that the client is a 12.2 RC2 box and the remote ssh box is 12.1. There is a rsa key at each end of the connection so it ssh's without password.

Maybe I sent it to the wrong list.
thanks,
L x


-------- Original Message --------
Subject: [opensuse-factory] ssh command problem
Date: Fri, 17 Aug 2012 17:47:36 +0200
From: lynn <lynn@xxxxxxxxxxxx>
To: opensuse-factory <opensuse-factory@xxxxxxxxxxxx>

Hi

I have a script which has a ssh call in it:

echo Calling the file server
ssh root@hh32 "mkdir /home2/$2/$1 ; chown $uid:20513 /home2/$2/$1 ; exit"
echo Back on DC
<rest of script>

The ssh call works, but it never returns to the calling script to finish
the rest of the commands.. IOW we never see the words:
Back on DC
It must have exited because the command prompt after the ssh call is
that of the calling box, not the remote box.

How do I exit correctly at end of the ssh call so that the rest of the
calling script is executed?

Thanks,
L x

--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx


--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx



Relevant Pages

  • Re: Really need help on this one
    ... Is there a way to read the output of a particular command into ... Heres a better example using ssh. ... set timeout $timeout ... exec kill -9 $pid ...
    (comp.lang.tcl)
  • Re: OT: Hard disk mirror with Paragon on USB stick?
    ... at least two pages of intricate command line stuff. ... The password is only used when you want to backup to a remote machine ... via the network, using the ssh protocol. ... (e.g. with linux, ...
    (sci.electronics.design)
  • RE: midnight commander and ssh sftp
    ... midnight commander and ssh sftp ... which is displayed at the bottom of the MC panel. ... "Left file command options right" at the top of the MC ... MC SSH session with the remote host by hitting F10 key. ...
    (freebsd-questions)
  • Re: sshd and ftpd
    ... ssh keys, so when you log in it doesn't ask for one. ... we want to be able to connect to our remote host without ... If you used the defaults supplied by the ssh-keygen command, ...
    (Ubuntu)
  • Re: [Info-ingres] problems with ssh
    ... Check the SSHD log on the server for errors. ... ancient version of SSH, unfortunately. ... the command seems to have functioned - but just wont terminate and leaves a process hanging around. ... Duckman: You got anymore of those glues? ...
    (comp.databases.ingres)