Antw.: [MacPerl-WebCGI] perl and printing on a printer

[email protected] (Eelco Alosery) Tue, 7 Jan 2003 19:52:59 +0100
Newsgroups perl.macperl.webcgi
Message-ID <[email protected]>
--Apple-Mail-27--766130035
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

I found my problem of the many page printing.
I was telling the comand in a while loop, sily me.

I use now this litle script to print to my printer:

open(TMPOUT,"$tekst_file") || die "Content-type: text/html\n\nCannot 
open $file!";
@results = <TMPOUT>;
close (TMPOUT);

open(LPR, "|lpr -P hp_color_LaserJet_2500 >/dev/null 2>&1");
   print LPR @results;
close(LPR);

But now my foloing problem,
what if I use my script on my laptop and want to print it on my printer 
via my IP adres of my computer on whits the printer is conected to.
I do use a router so I also need to tel my router whits port I need to 
alow to let tru this information I want to print.
I use the airport (white) router with buildin firewall.


Met vriendelijke groet,

Multi-Graphics
Eelco Alosery
Koekoeksbloem 11
8255 KH  Swifterbant
Tel : 0321-380014
Fax : 0321-843340
[email protected]
www.multi-graphics.nl
--Apple-Mail-27--766130035--