<?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: connect to  a remote  server  through  perlscript in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/connect-to-a-remote-server-through-perlscript/m-p/4081112#M735866</link>
    <description>thanks for  the quik  answer,  &lt;BR /&gt;But even without the  waitfor  option  didn't work. &lt;BR /&gt;&lt;BR /&gt;I have  change  it  in "#" but even with that didn't work.&lt;BR /&gt;&lt;BR /&gt;thanks anyway,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jonay</description>
    <pubDate>Thu, 04 Oct 2007 07:36:17 GMT</pubDate>
    <dc:creator>Jonay</dc:creator>
    <dc:date>2007-10-04T07:36:17Z</dc:date>
    <item>
      <title>connect to  a remote  server  through  perlscript</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/connect-to-a-remote-server-through-perlscript/m-p/4081110#M735864</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;try  to  build  a  perl-script that execute  some  commands  on a  remote  server. I use the  module NET::Telnet.&lt;BR /&gt;&lt;BR /&gt;When  I run my script i recieve the  follow  error:&lt;BR /&gt;&lt;BR /&gt;[u51cf28:/home/u7514756/Scripts]# ./SysInfo.pl timed-out waiting for command prompt at ./SysInfo.pl line 22 [u51cf28:/home/u7514756/Scripts]#&lt;BR /&gt;&lt;BR /&gt;bu I  look  at the  debug files ... it  seems that  everything  goes  right  :&lt;BR /&gt;Debug:&lt;BR /&gt;&amp;lt; 0x00000: ff fd 24                                            ÿý$&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 0x00000: ff fc 24                                            ÿü$&lt;BR /&gt;&lt;BR /&gt;&amp;lt; 0x00000: ff fd 18                                            ÿý.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 0x00000: ff fc 18                                            ÿü.&lt;BR /&gt;&lt;BR /&gt;&amp;lt; 0x00000: ff fe 18 ff  fd 20                                  ÿþ.ÿý&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 0x00000: ff fc 20                                            ÿü&lt;BR /&gt;&lt;BR /&gt;&amp;lt; 0x00000: ff fe 20 ff  fb 01 ff fb  03 ff fd 1f  ff fd 21 ff  ÿþ ÿû.ÿû.ÿý.ÿý!ÿ &amp;lt; 0x00010: fd 01 0d 0a  48 50 2d 55  58 20 75 39  31 63 39 61  ý...HP-UX u91c9a &amp;lt; 0x00020: 30 20 42 2e  31 31 2e 31  31 20 55 20  39 30 30 30  0 B.11.11 U 9000&lt;BR /&gt;&amp;lt; 0x00030: 2f 38 30 30  20 28 74 62  29 0d 0a 0d  0a           /800 (tb)....&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 0x00000: ff fd 01 ff  fd 03 ff fc  1f ff fc 21  ff fc 01     ÿý.ÿý.ÿü.ÿü!ÿü.&lt;BR /&gt;&lt;BR /&gt;&amp;lt; 0x00000: ff fe 1f ff  fe 21 ff fe  01                        ÿþ.ÿþ!ÿþ.&lt;BR /&gt;&lt;BR /&gt;&amp;lt; 0x00000: 6c 6f 67 69  6e 3a 20                               login:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 0x00000: 75 37 35 31  34 37 35 36  0d 0a                     u7514756..&lt;BR /&gt;&lt;BR /&gt;&amp;lt; 0x00000: 75 37 35 31  34 37 35 36  0d 0a                     u7514756..&lt;BR /&gt;&lt;BR /&gt;&amp;lt; 0x00000: 50 61 73 73  77 6f 72 64  3a 20                     Password:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 0x00000: 6c 75 6e 61  32 30 30 37  0d 0a                     pipo..&lt;BR /&gt;&lt;BR /&gt;&amp;lt; 0x00000: 0d 0a                                               ..&lt;BR /&gt;&lt;BR /&gt;&amp;lt; 0x00000: 50 6c 65 61  73 65 20 77  61 69 74 2e  2e 2e 63 68  Please wait...ch &amp;lt; 0x00010: 65 63 6b 69  6e 67 20 66  6f 72 20 64  69 73 6b 20  ecking for disk&lt;BR /&gt;&amp;lt; 0x00020: 71 75 6f 74  61 73 0d 0a                            quotas..&lt;BR /&gt;&lt;BR /&gt;&amp;lt; 0x00000: 54 45 52 4d  20 3d 20 28  68 70 29 20               TERM = (hp)&lt;BR /&gt;&lt;BR /&gt;And  inputfile:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HP-UX u91c9a0 B.11.11 U 9000/800 (tb)&lt;BR /&gt;&lt;BR /&gt;login: u7514756&lt;BR /&gt;Password:&lt;BR /&gt;Please wait...checking for disk quotas&lt;BR /&gt;TERM = (hp)&lt;BR /&gt;&lt;BR /&gt;Here is my script again with the  extra otions:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;use strict;&lt;BR /&gt;use Net::Telnet ();&lt;BR /&gt;&lt;BR /&gt;# variables&lt;BR /&gt;my $t;&lt;BR /&gt;my $username = "u7514756";&lt;BR /&gt;my $passwd = "pipo";&lt;BR /&gt;my @lines;&lt;BR /&gt;chomp($username);&lt;BR /&gt;chomp($passwd);&lt;BR /&gt;&lt;BR /&gt;#$t = Net::Telnet-&amp;gt;new(Timeout =&amp;gt; 30);&lt;BR /&gt;$t = Net::Telnet-&amp;gt;new (Port =&amp;gt; 23,&lt;BR /&gt;Timeout =&amp;gt; 30,&lt;BR /&gt;Input_log =&amp;gt; "/tmp/input_jonay",&lt;BR /&gt;Dump_log =&amp;gt; "/tmp/dump_jonay");&lt;BR /&gt;$t-&amp;gt;open("u91c9a0.cmc.be");&lt;BR /&gt;$t-&amp;gt;login("$username", "$passwd");&lt;BR /&gt;$t-&amp;gt;waitfor(String =&amp;gt; '&amp;gt;');&lt;BR /&gt;$t-&amp;gt;print('who');&lt;BR /&gt;#@lines = $t-&amp;gt;cmd("who");&lt;BR /&gt;#print @lines;&lt;BR /&gt;[u51cf28:/home/u7514756/Scripts]#&lt;BR /&gt;&lt;BR /&gt;what  goes  wrong  ?&lt;BR /&gt;&lt;BR /&gt;thanks  in advance,&lt;BR /&gt;&lt;BR /&gt;Jonay Herrera&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Oct 2007 07:15:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/connect-to-a-remote-server-through-perlscript/m-p/4081110#M735864</guid>
      <dc:creator>Jonay</dc:creator>
      <dc:date>2007-10-04T07:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: connect to  a remote  server  through  perlscript</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/connect-to-a-remote-server-through-perlscript/m-p/4081111#M735865</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Are you sure that you are waiting for the correct response?  You are waiting for a '&amp;gt;' in the code you posted.  &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 04 Oct 2007 07:29:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/connect-to-a-remote-server-through-perlscript/m-p/4081111#M735865</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-10-04T07:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: connect to  a remote  server  through  perlscript</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/connect-to-a-remote-server-through-perlscript/m-p/4081112#M735866</link>
      <description>thanks for  the quik  answer,  &lt;BR /&gt;But even without the  waitfor  option  didn't work. &lt;BR /&gt;&lt;BR /&gt;I have  change  it  in "#" but even with that didn't work.&lt;BR /&gt;&lt;BR /&gt;thanks anyway,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jonay</description>
      <pubDate>Thu, 04 Oct 2007 07:36:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/connect-to-a-remote-server-through-perlscript/m-p/4081112#M735866</guid>
      <dc:creator>Jonay</dc:creator>
      <dc:date>2007-10-04T07:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: connect to  a remote  server  through  perlscript</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/connect-to-a-remote-server-through-perlscript/m-p/4081113#M735867</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I modified your script in this way:&lt;BR /&gt;&lt;BR /&gt;use strict;&lt;BR /&gt;use Net::Telnet ();&lt;BR /&gt;&lt;BR /&gt;# variables&lt;BR /&gt;my $t;&lt;BR /&gt;my $username = "u7514756";&lt;BR /&gt;my $passwd = "pipo";&lt;BR /&gt;my @lines;&lt;BR /&gt;chomp($username);&lt;BR /&gt;chomp($passwd);&lt;BR /&gt;&lt;BR /&gt;#$t = Net::Telnet-&amp;gt;new(Timeout =&amp;gt; 30);&lt;BR /&gt;$t = Net::Telnet-&amp;gt;new (Port =&amp;gt; 23,&lt;BR /&gt;Timeout =&amp;gt; 30,&lt;BR /&gt;Input_log =&amp;gt; "/tmp/input_jonay",&lt;BR /&gt;Dump_log =&amp;gt; "/tmp/dump_jonay");&lt;BR /&gt;$t-&amp;gt;open("u91c9a0.cmc.be");&lt;BR /&gt;$t-&amp;gt;login("$username", "$passwd");&lt;BR /&gt;#$t-&amp;gt;waitfor(String =&amp;gt; '&amp;gt;');&lt;BR /&gt;$t-&amp;gt;print('who');&lt;BR /&gt;@lines = $t-&amp;gt;cmd("who");&lt;BR /&gt;print @lines;&lt;BR /&gt;&lt;BR /&gt;and run correctly.&lt;BR /&gt;&lt;BR /&gt;Fat</description>
      <pubDate>Thu, 04 Oct 2007 07:54:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/connect-to-a-remote-server-through-perlscript/m-p/4081113#M735867</guid>
      <dc:creator>Fat Scrape</dc:creator>
      <dc:date>2007-10-04T07:54:40Z</dc:date>
    </item>
  </channel>
</rss>

