<?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 autamatic telnet in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/autamatic-telnet/m-p/2662078#M588741</link>
    <description>can any one tell me the code for the following task..&lt;BR /&gt;script has to automatically telnet/or ftp to one location and should store the out put of the df -k .. in a variable and i hav to use this variable after comming out from the script&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;chakri</description>
    <pubDate>Mon, 11 Feb 2002 04:28:48 GMT</pubDate>
    <dc:creator>k.s.chakravarthy</dc:creator>
    <dc:date>2002-02-11T04:28:48Z</dc:date>
    <item>
      <title>autamatic telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/autamatic-telnet/m-p/2662078#M588741</link>
      <description>can any one tell me the code for the following task..&lt;BR /&gt;script has to automatically telnet/or ftp to one location and should store the out put of the df -k .. in a variable and i hav to use this variable after comming out from the script&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;chakri</description>
      <pubDate>Mon, 11 Feb 2002 04:28:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/autamatic-telnet/m-p/2662078#M588741</guid>
      <dc:creator>k.s.chakravarthy</dc:creator>
      <dc:date>2002-02-11T04:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: autamatic telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/autamatic-telnet/m-p/2662079#M588742</link>
      <description>Can you use something like remsh instead of telnet?&lt;BR /&gt;&lt;BR /&gt;Your variable could be something like:&lt;BR /&gt;&lt;BR /&gt;dfvar=`remsh remotehost df -k /filesystem`&lt;BR /&gt;&lt;BR /&gt;If not remsh, what about ssh?</description>
      <pubDate>Mon, 11 Feb 2002 04:57:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/autamatic-telnet/m-p/2662079#M588742</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-02-11T04:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: autamatic telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/autamatic-telnet/m-p/2662080#M588743</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you want to automate this task there are&lt;BR /&gt;two ways to go about it. &lt;BR /&gt;First you could use a remote shell (remsh)&lt;BR /&gt;from server A to server B or you could use&lt;BR /&gt;a script to pick up the files. I've attached&lt;BR /&gt;a sample script to help, or you could have &lt;BR /&gt;a look in the below link which has some good&lt;BR /&gt;information.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x83e45f260cafd4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x83e45f260cafd4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;-Michael&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Feb 2002 05:03:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/autamatic-telnet/m-p/2662080#M588743</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-02-11T05:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: autamatic telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/autamatic-telnet/m-p/2662081#M588744</link>
      <description>I stole this fragment of code from a forum post by Kenny C.  This shows you how to get a telnet seesion to start automatically and run a command.  If you redirect the last line to a file then you have the info you need on your own machine and then it's just a matter of grepping it out.&lt;BR /&gt;&lt;BR /&gt;Ron&lt;BR /&gt;&lt;BR /&gt;# hostname is the name of the remote machine &lt;BR /&gt;# username is the name of the user &lt;BR /&gt;# password is the password of the user username &lt;BR /&gt;&lt;BR /&gt;REMOTE=hostname #or IP address &lt;BR /&gt;(sleep 5 &lt;BR /&gt;echo username &lt;BR /&gt;sleep 5 &lt;BR /&gt;echo password &lt;BR /&gt;sleep 15 &lt;BR /&gt;echo "ls -ald /tmp" #Your command &lt;BR /&gt;sleep 5 &lt;BR /&gt;echo exit) |telnet $REMOTE &lt;BR /&gt;</description>
      <pubDate>Mon, 11 Feb 2002 11:57:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/autamatic-telnet/m-p/2662081#M588744</guid>
      <dc:creator>Ron Kinner</dc:creator>
      <dc:date>2002-02-11T11:57:57Z</dc:date>
    </item>
  </channel>
</rss>

