Re: magifilter problems

1997-12-03 Thread Marco Pistore
On Tue, 2 Dec 1997, G. Kapetanios wrote:
 
 I have a pretty strage problem with my new printer. 
 I have a HP 6L with the latest version of magicfilter from hamm When I try
 to print anything but text and pcl files nothing happens. I have gs-alldin
 installed. If however, I process ps files with the same exact options as
 in the filter I am using and print with lp the output file it works. 

Hi, 

your error seems to happen with old versions of gs-aladdin
(the problems happen when gs is execuder with user=root or group=root
AND the output is sent to the stdout).

Which version are you using? 

You could consider to install gs-aladdin 5.03-1 (in hamm); this requires
a libc6 system however... 

Otherwise you can try to modify your filter file as follows: replace
 # PostScript
 0   %!  filter  /usr/bin/gs  -q -dSAFER -dNOPAUSE -r300
 -sDEVICE=ljet4 -sOutputFile=- - 
with;

# Postscript
0   %!  filter  /usr/bin/gs  -q -dSAFER -dNOPAUSE -r300
 -sDEVIC=ljet4 -sOutputFile=\|cat 13 - 31 12 

 Anybody has any clue. Of course I can keep working like that but a) can't
 print through application b) it is not very elegant since after the gs
 works I get a GS prompt and have to type quit to continue with the lp
 command.

The GS promt can be avoided by adding -c quit at the end of the gs command,
like in:

gs -q -dSEFAR -dNOPAUSE -sDEVICE=your_device -sOutputFIle=tmp_file \
you_file.ps -c quit


Ciao,

Marco


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


magifilter problems

1997-12-02 Thread G. Kapetanios


I have a pretty strage problem with my new printer. 
I have a HP 6L with the latest version of magicfilter from hamm When I try
to print anything but text and pcl files nothing happens. I have gs-alldin
installed. If however, I process ps files with the same exact options as
in the filter I am using and print with lp the output file it works. 
i.e. 

lp example.ps , nothing happens 
but if I run the following sscript I wrote then success
while [ $2 ]
do
  if [ $1 = ps ]
  then
gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ljet4 -sOutputFile=/tmp/tmp.pcl
$2
lp /tmp/tmp.pcl
rm /tmp/tmp.pcl
echo $2 printed
e,t,c,

the relevant part of the filter is 
# PostScript
0   %!  filter  /usr/bin/gs  -q -dSAFER -dNOPAUSE -r300
-sDEVICE
=ljet4 -sOutputFile=- - 
0   \004%!  filter  /usr/bin/gs  -q -dSAFER -dNOPAUSE -r300
-sDEVICE
=ljet4 -sOutputFile=- - 

Anybody has any clue. Of course I can keep working like that but a) can't
print through application b) it is not very elegant since after the gs
works I get a GS prompt and have to type quit to continue with the lp
command.

Any help would be greatly appreciated. 
 Thanks
 George 



---
George Kapetanios
Churchill College
Cambridge, CB3 0DSE-Mail: [EMAIL PROTECTED]
U.K.  WWW: http://garfield.chu.cam.ac.uk/~gk205/work_info.html
---



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .