John Fabiani on Tue, 5 Mar 2002 02:02:47 +0100 (CET)(envelope-from owner-apsfilter-help@apsfilter.org)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

pass through printing


Hi,
Does apsfilter support pass-through printing?  What I am attempting to 
do is the following:

Allow a user to login via telnet.  The IP address is NOT static. 
 Therefore I can not use standard remote print setup in the printcap. I 
then want to run a script (aspfilter) that redirects the print job not 
to a printer but to the user's terminal.  The simple script would go 
something like this:

printf "\033[5i" && cat && printf "\033[4i"

The problem is that I can't figure out how to get the print job back to 
the terminal. No matter what I do I get a permissions error when I 
attempt to write to the terminal.  The reason of course is that the user 
owns the tty - crw------- username tty 7,2 etc.....

If I change it as root (chmod 777 tty) of course the filter will then 
print to the tty.  However, when the user logs out and logins again the 
permissions return to the normal crw-------.  

I'm a newbie at all of this so any help will aid in getting this to 
work.  TIA
John