<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: 2 separated ssh questions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339982#M190519</link>
    <description>Instead on cmd1; cmd2; cmd3 why not put all those commands in a single script, if it still doesn't return - put a set -x to see what is going on.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
    <pubDate>Fri, 23 Jul 2004 13:41:01 GMT</pubDate>
    <dc:creator>Geoff Wild</dc:creator>
    <dc:date>2004-07-23T13:41:01Z</dc:date>
    <item>
      <title>2 separated ssh questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339980#M190517</link>
      <description>1. I have the following command:&lt;BR /&gt;ssh root@server_a "cmd1; cmd2; cmd3"&lt;BR /&gt;The command is successfuly completed the task on remote server server_a, however, the only problem is I dont get the prompt back on my local system. I have to hit "ctl-c" to get it back. why?&lt;BR /&gt;&lt;BR /&gt;2. This question is not related above problem. In my another separated ssh command:&lt;BR /&gt;ssh root@server_b "/full/nameot/xyz -f"&lt;BR /&gt;xyz is my own script and can have "-f" option. Also xyz script would also produce two output files on the remote server. However, the script was not actually executed, and no any output files were produced. Why?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Jul 2004 13:15:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339980#M190517</guid>
      <dc:creator>Hanry Zhou</dc:creator>
      <dc:date>2004-07-23T13:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: 2 separated ssh questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339981#M190518</link>
      <description>the answer to the first question is pretty straightforward and simple, though I can not tell you how to correct it without knowing what cmd1, 2 and 3 are. Obviously your cmd3 most probably do not exit properly, or cmd1 or cmd2 do not complete successfully to yield cmd3 to complete and return.&lt;BR /&gt;&lt;BR /&gt;fir the second question, do you get your prompt back after your xyz script looked like it ran fine ? If so, place a set -x at the top of your script on the remote server and see if your script gets entered into or is it just denying you the ssh login as root. &lt;BR /&gt;&lt;BR /&gt;when you talk about root login via remote commands, it is always tricky as more than one thing can go wrong to deny access.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Jul 2004 13:32:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339981#M190518</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2004-07-23T13:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: 2 separated ssh questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339982#M190519</link>
      <description>Instead on cmd1; cmd2; cmd3 why not put all those commands in a single script, if it still doesn't return - put a set -x to see what is going on.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Fri, 23 Jul 2004 13:41:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339982#M190519</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-07-23T13:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: 2 separated ssh questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339983#M190520</link>
      <description>In the recommended target script&lt;BR /&gt;&lt;BR /&gt;set -x&lt;BR /&gt;&lt;BR /&gt;That will give you details&lt;BR /&gt;&lt;BR /&gt;Also run the ssh with the -v switch. This will give you a better idea of whats going on.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 23 Jul 2004 13:49:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339983#M190520</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-07-23T13:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: 2 separated ssh questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339984#M190521</link>
      <description>Well, basically, cmd1 is to change a parameter in the script, and cmd2 to stop the script, and cmd3 is to start the script.&lt;BR /&gt;all cmd's works file on the local system, and again, they are all completed fine when I put them in the ssh command. The only problem is I could not get the prompt back when I run the ssh on the local, and run cmd1, 2, and 3 remotely on the remote server.&lt;BR /&gt;&lt;BR /&gt;I did put "set -x" in front of cmd1, and did not find anything unusal.&lt;BR /&gt;&lt;BR /&gt;Is there any option in ssh and it could force the ssh to be terminated?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;With regards my 2nd question, again, the script doesn't seem to every started at all.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Jul 2004 14:00:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339984#M190521</guid>
      <dc:creator>Hanry Zhou</dc:creator>
      <dc:date>2004-07-23T14:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: 2 separated ssh questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339985#M190522</link>
      <description>SEP,&lt;BR /&gt;&lt;BR /&gt;when I add -v in ssh command, the last line is shown on the screen is the folloing:&lt;BR /&gt;"debug: client_input_channel_req: channel 0 rtype exit-status reply 0", and the cursor is just stop there, could not get the prompt back. Any idea, what is this message for?&lt;BR /&gt;&lt;BR /&gt;As I repeatedly say, all cmd's in ssh were successful on the remote server.</description>
      <pubDate>Fri, 23 Jul 2004 14:04:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339985#M190522</guid>
      <dc:creator>Hanry Zhou</dc:creator>
      <dc:date>2004-07-23T14:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: 2 separated ssh questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339986#M190523</link>
      <description>Well, few things to check for in the case ssh remote connection is hanging. &lt;BR /&gt;First, does any command on the remote script run any jobs in the background ? That may be one of the reasons for this behaviour.&lt;BR /&gt;&lt;BR /&gt;Also, what happens if you run the "ssh .." command with nohup. Do you still have the problem ?&lt;BR /&gt;Or try re-directing the output to &amp;gt;/dev/null 2&amp;amp;1&lt;BR /&gt;This openSSH FAQ might be helpful.&lt;BR /&gt;&lt;A href="http://www.openssh.com/faq.html#3.10" target="_blank"&gt;http://www.openssh.com/faq.html#3.10&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regds,&lt;BR /&gt;abdul.</description>
      <pubDate>Fri, 23 Jul 2004 14:29:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339986#M190523</guid>
      <dc:creator>Abdul Rahiman</dc:creator>
      <dc:date>2004-07-23T14:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: 2 separated ssh questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339987#M190524</link>
      <description>Adbul,&lt;BR /&gt;&lt;BR /&gt;No, no any commads running in backgound on the rmote site. Also, the issue is existing when I run the ssh... on any servers.&lt;BR /&gt;&lt;BR /&gt;The web site you are refering to doesn't help.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I know that sshd needs to tell the exit status from command to ssh, but the last command, cmd3 IS successful, and I thought that it'd be enough tell sshd "I'M DONE".</description>
      <pubDate>Fri, 23 Jul 2004 15:13:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339987#M190524</guid>
      <dc:creator>Hanry Zhou</dc:creator>
      <dc:date>2004-07-23T15:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: 2 separated ssh questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339988#M190525</link>
      <description>How's the behaviour on interactive sessions ?&lt;BR /&gt;Does it end normally ?&lt;BR /&gt;Is this something new.. ? may be restart sshd daemon..(windows solution;-)&lt;BR /&gt;Or update to a later version of openSSH ..&lt;BR /&gt;&lt;BR /&gt;regds,&lt;BR /&gt;Abdul.</description>
      <pubDate>Fri, 23 Jul 2004 15:29:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339988#M190525</guid>
      <dc:creator>Abdul Rahiman</dc:creator>
      <dc:date>2004-07-23T15:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: 2 separated ssh questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339989#M190526</link>
      <description>I've tried everyting suggested.&lt;BR /&gt;&lt;BR /&gt;Any other idea?</description>
      <pubDate>Mon, 26 Jul 2004 16:31:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339989#M190526</guid>
      <dc:creator>Hanry Zhou</dc:creator>
      <dc:date>2004-07-26T16:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: 2 separated ssh questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339990#M190527</link>
      <description>it's going to be difficult to shed any more light without the specific's of the commands you are running / script details. You should also post the SSH client and server versions to see if there are any known issues with the versions you are running.&lt;BR /&gt;&lt;BR /&gt;Does a normal ssh root@unknown "ls" exit properly? &lt;BR /&gt;&lt;BR /&gt;How about running ssh root@unknown "cmd1 &amp;amp;&amp;amp; cmd2 &amp;amp;&amp;amp; cmd3" see if all scripts are run?&lt;BR /&gt;&lt;BR /&gt;rgds,&lt;BR /&gt;&lt;BR /&gt;-=ChaZ=-&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jul 2004 10:51:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339990#M190527</guid>
      <dc:creator>Charles Harris</dc:creator>
      <dc:date>2004-07-27T10:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: 2 separated ssh questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339991#M190528</link>
      <description>okay, the following is the command I am running, and I have to hit cntl-c to get out of the command at the end, although all actions have been completed on the remote site:&lt;BR /&gt;&lt;BR /&gt;ssh root@remotename "cp /etc/rc.config.d/nfsconf /etc/rc.config.d/nfsconf.orig &amp;amp;&amp;amp; sed 's/AUTOMOUNT=1/AUTOMOUNT=0/' /etc/rc.config.d/nfsconf &amp;gt; /tmp/nfsconf &amp;amp;&amp;amp; cp /tmp/nfsconf /etc/rc.config.d/nfsconf &amp;amp;&amp;amp; /sbin/init.d/nfs.cleint stop &amp;amp;&amp;amp; /sbin/init.d/nfs.cleint start" &lt;BR /&gt;</description>
      <pubDate>Mon, 09 Aug 2004 14:18:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339991#M190528</guid>
      <dc:creator>Hanry Zhou</dc:creator>
      <dc:date>2004-08-09T14:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: 2 separated ssh questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339992#M190529</link>
      <description>Hanry,&lt;BR /&gt;&lt;BR /&gt;Looking at the 'chain' of commands in the quotes, I would strongly recommend you to run the commands in a shell script than all in one command line.&lt;BR /&gt;&lt;BR /&gt;This may work in a normal setting, but since you are having problems returning it with ssh, why don't you try making a shell script with all commands ina  separate line and see what happens.&lt;BR /&gt;Your problem here may be due to Ssh  confused with the syntax or not getting he correct return status in the way it xpected it.&lt;BR /&gt;&lt;BR /&gt;regds,&lt;BR /&gt;Abdul.</description>
      <pubDate>Mon, 09 Aug 2004 15:02:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339992#M190529</guid>
      <dc:creator>Abdul Rahiman</dc:creator>
      <dc:date>2004-08-09T15:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: 2 separated ssh questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339993#M190530</link>
      <description>Hanry,&lt;BR /&gt;&lt;BR /&gt;Aha! I have stumbled onto this a number of times in the past.. it is still a "problem". &lt;BR /&gt;&lt;BR /&gt;If you ssh to a server and execute a script of the like in the "/sbin/rc.?/xxx start/stop" .. after you log off that SSH connection , you WILL NEVER be brought back to your shell/terminal where you invoked ssh from...&lt;BR /&gt;&lt;BR /&gt;Try it.. it happens with SSH distributions on HP and SUN.. I have not been able to explain such behaviour...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Aug 2004 15:23:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/2-separated-ssh-questions/m-p/3339993#M190530</guid>
      <dc:creator>Alzhy</dc:creator>
      <dc:date>2004-08-09T15:23:17Z</dc:date>
    </item>
  </channel>
</rss>

