<?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 Script help needed in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-needed/m-p/4307536#M338863</link>
    <description>Hi,&lt;BR /&gt; I need to write a script which will login to all servers(hpunix, linux, solaris) and get the login message and shell prompt and also the output for the commands  like uptime etc.&lt;BR /&gt;&lt;BR /&gt;Can anyone  help me regarding this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I tried like this:&lt;BR /&gt;&lt;BR /&gt;for i in $SERVER&lt;BR /&gt;do&lt;BR /&gt;ssh -t $i &amp;gt;&amp;gt;/tmp/logfile &amp;lt;&amp;lt;-ENDTAG&lt;BR /&gt;hostname&lt;BR /&gt;uptime&lt;BR /&gt;exit&lt;BR /&gt;ENDTAG&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But this gives only the login message and not the prompt for the hpux and for linux, itis just throwing the output.&lt;BR /&gt;&lt;BR /&gt;And it is having some unknown characters like ^E ^B etc  i mean  it is related pseudo terminal i think.&lt;BR /&gt;&lt;BR /&gt;Please help me out.&lt;BR /&gt;&lt;BR /&gt;thanks!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;sanwin.&lt;BR /&gt;</description>
    <pubDate>Mon, 17 Nov 2008 13:16:49 GMT</pubDate>
    <dc:creator>sanwin</dc:creator>
    <dc:date>2008-11-17T13:16:49Z</dc:date>
    <item>
      <title>Script help needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-needed/m-p/4307536#M338863</link>
      <description>Hi,&lt;BR /&gt; I need to write a script which will login to all servers(hpunix, linux, solaris) and get the login message and shell prompt and also the output for the commands  like uptime etc.&lt;BR /&gt;&lt;BR /&gt;Can anyone  help me regarding this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I tried like this:&lt;BR /&gt;&lt;BR /&gt;for i in $SERVER&lt;BR /&gt;do&lt;BR /&gt;ssh -t $i &amp;gt;&amp;gt;/tmp/logfile &amp;lt;&amp;lt;-ENDTAG&lt;BR /&gt;hostname&lt;BR /&gt;uptime&lt;BR /&gt;exit&lt;BR /&gt;ENDTAG&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But this gives only the login message and not the prompt for the hpux and for linux, itis just throwing the output.&lt;BR /&gt;&lt;BR /&gt;And it is having some unknown characters like ^E ^B etc  i mean  it is related pseudo terminal i think.&lt;BR /&gt;&lt;BR /&gt;Please help me out.&lt;BR /&gt;&lt;BR /&gt;thanks!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;sanwin.&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Nov 2008 13:16:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-needed/m-p/4307536#M338863</guid>
      <dc:creator>sanwin</dc:creator>
      <dc:date>2008-11-17T13:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script help needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-needed/m-p/4307537#M338864</link>
      <description>It would be better to continue your questions in your other thread, rather than start a new thread:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1287664" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1287664&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;not the prompt for the hp-ux and for linux, it is just throwing the output.&lt;BR /&gt;&lt;BR /&gt;What's wrong with that?  The output is all you need if you aren't logging in interactively.</description>
      <pubDate>Mon, 17 Nov 2008 14:19:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-needed/m-p/4307537#M338864</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-17T14:19:47Z</dc:date>
    </item>
  </channel>
</rss>

