Printing spits out paper!!!


 
Thread Tools Search this Thread
Operating Systems Solaris Printing spits out paper!!!
# 1  
Old 05-16-2005
Network 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  
Old 05-28-2005
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!
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to check if printer is out of paper using perl script ?

Hello, I need to chack if the printer is out of paper, and send message to operator. I need to do this from perl script. The printer have mechanism to check if it have paper. However, the cups does not report "printer out of paper" when I remove the paper, and try to print. Is there any... (1 Reply)
Discussion started by: +Yan
1 Replies

2. AIX

Print Paper Size always A3 instead of A4

RICOH MPC4501 via AIX PrintServer is only printing on A3, even though its A4 contents. Similar Printer on same AIX PrintServer is printing correct though. What you think issue with first printer? AIX V6.1 (1 Reply)
Discussion started by: panchpan
1 Replies

3. HP-UX

Setting printer paper length using unix commands

Hi Guys, I have been trying to resolve a printing problem but nothing works out . I have an Epson LQ 680 (dot matrix printer) . I need to print a file . The paper length should be 34 .Left margin should be 5. I have tried the following things after researching from the man pages. pr -t... (24 Replies)
Discussion started by: Kar1234
24 Replies

4. UNIX for Dummies Questions & Answers

Rock Paper Scissors

I'm trying to create this game in Unix. This is what I have so far: echo "Player one: Choose (R)ock, (P)aper (S)cissors" stty -echo read Pone case $Pone in R) echo "Good Choice! Let's see what Player two chooses.";; P) echo "Good Choice! Let's see what Player two chooses.";; S) echo... (5 Replies)
Discussion started by: gpro
5 Replies

5. Shell Programming and Scripting

Research paper library

menu should look at least like the following:- RESEARCH PAPER LIBRARY - Main Menu 0 : EXIT this program 1 : EDIT menu 2 : REPORTS Menu Enter your choice> program should check for invalid choice and display error message and re-display the main-menu. If EDIT is... (1 Reply)
Discussion started by: SHakur_BIG
1 Replies

6. UNIX for Dummies Questions & Answers

Research paper

I am doing a "research" paper for school and i'm having a hard time finding accurate information. I am supposed to choose three differant versions of unix, give a brief explination of each, tell why there each differant from each other. I have found a ton of web sites but the information is so vast... (1 Reply)
Discussion started by: pantsusan
1 Replies
Login or Register to Ask a Question