All my printing is raw ASCII data as well so I use a utility called NetCat that comes with Linux for all my printers (HP LaserJet). I don't even bother setting the printers up in the OS (Linux). It's a small "C" program that can be compiled on Windows or other UNIX systems. NetCat makes reading from and writing to TCPIP ports easy. http://netcat.sourceforge.net/ - My UniVerse printer driver looks like this:
"cat - | unix2dos | tr -d '\032' | nc -w5 accounting 9100" (excluding the double quotes). You should be able to use netcat (nc) in a shell script or on the command line to accomplish what you want. Here is the sourceforge description: Netcat is a featured networking utility which reads and writes data across network connections, using the TCP/IP protocol. It is designed to be a reliable "back-end" tool that can be used directly or easily driven by other programs and scripts. At the same time, it is a feature-rich network debugging and exploration tool, since it can create almost any kind of connection you would need and has several interesting built-in capabilities. It provides access to the following main features: Outbound and inbound connections, TCP or UDP, to or from any ports. Featured tunneling mode which allows also special tunneling such as UDP to TCP, with the possibility of specifying all network parameters (source port/interface, listening port/interface, and the remote host allowed to connect to the tunnel. Built-in port-scanning capabilities, with randomizer. Advanced usage options, such as buffered send-mode (one line every N seconds), and hexdump (to stderr or to a specified file) of trasmitted and received data. Optional RFC854 telnet codes parser and responder. The GNU Netcat is distributed freely under the GNU General Public License (GPL). -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George Gallen Sent: Friday, April 01, 2005 2:10 PM To: [email protected] Subject: RE: [U2] [UV] send data to IP address? As long as the printer and system are on the same physical network, if you wanted to be a little safer, you could always hook up a USB ethernet plug, give it it's own subnet, with a tight submask, and set the zebra's server to the same subnet. This would drastically limit those that can send to the printer, whichever method you use. Does UV 9.6 have callhttp? If the print server is a jetdirect workalike you can just open port 9100, send your data and close port 9100 at the IP address, and it should print just fine. George Since your running windows, hooking up a single use ethernet is a snap with USB (just something to think about). >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] Behalf Of Barry Brevik >Sent: Friday, April 01, 2005 2:42 PM >To: U2-users (E-mail) >Subject: [U2] [UV] send data to IP address? > > >Running UV 9.6.1.3 on Windows 2000. > >Situation: We have a Zebra/Eltron barcode printer attached to >a ZebraLink >print server, so it appears as an IP address on our network. I >don't really >need a driver for this printer because I can easily send raw >data to the >printer and get it to do what I want. > >Problem: I'd like to send data to this printer directly from >UV Basic. I >would rather not set it up as a UV printer because I don't >want users to see >it and accidentally send data to it. > >In a CMD window, I was able to NET USE the printer (on a >remote machine), >and then just copy the data to my local PRN, and it works perfectly. > >Anybody know if there is a way to make this connection in UV >Basic? I tried >creating a VOC entry and doing an OPENSEQ on it but it fails. >I've tried a >few other things as well. > >TIA, > >Barry Brevik >------- >u2-users mailing list >[email protected] >To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
