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