<?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: ttytype: couldn't open /dev/tty for reading in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-couldn-t-open-dev-tty-for-reading/m-p/5053725#M435264</link>
    <description>it sounds like you are trying to run this as either a cron job or an init script&lt;BR /&gt;&lt;BR /&gt;you need to take a look at /etc/profile, as this runs before .profile and contains the ttytype command.&lt;BR /&gt;&lt;BR /&gt;you need to stop that section from executing for "non-interactive" logins.</description>
    <pubDate>Tue, 19 Jun 2007 09:48:04 GMT</pubDate>
    <dc:creator>OldSchool</dc:creator>
    <dc:date>2007-06-19T09:48:04Z</dc:date>
    <item>
      <title>ttytype: couldn't open /dev/tty for reading</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-couldn-t-open-dev-tty-for-reading/m-p/5053724#M435263</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I get the error message "ttytype: couldn't open /dev/tty for reading" only when I run su - username -c "command".&lt;BR /&gt;&lt;BR /&gt;I don't think it has to do with the profile because I get the error before it even starts the profile (I put set -x in the .profile).  I can run it from the command line without a problem as well.  It is only from cron.  Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Tue, 19 Jun 2007 09:31:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-couldn-t-open-dev-tty-for-reading/m-p/5053724#M435263</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2007-06-19T09:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: ttytype: couldn't open /dev/tty for reading</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-couldn-t-open-dev-tty-for-reading/m-p/5053725#M435264</link>
      <description>it sounds like you are trying to run this as either a cron job or an init script&lt;BR /&gt;&lt;BR /&gt;you need to take a look at /etc/profile, as this runs before .profile and contains the ttytype command.&lt;BR /&gt;&lt;BR /&gt;you need to stop that section from executing for "non-interactive" logins.</description>
      <pubDate>Tue, 19 Jun 2007 09:48:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-couldn-t-open-dev-tty-for-reading/m-p/5053725#M435264</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2007-06-19T09:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: ttytype: couldn't open /dev/tty for reading</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-couldn-t-open-dev-tty-for-reading/m-p/5053726#M435265</link>
      <description>see this thread for ways to test for interactive shell:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1047318" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1047318&lt;/A&gt;</description>
      <pubDate>Tue, 19 Jun 2007 09:50:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-couldn-t-open-dev-tty-for-reading/m-p/5053726#M435265</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2007-06-19T09:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: ttytype: couldn't open /dev/tty for reading</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-couldn-t-open-dev-tty-for-reading/m-p/5053727#M435266</link>
      <description>Yes, I am running it from the cron and that is the only time I get the error.  From the command line it is fine.</description>
      <pubDate>Tue, 19 Jun 2007 09:51:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-couldn-t-open-dev-tty-for-reading/m-p/5053727#M435266</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2007-06-19T09:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: ttytype: couldn't open /dev/tty for reading</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-couldn-t-open-dev-tty-for-reading/m-p/5053728#M435267</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;if 'ttytype' is the only command in /etc/profile, which tries to access a tty, you can use&lt;BR /&gt;[ -t 1 ] &amp;amp;&amp;amp; ttytype ...&lt;BR /&gt;&lt;BR /&gt;Else put all unnecessary stuff for 'batch processing' into&lt;BR /&gt;if [ -t 1 ]&lt;BR /&gt;then&lt;BR /&gt;  ttytype ...&lt;BR /&gt;  who am I&lt;BR /&gt;  fortune&lt;BR /&gt;  ...&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Tue, 19 Jun 2007 12:23:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-couldn-t-open-dev-tty-for-reading/m-p/5053728#M435267</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2007-06-19T12:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: ttytype: couldn't open /dev/tty for reading</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-couldn-t-open-dev-tty-for-reading/m-p/5053729#M435268</link>
      <description>I copied the /etc/profile from another 11.23 system and it was back to normal.</description>
      <pubDate>Wed, 20 Jun 2007 12:33:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ttytype-couldn-t-open-dev-tty-for-reading/m-p/5053729#M435268</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2007-06-20T12:33:36Z</dc:date>
    </item>
  </channel>
</rss>

