<?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 Error &amp;quot;Not a typewriter&amp;quot; when printing from an application in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/error-quot-not-a-typewriter-quot-when-printing-from-an/m-p/3027885#M910233</link>
    <description>One of my customers is running the following command from within an application:&lt;BR /&gt;&lt;BR /&gt;lp -d&lt;PRINTER&gt; &lt;FILE_NAME&gt;&lt;BR /&gt;&lt;BR /&gt;The file never seems to make it to the print queue and he gets the following error messages (from the syslog):&lt;BR /&gt;&lt;BR /&gt;the print commandline return code: 35072&lt;BR /&gt;the print commandline return code: 25&lt;BR /&gt;the print commandline return code: Not a typewriter&lt;BR /&gt;&lt;BR /&gt;According to the customer, this problem just started happening a couple of weeks ago.&lt;BR /&gt;&lt;BR /&gt;The command works fine when run from the command line.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any suggestions?&lt;BR /&gt;&lt;BR /&gt;Thanks...&lt;BR /&gt;&lt;BR /&gt;- Chuck Sims&lt;BR /&gt;&lt;BR /&gt;&lt;/FILE_NAME&gt;&lt;/PRINTER&gt;</description>
    <pubDate>Fri, 18 Jul 2003 21:18:23 GMT</pubDate>
    <dc:creator>Chuck Sims</dc:creator>
    <dc:date>2003-07-18T21:18:23Z</dc:date>
    <item>
      <title>Error "Not a typewriter" when printing from an application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-quot-not-a-typewriter-quot-when-printing-from-an/m-p/3027885#M910233</link>
      <description>One of my customers is running the following command from within an application:&lt;BR /&gt;&lt;BR /&gt;lp -d&lt;PRINTER&gt; &lt;FILE_NAME&gt;&lt;BR /&gt;&lt;BR /&gt;The file never seems to make it to the print queue and he gets the following error messages (from the syslog):&lt;BR /&gt;&lt;BR /&gt;the print commandline return code: 35072&lt;BR /&gt;the print commandline return code: 25&lt;BR /&gt;the print commandline return code: Not a typewriter&lt;BR /&gt;&lt;BR /&gt;According to the customer, this problem just started happening a couple of weeks ago.&lt;BR /&gt;&lt;BR /&gt;The command works fine when run from the command line.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any suggestions?&lt;BR /&gt;&lt;BR /&gt;Thanks...&lt;BR /&gt;&lt;BR /&gt;- Chuck Sims&lt;BR /&gt;&lt;BR /&gt;&lt;/FILE_NAME&gt;&lt;/PRINTER&gt;</description>
      <pubDate>Fri, 18 Jul 2003 21:18:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-quot-not-a-typewriter-quot-when-printing-from-an/m-p/3027885#M910233</guid>
      <dc:creator>Chuck Sims</dc:creator>
      <dc:date>2003-07-18T21:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error "Not a typewriter" when printing from an application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-quot-not-a-typewriter-quot-when-printing-from-an/m-p/3027886#M910234</link>
      <description>Hi Chuck:&lt;BR /&gt;&lt;BR /&gt;The infamous "Not a typewriter" message occurs when a process is not associated with a terminal but attempts to interact with it.  'stty' and 'tset' command found in standard $HOME/.profile files are common sources of the message when the 'profile' is sourced for a crontask.  A correct work-around is to condionally execute interactive code thusly:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;if [ -t 0 ]; then&lt;BR /&gt;  ...do terminal-oriented things...&lt;BR /&gt;else&lt;BR /&gt;  ...skip terminal-oriented things...&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 18 Jul 2003 21:30:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-quot-not-a-typewriter-quot-when-printing-from-an/m-p/3027886#M910234</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-07-18T21:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error "Not a typewriter" when printing from an application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-quot-not-a-typewriter-quot-when-printing-from-an/m-p/3027887#M910235</link>
      <description>My Oracle startup scripts do that all the time, because of the way Oracle writes their stock startup scripts.&lt;BR /&gt;&lt;BR /&gt;I've learned to ignore it in those circumstances.  I like the approach in the prior answer.  To bad nobody ever taught Oracle how to write a shell script.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 18 Jul 2003 23:12:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-quot-not-a-typewriter-quot-when-printing-from-an/m-p/3027887#M910235</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-07-18T23:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error "Not a typewriter" when printing from an application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-quot-not-a-typewriter-quot-when-printing-from-an/m-p/3027888#M910236</link>
      <description>It may not be the Oracle scripts that have the problem. Most often, it is su - oracle which will login using standard /etc/profile and .profile files. The problem is that interactive terminal commands (tabs, stty, ttytype, tput, tset and so on) are not properly 'protected' in the profile files. Code like this should be added to /etc/profile and .profile files:&lt;BR /&gt;&lt;BR /&gt;  if [ -o interactive ]&lt;BR /&gt;  then&lt;BR /&gt;     eval $(ttytype -s)&lt;BR /&gt;     tabs&lt;BR /&gt;       ... other interactive terminal commands ...&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;Of course, if Oracle scripts have these commands imbedded inside their scripts, then the same rules apply.&lt;BR /&gt;&lt;BR /&gt;As always, when things work OK from a 'standard' login versus a batch job, the culprit is the differences between a 'real' login with a controlling terminal versus batch jobs.</description>
      <pubDate>Sat, 19 Jul 2003 01:39:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-quot-not-a-typewriter-quot-when-printing-from-an/m-p/3027888#M910236</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-07-19T01:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error "Not a typewriter" when printing from an application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-quot-not-a-typewriter-quot-when-printing-from-an/m-p/3027889#M910237</link>
      <description>Aloha,&lt;BR /&gt;&lt;BR /&gt;Thanks to those who responded to my question/problem.  It solution to the problem turned out to be something completely different than was suggested.  For what it's worth, here is what we found.&lt;BR /&gt;&lt;BR /&gt;We are running CA's eTrust Access Control on the server that was having the problem.  (In retrospect, I probably should have mentioned that in my original post.)  eAC keeps very close track of who you are and what permissions you have.  So, even if you su to another user (prdusr, in this case), eAC knows who you are and will only let you have the permissions appropriate to your account (fortunately, this doesn't apply to root).  &lt;BR /&gt;&lt;BR /&gt;The application that was having the printing problem had been stopped and restarted by one of our application engineers.  The engineer had su'd to prdusr and started the application, but eAC knew that the enginer had started the process and assigned the appropriate ID to it.  Unfortunately, the engineer's permissions weren't sufficient to allow the application to print.  We fixed the problem by stopping the application and restarting it as root.&lt;BR /&gt;&lt;BR /&gt;Again, thanks for your responses and suggestions.&lt;BR /&gt;&lt;BR /&gt;- Chuck Sims</description>
      <pubDate>Tue, 22 Jul 2003 19:14:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-quot-not-a-typewriter-quot-when-printing-from-an/m-p/3027889#M910237</guid>
      <dc:creator>Chuck Sims</dc:creator>
      <dc:date>2003-07-22T19:14:23Z</dc:date>
    </item>
  </channel>
</rss>

