Hello,

I have finally been able to take the time to try the pass through printing.
I used your Gregory) instructions to create the passprt (see note at end of
attached file) file, and then the instruction below to make it work through
DOS EMU, and it works great.  I don't get the cutoff problem that you where
getting in your clipper program.

Now my users will be able to print to any printer in the world, plus, if
they have fax software, they will be able to fax their jobs directly with
out wasting any paper or making trips to the fax.

Thanks for your help.  If you need any details about my configuration, let
me know.  

     Matthew E. Nuzum
     IS Director
     Florida Vacation Accommodations
     [EMAIL PROTECTED]

 -----Original Message-----
From:   [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]  On Behalf Of Gregory Doyle
Sent:   Monday, November 15, 1999 2:27 PM
To:     [EMAIL PROTECTED]
Subject:        Re: Pass-Through Printing via Telnet in DOSEMU?

 
--

On Fri, 12 Nov 1999 19:32:31   Tasos Chronis wrote:
>Hi
>
>In the printer section of global.conf it have something 
>like that :
>
>          
>if (strlen($_printer))
>    foreach $xxx ($LIST_DELIM, $_printer)
>        $xxx = "'/usr/bin/webps ",$REMOTE_HOST,"'";
>        printer { options "< %s"  command $$xxx  timeout 40 }
>      done
>endif
>
>My global.conf file is included. Don't remember if I did any other
>changes 
>for REMOTE_HOST. 
>
Learning from how you modified the global.conf file, I did the following to
my global.conf file

                               
 if (strlen($_printer))
     foreach $xxx ($LIST_DELIM, $_printer)
     $xxx = "'/usr/bin/passprt '";
     printer { options "%s"  command $$xxx  timeout 40 }
     done
 endif

Anyhow this seems to route the printout to the local telnet printer, however
for some reason each print jobs bombs (ie. only a portion of the job gets
the the local telnet printer and the rest seems to get lost)

I then decided to change the global.conf file and change the printer line
with the following:

                                printer { file "filename"}

Upon exiting DOSEMU, at the shell prompt I then do: passprt "filename"

When I do this I get the entire printjob printing at the local telnet
printer.  Anybody know why this would be happening.  It seems somehow DOSEMU
can send the printout to a file, but something gets lost when I get DOSEMU
to pipe it to the executable script.  Anybody have any ideas or suggestions?

Thanks in advance

GP Doyle


--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.

Passprt file in /usr/bin

#!/bin/sh
# used for redirecting a file to port on 
# terminal or telnet client
printf "\033[5i\c"
cat $*
printf "\033[4i\c"

Reply via email to