Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Unknown Newsgroups: comp.os.linux.misc Subject: Re: How do you access the printer in Linux/C? Date: Fri, 8 May 2015 10:44:55 +0000 (UTC) Organization: A noiseless patient Spider Lines: 53 Message-ID: References: <87lhi4b5uv.fld@barrow.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 8 May 2015 10:44:55 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="2767e179f80b7fe3dbfc2a09159fd655"; logging-data="17115"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/NapniZwIJH7ee+yToRjqyk+GgG1Ei1uw=" User-Agent: Pan/0.133 (House of Butterflies) Cancel-Lock: sha1:hQ7Wc1rHUFXKM12VWNJd60LvWvU= Xref: csiph.com comp.os.linux.misc:14728 On Wed, 06 May 2015 13:36:45 +0000, Joe Beanfish wrote: > On Wed, 06 May 2015 08:50:56 +0000, Unknown wrote: >> If the office M$ system was closed for 2 weeks, and you needed to >> desperately print some files from your portable *nix computer via the >> office-HP-3055-Laser-Jet, how would you drive the printer via an eth0 >> cable from your portable? >> >> What's a simple script to probe the printer to find its IP? Can nc do >> that? >> >> You've previously always just given your text-files to the M$-user on >> a USBstik, so you've never setup `cups` etc. on a computer, and you >> want to be able to just plug in your ethO cable and call a single >> script, and not need to work at the inconveniently located printer. >> >> How to simplify even further, so that the portable device, that brings >> the files to the eth0 connected printer, has no display/kybrd, and is >> just programmed to . No that's not fantacy >> : it's been playing flawlessly, when powered-up 1000 >> times. > > Well, playing a local sound file through the known/built-in audio device > is not at all the same as probing the entire network for any/all > printers, determining their make/model, Perhaps a picture will help? Disconnect existing eth0 cable from printer [rPi in shoe-box with 6V acco]--eth0Cable-->[HP-3055-Laser-Jet] > and pumping the source document > through the right conversion and driver to send to the printer. You'll > be lucky to find a command-line only solution, much less a blind one. > And you're certainly not going to be develop a solution in isolation and > have it just work when you're at said office. You'll need to develop the > procedure at the office. A couple useful tools might be nmap for > discovery and smbspool for sending data to the printer. > nmap - Network exploration tool and security / port scannersmbspool - smbspool - send a print file to an SMB printer That looks interesting. Thanks. I've read that a common printer:IP = 192.168.0.9100 [or something] Does it mess their network if I just unplug their eth0->printer, and plug rPi to do: ping common Printer IP/s and save results ? > Perhaps a call to the office to at least find out the make and model of > printer would be helpful. That was listed in OP. Think from 1st principles; not ito *YOUR* office.