[PLUG] Copying a file to a network address rather than a device
Galen Seitz
galens at seitzassoc.com
Fri Oct 7 16:10:43 UTC 2005
Rich Shepard <rshepard at appl-ecosys.com> wrote:
> I need to copy firmware upgrades to one of my printers. It's the only way
> to do this under linux. The suggested syntax is 'cat <filename> > /dev/lp1'.
> However, the printers are not directly connected to the server, but are
> network nodes served by JetDirect cards.
>
> In /etc/cups/printers.conf, the printer needing the upgrade is defined as:
> DeviceURI socket://colorp:9100; it's network address is: 192.168.55.194.
>
> Can I redirect the 'cat <filename>' to the IP address rather than the
> device and end up with the same results?
Do you have a raw print queue, that is, one without any filters? You
might be able to just 'print' the file. If not, the command 'nc' may do
what you want. Something like this might work:
nc 192.168.55.194 9100 < file
galen
More information about the PLUG
mailing list