05-16-2005
56,
0
Join Date: Nov 2001
Last Activity: 30 April 2012, 9:31 AM EDT
Location: Paris, France
Posts: 56
Thanks Given: 0
Thanked 0 Times in 0 Posts
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