[ic] lpr within a usertag

Peter peter at pajamian.dhs.org
Fri Feb 1 20:28:45 EST 2008


On 02/01/2008 05:18 PM, Grant wrote:
>> You should use system() instead of backticks for readability, and to
>> help avoid this sort of problem.
> 
> Is that:
> 
> system(lpr file.pdf);
> 
> I couldn't get that to work.

you have to quote your strings in Perl:
system('lpr file.pdf');

Again, consider the use of Net::Printer for this, you'll be much better off.

>> them if you really need to.  Exposing a LPD port to the world doesn't
>> strike me as such as good idea either.
> 
> Fewer open ports are better, of course, but we've got to communicate
> too, right?  How would you set this up?

ssh tunnel, then.

Peter



More information about the interchange-users mailing list