The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to override the default paper size received by a print job ukarthik HP-UX 4 07-07-2007 10:45 PM
Type of content: VENDOR WHITE PAPER - Forbes iBot UNIX and Linux RSS News 0 07-04-2007 04:00 AM
Research paper pantsusan UNIX for Dummies Questions & Answers 1 05-13-2005 03:05 PM
Printing Problems in unix ... ( Bar-cdoe - Ip Printing) QuickSilver UNIX for Advanced & Expert Users 3 06-04-2002 10:48 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-16-2005
penguin-friend's Avatar
penguin-friend penguin-friend is offline
Registered User
  
 

Join Date: Nov 2001
Location: Paris, France
Posts: 55
Angry Printing spits out paper!!!

Hello again..

Here's my problem: i've got uses who print on a epson 1170 dot printer from a solaris server (SunOS ss5 5.3 Generic_101318-70 sun4m sparc)
Normally they print out data of an informix database.
The file is about 30 pages long.

I had to modify the lp command as follows (lpbase being the normal lp command)
if [ "$USERNAME" = "surve1" ] # username being their login
then
cat <&0 > /tmp/file_sql.$$
iconv -f 8859 -t 646fr /tmp/file_sql.$$ > /tmp/file_sql.conv.$$
chmod 777 /tmp/file_sql.conv.$$
chmod 777 /tmp/file_sql.$$
lpbase -s -y portrait -o nobanner /tmp/file_sql.conv.$$
else
cat <&0 | lpbase -s
fi

As you can see, this is not to terrific! So, when they print, the printer spits out tons of paper, not empty, but with data!!! The part to that interets me is the "else". What's wrong?

Thanx for any help..


Jason
  #2 (permalink)  
Old 05-28-2005
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
  
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 637
i don;t do informix but guessing from past experience --- it seems like your else-lpbase command is getting mangled input, if at all ... check if that line can print the output on the command line ... good luck!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:02 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0