<?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: /dev/pts - What Is It? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-pts-what-is-it/m-p/5043676#M433388</link>
    <description>Your friend suggested looking to see if the login has a terminal or pseudo terminal attached. The tty command is used to get the name of the terminal.&lt;BR /&gt;&lt;BR /&gt;Can you change your test from 'tty|grep -c' to check for the return code instead?&lt;BR /&gt;&lt;BR /&gt;Here's a new test...&lt;BR /&gt;&lt;BR /&gt;tty -s &lt;BR /&gt;rc=$?&lt;BR /&gt;if [ ${rc} -eq 0 ]; then&lt;BR /&gt;echo "Terminal session"&lt;BR /&gt;elif [ ${rc} -eq 1 ];then&lt;BR /&gt;echo "Not a Terminal"&lt;BR /&gt;else&lt;BR /&gt;echo "unknown"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Could post more detail about how you're running it when you get different results?&lt;BR /&gt;&lt;BR /&gt;-denver</description>
    <pubDate>Tue, 01 May 2007 19:13:20 GMT</pubDate>
    <dc:creator>Denver Osborn</dc:creator>
    <dc:date>2007-05-01T19:13:20Z</dc:date>
    <item>
      <title>/dev/pts - What Is It?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-pts-what-is-it/m-p/5043674#M433386</link>
      <description>To find out whether a client is using Dynamic Connect or wIntegrate, a friend suggested... &lt;BR /&gt;&lt;BR /&gt;ISINT=`tty | grep -c /dev/pts`&lt;BR /&gt;if [ "${ISINT}j" = "1j" ]&lt;BR /&gt;  then&lt;BR /&gt; echo "Terminal session"&lt;BR /&gt;  else&lt;BR /&gt; echo "From wIntegrate&lt;BR /&gt;&lt;BR /&gt;When I run it twice on the same client, I obtain different results.  What is /dev/pts ?</description>
      <pubDate>Tue, 01 May 2007 18:27:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-pts-what-is-it/m-p/5043674#M433386</guid>
      <dc:creator>Bill Brutzman</dc:creator>
      <dc:date>2007-05-01T18:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/pts - What Is It?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-pts-what-is-it/m-p/5043675#M433387</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;/dev/pts is the terminal session that is assigned to a user when logged in. If you do a ps -ef |grep pts you will see all the users and user processes on the system have a pts/XX entry where XX is an alpha numeric character.</description>
      <pubDate>Tue, 01 May 2007 19:03:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-pts-what-is-it/m-p/5043675#M433387</guid>
      <dc:creator>John McWilliams_1</dc:creator>
      <dc:date>2007-05-01T19:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/pts - What Is It?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-pts-what-is-it/m-p/5043676#M433388</link>
      <description>Your friend suggested looking to see if the login has a terminal or pseudo terminal attached. The tty command is used to get the name of the terminal.&lt;BR /&gt;&lt;BR /&gt;Can you change your test from 'tty|grep -c' to check for the return code instead?&lt;BR /&gt;&lt;BR /&gt;Here's a new test...&lt;BR /&gt;&lt;BR /&gt;tty -s &lt;BR /&gt;rc=$?&lt;BR /&gt;if [ ${rc} -eq 0 ]; then&lt;BR /&gt;echo "Terminal session"&lt;BR /&gt;elif [ ${rc} -eq 1 ];then&lt;BR /&gt;echo "Not a Terminal"&lt;BR /&gt;else&lt;BR /&gt;echo "unknown"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Could post more detail about how you're running it when you get different results?&lt;BR /&gt;&lt;BR /&gt;-denver</description>
      <pubDate>Tue, 01 May 2007 19:13:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-pts-what-is-it/m-p/5043676#M433388</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2007-05-01T19:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/pts - What Is It?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-pts-what-is-it/m-p/5043677#M433389</link>
      <description>So everytime a user logs in, hp-ux unix increments the session ID?&lt;BR /&gt;&lt;BR /&gt;Some of the dates on the files are year 3031.&lt;BR /&gt;&lt;BR /&gt;Why am I unable to open these files with a text editor?</description>
      <pubDate>Tue, 01 May 2007 19:19:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-pts-what-is-it/m-p/5043677#M433389</guid>
      <dc:creator>Bill Brutzman</dc:creator>
      <dc:date>2007-05-01T19:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/pts - What Is It?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-pts-what-is-it/m-p/5043678#M433390</link>
      <description>So everytime a user logs in, hp-ux unix increments the session ID?&lt;BR /&gt;-----------------------------------------&lt;BR /&gt;Not precisely; just as process id's increment up to a limit and are then recycled so too are session id's.&lt;BR /&gt;&lt;BR /&gt;3031 exceeds the 32-bit time representation of most flavors of UNIX but that timestamp should have nothing to do with the ability to open a file. That should be solely a function of the files mode (type + permissions); however, the ability to open a file with a text editor is a bit different still. The effects are very unpredictable when a text editor is used on non textual data and vi was never intended to be used on device files. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 May 2007 19:55:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-pts-what-is-it/m-p/5043678#M433390</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-05-01T19:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/pts - What Is It?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-pts-what-is-it/m-p/5043679#M433391</link>
      <description>It appears that what I really need is the client's IP address.&lt;BR /&gt;&lt;BR /&gt;What is the Unix-prompt command to obtain the client's IP address.</description>
      <pubDate>Wed, 02 May 2007 10:24:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-pts-what-is-it/m-p/5043679#M433391</guid>
      <dc:creator>Bill Brutzman</dc:creator>
      <dc:date>2007-05-02T10:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/pts - What Is It?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-pts-what-is-it/m-p/5043680#M433392</link>
      <description>who -u</description>
      <pubDate>Wed, 02 May 2007 10:31:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-pts-what-is-it/m-p/5043680#M433392</guid>
      <dc:creator>David Bellamy</dc:creator>
      <dc:date>2007-05-02T10:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/pts - What Is It?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-pts-what-is-it/m-p/5043681#M433393</link>
      <description>.</description>
      <pubDate>Thu, 13 Dec 2007 15:09:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-pts-what-is-it/m-p/5043681#M433393</guid>
      <dc:creator>Bill Brutzman</dc:creator>
      <dc:date>2007-12-13T15:09:40Z</dc:date>
    </item>
  </channel>
</rss>

