<?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: Multiple Telnet Sessions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions/m-p/2638660#M590045</link>
    <description>The -x addition should work for you, you may also want to consider changing all the if/fi statements to one if/elif/elif../fi statement. That would probably work quicker for you down the line if your script keeps growing.&lt;BR /&gt;&lt;BR /&gt;GL,&lt;BR /&gt;C</description>
    <pubDate>Thu, 03 Jan 2002 20:52:13 GMT</pubDate>
    <dc:creator>Craig Rants</dc:creator>
    <dc:date>2002-01-03T20:52:13Z</dc:date>
    <item>
      <title>Multiple Telnet Sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions/m-p/2638658#M590043</link>
      <description>Solution given on December 5 by Sridhar Bhaskarla was great however we have since had some people that do need multiple sessions. I have attached the script which was modified and inserted into our profile script to allow certain people multiple sessions. What is happening now is with the modifications the system is only letting someone with the ip address beginning with what is specified in the profile script multiple logins. Example: My ip address ends in 14.2 and if there are 3 people on that end in 14.22 and 14.24 and 14.17 then it does not let me on. How do I correct this problem?</description>
      <pubDate>Thu, 03 Jan 2002 20:43:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions/m-p/2638658#M590043</guid>
      <dc:creator>Darrell Albee</dc:creator>
      <dc:date>2002-01-03T20:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Telnet Sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions/m-p/2638659#M590044</link>
      <description>try this&lt;BR /&gt;&lt;BR /&gt;NO=`who -R |grep -x $IP|wc -l`&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Jan 2002 20:48:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions/m-p/2638659#M590044</guid>
      <dc:creator>Jeff Machols</dc:creator>
      <dc:date>2002-01-03T20:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Telnet Sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions/m-p/2638660#M590045</link>
      <description>The -x addition should work for you, you may also want to consider changing all the if/fi statements to one if/elif/elif../fi statement. That would probably work quicker for you down the line if your script keeps growing.&lt;BR /&gt;&lt;BR /&gt;GL,&lt;BR /&gt;C</description>
      <pubDate>Thu, 03 Jan 2002 20:52:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions/m-p/2638660#M590045</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2002-01-03T20:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Telnet Sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions/m-p/2638661#M590046</link>
      <description>&lt;BR /&gt;easy:&lt;BR /&gt;&lt;BR /&gt;change your script to use grep:&lt;BR /&gt;&lt;BR /&gt;#######&lt;BR /&gt;test=`echo $IP | grep -f ips.allow` &lt;BR /&gt;if [ "$test" != "" ]; then&lt;BR /&gt;   BYPASS='Y'&lt;BR /&gt;fi&lt;BR /&gt;if [ "$IP" = "" ]; then&lt;BR /&gt;   BYPASS='Y'&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;#########&lt;BR /&gt;create a file called "ips.allow"::&lt;BR /&gt;&lt;BR /&gt;172.31.17.1$&lt;BR /&gt;172.31.16.10$&lt;BR /&gt;DTS_TFLEX_TS01$&lt;BR /&gt;172.31.17.109$&lt;BR /&gt;172.31.17.5$&lt;BR /&gt;&lt;BR /&gt;The "$" tells grep that it is the end of the line, so trailing characters will not match.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 03 Jan 2002 20:57:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions/m-p/2638661#M590046</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-03T20:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Telnet Sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions/m-p/2638662#M590047</link>
      <description>Darrell,&lt;BR /&gt;&lt;BR /&gt;using my example as a stand alone script:&lt;BR /&gt;&lt;BR /&gt;ips.allow:&lt;BR /&gt;172.31.17.1$&lt;BR /&gt;172.31.16.10$&lt;BR /&gt;DTS_TFLEX_TS01$&lt;BR /&gt;172.31.17.109$&lt;BR /&gt;172.31.17.5$&lt;BR /&gt;&lt;BR /&gt;test:&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;#&lt;BR /&gt;BYPASS='N'&lt;BR /&gt;read IP&lt;BR /&gt;test=`echo $IP | grep -f ips.allow` &lt;BR /&gt;if [ "$test" != "" ]; then&lt;BR /&gt;   BYPASS='Y'&lt;BR /&gt;fi&lt;BR /&gt;if [ "$IP" = "" ]; then&lt;BR /&gt;   BYPASS='Y'&lt;BR /&gt;fi&lt;BR /&gt;echo $BYPASS&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;here is a test:&lt;BR /&gt;&lt;BR /&gt;# ./test        &lt;BR /&gt;172.31.17.11&lt;BR /&gt;N&lt;BR /&gt;# ./test&lt;BR /&gt;172.31.17.1&lt;BR /&gt;Y&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;To test for "null" use "ctrl-d" to simulate it, as carriage return is a \n.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 03 Jan 2002 21:09:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions/m-p/2638662#M590047</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-03T21:09:35Z</dc:date>
    </item>
  </channel>
</rss>

