[opensuse] How to copy a file to my printer?
I still have some files with embedded printer instructions from dos. In dos I would copy that file to "lpt1" or "prn" and the printout would be processed. What would be the command in openSUSE? -- Linux User 183145 using LXDE on a Pentium IV , powered by openSUSE 11.3 (i586) Kernel: 2.6.36-rc4-18-desktop LXDE WM & KDE Development Platform: 4.5.1 (KDE 4.5.1) 18:36pm up 17:34, 3 users, load average: 1.39, 0.87, 0.76 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
C. Brouerius van Nidek wrote:
I still have some files with embedded printer instructions from dos. In dos I would copy that file to "lpt1" or "prn" and the printout would be processed. What would be the command in openSUSE?
Try: $ lpr -l <file> (equivalent to "lpr -o raw <file>") HTH Ph. A. -- *Philippe Andersson* Unix System Administrator IBA Particle Therapy | Tel: +32-10-475.983 Fax: +32-10-487.707 eMail: pan@iba-group.com <http://www.iba-worldwide.com>
On Fri, 2010-09-17 at 18:45 +0700, C. Brouerius van Nidek wrote:
I still have some files with embedded printer instructions from dos. In dos I would copy that file to "lpt1" or "prn" and the printout would be processed. What would be the command in openSUSE?
Print these via the CUPs queue like any other jobs but specify the mime-type via options. -o document-format=application/vnd.cups-raw This will inform CUPS to pass the job through without filtering. Note that you may have to enable raw jobs in CUPS (it may be disabled by default). To do so, as I recall, put a line for "application/octet-stream" in /etc/cups/mime.types. Perhaps there is an option for this in Yast2? I don't know, all our print servers are CentOS. -- Adam Tauno Williams <awilliam@whitemice.org> LPIC-1, Novell CLA <http://www.whitemiceconsulting.com> OpenGroupware, Cyrus IMAPd, Postfix, OpenLDAP, Samba -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 9/17/2010 7:45 AM, C. Brouerius van Nidek wrote:
I still have some files with embedded printer instructions from dos. In dos I would copy that file to "lpt1" or "prn" and the printout would be processed. What would be the command in openSUSE?
Depends how the printer is connected and/or what spooler software you are using and what add-ons it has installed, and/or if you even care about doing it "right" through the spooler or don't mind sending the file direct. Assuming you have the default cups spooler installed... and assuming you've somehow already got the printer automagically working in cups thanks to yast... http://www.cups.org/documentation.php/options.html#raw lp -d printername -o raw file or cat file >/dev/something lpstat -v to figure out what <something> is, again, assuming the spooler somehow got configured automatically, otherwise you just have to know the device. Try tail -f /var/log/messages and then disconnect/reconnect the printer, maybe udev will log some messages that show it. or netcat printer-ip-address 9100 file or about 50 other possible variations of above. The details we can't say, only the priciples. The first is the "nicest" and "most correct" way, since it uses the spooler, meaning the spooler will ensure no other print jobs will try to talk to the printer while this one is going. It also means there are more things involved behind the scenes which might not work. The other two are dirty but too smple to fail as long as you actually know the correct device name and/or print server ip address and the print servers supported features and configuration. IE: does it support raw tcp aka jetdirect printing? and if so, is that option turned on? and if so, is it actually listening on port 9100? That's standard for a single-port print server but it's configurable so no way for us garantee it from here. If not, It probably supports _at least_ lpd and smb printing, and probably several other protocols, all of which deliver print data without modification, but the necessary steps on the host are different in each case. netcat is just by far the simplest. rlpr would be the next simplest except it's not in the standard repos so just getting that installed is a slight complication itself, even if then using it is as simple as netcat. Hopefully the lp command worked and none of this matters. :) -- bkw -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2010-09-17 at 18:45 +0700, C. Brouerius van Nidek wrote:
I still have some files with embedded printer instructions from dos. In dos I would copy that file to "lpt1" or "prn" and the printout would be processed. What would be the command in openSUSE?
Isn't this a drag and drop onto the Printer icon on the desktop kind of thing? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Adam Tauno Williams
-
Brian K. White
-
C. Brouerius van Nidek
-
Mike McMullin
-
Philippe Andersson