<?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: Connecting telnet users from shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284598#M876644</link>
    <description>Shailesh,&lt;BR /&gt;&lt;BR /&gt;Sorry, absolutely no way that a HP-UX binary is going to run on Solaris, or vice-versa - never have, never will!&lt;BR /&gt;&lt;BR /&gt;Of course you can get expect binaries for Solaris. The equivalent site for Solaris users is:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.sunfreeware.com/" target="_blank"&gt;http://www.sunfreeware.com/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You'll find expect here somewhere - make sure you download the correct version for your release of Solaris.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
    <pubDate>Wed, 26 May 2004 06:42:28 GMT</pubDate>
    <dc:creator>Duncan Edmonstone</dc:creator>
    <dc:date>2004-05-26T06:42:28Z</dc:date>
    <item>
      <title>Connecting telnet users from shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284590#M876636</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I want to write a shell script, which will test some unix user-ids. The user-ids could be either ftp ids or telnet ids. Testing for FTP-ids is easy. But for telnet ids, how should I connect to those users through script so that it will not prompt for passwords. I have user-id/pwds for all the users. All the users are present on the same machine and the script will also run from the same machine. &lt;BR /&gt;&lt;BR /&gt;Does anybody know how to achieve this?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shailesh</description>
      <pubDate>Mon, 24 May 2004 06:03:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284590#M876636</guid>
      <dc:creator>Shailesh Joshi</dc:creator>
      <dc:date>2004-05-24T06:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting telnet users from shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284591#M876637</link>
      <description>Looks like a job for expect:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.41/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.41/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This will let you talk to the tty in script fashion...&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 24 May 2004 06:14:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284591#M876637</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2004-05-24T06:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting telnet users from shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284592#M876638</link>
      <description>hi shailesh&lt;BR /&gt;&lt;BR /&gt;expect will do the job for you, as duncan has mentioned&lt;BR /&gt;&lt;BR /&gt;with best wishes&lt;BR /&gt;Naveej</description>
      <pubDate>Mon, 24 May 2004 06:24:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284592#M876638</guid>
      <dc:creator>Naveej.K.A</dc:creator>
      <dc:date>2004-05-24T06:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting telnet users from shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284593#M876639</link>
      <description>Hi Shailesh, I have make this script for you.&lt;BR /&gt;Try &amp;amp; say me.&lt;BR /&gt;By&lt;BR /&gt;Gabriele</description>
      <pubDate>Tue, 25 May 2004 10:54:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284593#M876639</guid>
      <dc:creator>Gabriele FACCHINI</dc:creator>
      <dc:date>2004-05-25T10:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting telnet users from shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284594#M876640</link>
      <description>Excuse I have make an error, this is the correct version.&lt;BR /&gt;By &lt;BR /&gt;Gabriele</description>
      <pubDate>Tue, 25 May 2004 10:59:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284594#M876640</guid>
      <dc:creator>Gabriele FACCHINI</dc:creator>
      <dc:date>2004-05-25T10:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting telnet users from shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284595#M876641</link>
      <description>Hi Gabriele,&lt;BR /&gt;&lt;BR /&gt;   The solution worked perfectly. In the script you have given different sleep times. Is that time fixed? And if yes, how did you arrive to those timings?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for the help.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shailesh&lt;BR /&gt;</description>
      <pubDate>Wed, 26 May 2004 05:31:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284595#M876641</guid>
      <dc:creator>Shailesh Joshi</dc:creator>
      <dc:date>2004-05-26T05:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting telnet users from shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284596#M876642</link>
      <description>Hi Duncan and Navjeet,&lt;BR /&gt;&lt;BR /&gt;   I tried the binary given by Duncan, but it didn't work. Actually I am working on a Solaris machine. Will that binary run on Solaris also? Being a new member I was not sure, whether I could post questions about Solaris on this list? So didn't mention about it. &lt;BR /&gt;&lt;BR /&gt;Anyway, Thanks for ur help.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shailesh&lt;BR /&gt;</description>
      <pubDate>Wed, 26 May 2004 05:35:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284596#M876642</guid>
      <dc:creator>Shailesh Joshi</dc:creator>
      <dc:date>2004-05-26T05:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting telnet users from shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284597#M876643</link>
      <description>Hi Shailesh the sleep time depend of the duration of the command. If you want to excute a command in a telnet script,  you must launch it before in a shell, es:&lt;BR /&gt;# time &lt;COMMAND&gt;&lt;BR /&gt;at the end of the output you read:&lt;BR /&gt;real        0.0&lt;BR /&gt;user        0.0&lt;BR /&gt;sys         0.0&lt;BR /&gt;You add the 3 times and you have the time for the sleep. You can add some seconds to the results.&lt;BR /&gt;&lt;BR /&gt;By Gabriele&lt;/COMMAND&gt;</description>
      <pubDate>Wed, 26 May 2004 06:22:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284597#M876643</guid>
      <dc:creator>Gabriele FACCHINI</dc:creator>
      <dc:date>2004-05-26T06:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting telnet users from shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284598#M876644</link>
      <description>Shailesh,&lt;BR /&gt;&lt;BR /&gt;Sorry, absolutely no way that a HP-UX binary is going to run on Solaris, or vice-versa - never have, never will!&lt;BR /&gt;&lt;BR /&gt;Of course you can get expect binaries for Solaris. The equivalent site for Solaris users is:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.sunfreeware.com/" target="_blank"&gt;http://www.sunfreeware.com/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You'll find expect here somewhere - make sure you download the correct version for your release of Solaris.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Wed, 26 May 2004 06:42:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284598#M876644</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2004-05-26T06:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting telnet users from shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284599#M876645</link>
      <description>Hello/Ciao Gabrielle,&lt;BR /&gt;&lt;BR /&gt;I need to capture the system time in the log file before the ftp and after the ftp.&lt;BR /&gt;&lt;BR /&gt;Also, the time before and after the remote telnet.&lt;BR /&gt;&lt;BR /&gt;How can I do this?&lt;BR /&gt;&lt;BR /&gt;Per Piacere/please.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jun 2004 08:53:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284599#M876645</guid>
      <dc:creator>Nick D'Angelo</dc:creator>
      <dc:date>2004-06-25T08:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting telnet users from shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284600#M876646</link>
      <description>Hi Nick, you can add to the script this entry: &lt;BR /&gt;date &amp;gt;&amp;gt;$LOG_FTP&lt;BR /&gt;before the entry:&lt;BR /&gt;ftp -i -v -n &amp;lt;${SORGENTE} |tee $LOG_FTP&lt;BR /&gt;and add the entry:&lt;BR /&gt;date &amp;gt;&amp;gt;$LOG_FTP&lt;BR /&gt;after the entries:&lt;BR /&gt;ftp -i -v -n &amp;lt;${SORGENTE} |tee $LOG_FTP&lt;BR /&gt;STATO=$?&lt;BR /&gt;and then the script become:&lt;BR /&gt;&lt;BR /&gt;for user_pwd in user1:pwd1 user2:pwd2 user3:pwd3&lt;BR /&gt;do&lt;BR /&gt; user=`echo $user_pwd|awk -F: '{print $1}'`&lt;BR /&gt; password=`echo $user_pwd|awk -F: '{print $2}'`&lt;BR /&gt; echo "open $server" &amp;gt; $SORGENTE&lt;BR /&gt; echo "user $user $password" &amp;gt;&amp;gt; $SORGENTE&lt;BR /&gt; echo "ls" &amp;gt;&amp;gt; $SORGENTE&lt;BR /&gt; echo "bye" &amp;gt;&amp;gt; $SORGENTE&lt;BR /&gt;        date &amp;gt;&amp;gt;$LOG_FTP&lt;BR /&gt; ftp -i -v -n &amp;lt;${SORGENTE} |tee $LOG_FTP&lt;BR /&gt; STATO=$?&lt;BR /&gt;        date &amp;gt;&amp;gt;$LOG_FTP&lt;BR /&gt;&lt;BR /&gt;bye&lt;BR /&gt;Gabriele&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Jun 2004 05:40:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/connecting-telnet-users-from-shell-script/m-p/3284600#M876646</guid>
      <dc:creator>Gabriele FACCHINI</dc:creator>
      <dc:date>2004-06-28T05:40:42Z</dc:date>
    </item>
  </channel>
</rss>

