This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Printing to network printers





> From: Steve Rainbird
> 
> "Rick Rankin" wrote in message 
> 189950.11753.qm@web65613.mail.ac4.yahoo.com">news:189950.11753.qm@web65613.mail.ac4.yahoo.com...
> >> From: Steve Rainbird
> >> 
> > 
> >> How can I print to a network printer?
> >> 
> >> I know if its attached to a server I can say
> >> 
> >> lpr -d //server/printer file
> >> 
> >> 
> >> But what do I do if the printer isn't attached to a server and is just a 
> printer
> >> on the network?
> > 
> > You should be able to add the printer through control panel, which will give 
> it a local name. You can then use that name as the argument to -d. It's usually 
> simpler if the name doesn't contain any spaces, but that's not a requirement.
> > 
> > Many network printers also provide a UNC-style name (//server/printer), even 
> though they're not directly connected a server, per se. If you can browse to the 
> printer when you're adding it, you should be able to use that name directly. It 
> all depends on how the provides its networking capability.
> > 
> > I assume you know that lpr is quite stupid, i.e., it just spools the file, 
> assuming that it is already correctly formatted for the target printer. It was 
> originally written to spool a postscript file to a postscript printer. It didn't 
> need to do any formatting.
> > 
> > --Rick
> > 
> > 
> 
> I am actually using enscript which I assume uses lpr for its printing?
> 
> -- Steve 
> 

Well, by default it does. A couple of (hopefully) obvious questions: Is the file you're trying to print (PRINT.BALANCES.20081203083027) a simple ASCII file, and is the printer (IAS_HP4PBN_A) a postscript printer? 

--Rick


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]