[opensuse] Fwd: [opensuse-factory] ssh command problem
- From: lynn <lynn@xxxxxxxxxxxx>
- Date: Fri, 17 Aug 2012 17:52:52 +0200
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
- Follow-Ups:
- Re: [opensuse] Fwd: [opensuse-factory] ssh command problem
- From: Andrew Colvin
- Re: [opensuse] Fwd: [opensuse-factory] ssh command problem
- Prev by Date: Re: [opensuse] Lost desktop in opensuse-12.1?
- Next by Date: Re: [opensuse] [SOLVED] autoyast tool : xml file not found
- Previous by thread: [opensuse] autoyast tool : xml file not found
- Next by thread: Re: [opensuse] Fwd: [opensuse-factory] ssh command problem
- Index(es):
Relevant Pages
|