- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Error "Not a typewriter" when printing from an...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 02:18 PM
07-18-2003 02:18 PM
Error "Not a typewriter" when printing from an application
lp -d
The file never seems to make it to the print queue and he gets the following error messages (from the syslog):
the print commandline return code: 35072
the print commandline return code: 25
the print commandline return code: Not a typewriter
According to the customer, this problem just started happening a couple of weeks ago.
The command works fine when run from the command line.
Does anyone have any suggestions?
Thanks...
- Chuck Sims
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 02:30 PM
07-18-2003 02:30 PM
Re: Error "Not a typewriter" when printing from an application
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:
...
if [ -t 0 ]; then
...do terminal-oriented things...
else
...skip terminal-oriented things...
fi
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 04:12 PM
07-18-2003 04:12 PM
Re: Error "Not a typewriter" when printing from an application
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.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 06:39 PM
07-18-2003 06:39 PM
Re: Error "Not a typewriter" when printing from an application
if [ -o interactive ]
then
eval $(ttytype -s)
tabs
... other interactive terminal commands ...
fi
Of course, if Oracle scripts have these commands imbedded inside their scripts, then the same rules apply.
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.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 12:14 PM
07-22-2003 12:14 PM
Re: Error "Not a typewriter" when printing from an application
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.
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).
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.
Again, thanks for your responses and suggestions.
- Chuck Sims