<?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: telnet scripts ?? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462156#M14474</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;just to strengthen Perl's bashfully neglected position in this forum,&lt;BR /&gt;there is a splendid Module in CPAN for scripting automated telnet sessions.&lt;BR /&gt;Please, have a look at&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.cpan.org/modules/by-module/Net/Net-Telnet-3.02.readme" target="_blank"&gt;http://www.cpan.org/modules/by-module/Net/Net-Telnet-3.02.readme&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;However, if not using Perl I'd go for ssh which is a much better replacement for rsh (which HP unconventionally called remsh, the other is restricted shell in HP lingo).&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 07 Nov 2000 08:42:54 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2000-11-07T08:42:54Z</dc:date>
    <item>
      <title>telnet scripts ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462146#M14464</link>
      <description>how would I start a script that would telnet into another box execute commands and exit the box ..  any sugestions?</description>
      <pubDate>Mon, 06 Nov 2000 19:58:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462146#M14464</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2000-11-06T19:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: telnet scripts ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462147#M14465</link>
      <description>Richard:&lt;BR /&gt;&lt;BR /&gt;I think what you are looking for is the "remote shell" (remsh) command.  Look at the man pages for 'remsh'.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 06 Nov 2000 20:01:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462147#M14465</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-11-06T20:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: telnet scripts ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462148#M14466</link>
      <description>Richard:&lt;BR /&gt;&lt;BR /&gt;I think what you are looking for is the "remote shell" (remsh) command.  Look at the man pages for 'remsh'.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 06 Nov 2000 20:02:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462148#M14466</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-11-06T20:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: telnet scripts ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462149#M14467</link>
      <description>I use remsh to execute remote commands on other boxes.  Just make sure you have your rhosts file set up for this on the boxes.&lt;BR /&gt;&lt;BR /&gt;Just a thought&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Nov 2000 20:04:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462149#M14467</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2000-11-06T20:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: telnet scripts ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462150#M14468</link>
      <description>Richard:&lt;BR /&gt;&lt;BR /&gt;That functionality is only available in either remsh or ssh.  You cannot use telnet non-interactively.  I would suggest you go with the ssh setup.</description>
      <pubDate>Mon, 06 Nov 2000 20:10:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462150#M14468</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-11-06T20:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: telnet scripts ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462151#M14469</link>
      <description>Richard - I use remote shell but to avoid being asked for a password you need to put a .rhosts file in the users home directory on the remoth machine that is excuting the command. enclose the command in double quotes too.   &lt;BR /&gt;eg  remsh HOST "ls -l /etc"&lt;BR /&gt;&lt;BR /&gt;Regards John</description>
      <pubDate>Mon, 06 Nov 2000 22:33:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462151#M14469</guid>
      <dc:creator>John McWilliams</dc:creator>
      <dc:date>2000-11-06T22:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: telnet scripts ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462152#M14470</link>
      <description>Richard - I use remote shell but to avoid being asked for a password you need to put a .rhosts file in the users home directory on the remoth machine that is excuting the command. enclose the command in double quotes too.   &lt;BR /&gt;eg  remsh HOST "ls -l /etc"&lt;BR /&gt;&lt;BR /&gt;Regards John</description>
      <pubDate>Mon, 06 Nov 2000 22:33:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462152#M14470</guid>
      <dc:creator>John McWilliams</dc:creator>
      <dc:date>2000-11-06T22:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: telnet scripts ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462153#M14471</link>
      <description>Richard - I use remote shell but to avoid being asked for a password you need to put a .rhosts file in the users home directory on the remoth machine that is excuting the command. enclose the command in double quotes too.   &lt;BR /&gt;eg  remsh HOST "ls -l /etc"&lt;BR /&gt;&lt;BR /&gt;Regards John</description>
      <pubDate>Mon, 06 Nov 2000 22:34:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462153#M14471</guid>
      <dc:creator>John McWilliams</dc:creator>
      <dc:date>2000-11-06T22:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: telnet scripts ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462154#M14472</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;remsh is the program you need, providing the&lt;BR /&gt;.rhosts file is set properly on the remote &lt;BR /&gt;host.&lt;BR /&gt;&lt;BR /&gt;If you want to start an X11 executable&lt;BR /&gt;on the remote host, you can use xon as in&lt;BR /&gt;xon HOST /usr/bin/X11/xclock&lt;BR /&gt;xon will take care of your $DISPLAY &lt;BR /&gt;environment variable.&lt;BR /&gt;&lt;BR /&gt;I'm using xon as an easy way to open&lt;BR /&gt;a new dtterm window on a remote host by &lt;BR /&gt;setting a few aliases in my .profile&lt;BR /&gt;for example:&lt;BR /&gt;alias sys01='/usr/contrib/bin/X11/xon &lt;BR /&gt;sys01 /usr/bin/X11/dtterm -name sys01 -ls'&lt;BR /&gt;&lt;BR /&gt;Typing "sys01" will then open a new dtterm&lt;BR /&gt;window, named sys01 with a login shell on the&lt;BR /&gt;remote host (that's what the -ls is for)&lt;BR /&gt;My $DISPLAY environment variable will&lt;BR /&gt;be automatically set in this new window.&lt;BR /&gt;&lt;BR /&gt;Don't forget the .rhosts file, it's needed&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;&lt;BR /&gt;PS: xon is unsupported by HP but I've been&lt;BR /&gt;using it for years without any problem.&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Nov 2000 07:55:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462154#M14472</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-11-07T07:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: telnet scripts ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462155#M14473</link>
      <description>Richard,&lt;BR /&gt;&lt;BR /&gt;As others have indicated 'remsh' may be the program for you. You do not say what 'box' is so it might not have 'rsh' at all.&lt;BR /&gt;&lt;BR /&gt;We use telnet scripts to login to e.g. routers and retrieve statistics etc.&lt;BR /&gt;&lt;BR /&gt;You might want to look at a program called 'expect' (FreeWare) where you do differently depending on feedback.&lt;BR /&gt;&lt;BR /&gt;A simple telnet script can be constucted doing something like this:&lt;BR /&gt;&lt;BR /&gt;( sleep 2&lt;BR /&gt;echo guest&lt;BR /&gt;sleep 2&lt;BR /&gt;echo guestw&lt;BR /&gt;sleep 5&lt;BR /&gt;echo ls&lt;BR /&gt;sleep 5&lt;BR /&gt;echo exit ) | telnet host&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The script logs into a host and executes 'ls'.&lt;BR /&gt;&lt;BR /&gt;You need the sleep commands in order to be sure that the previous command has finished. ('expect' is a lot better on this point)</description>
      <pubDate>Tue, 07 Nov 2000 08:22:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462155#M14473</guid>
      <dc:creator>Lasse Knudsen</dc:creator>
      <dc:date>2000-11-07T08:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: telnet scripts ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462156#M14474</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;just to strengthen Perl's bashfully neglected position in this forum,&lt;BR /&gt;there is a splendid Module in CPAN for scripting automated telnet sessions.&lt;BR /&gt;Please, have a look at&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.cpan.org/modules/by-module/Net/Net-Telnet-3.02.readme" target="_blank"&gt;http://www.cpan.org/modules/by-module/Net/Net-Telnet-3.02.readme&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;However, if not using Perl I'd go for ssh which is a much better replacement for rsh (which HP unconventionally called remsh, the other is restricted shell in HP lingo).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Nov 2000 08:42:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-scripts/m-p/2462156#M14474</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2000-11-07T08:42:54Z</dc:date>
    </item>
  </channel>
</rss>

