Computing.Net > Forums > Unix > printing to an ip address

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

printing to an ip address

Reply to Message Icon

Name: Dave
Date: July 11, 2002 at 01:24:24 Pacific
Comment:

Hi,
I need to print to an ip address rather than a host name (because its easier then messing with hosts file etc, + i might not have permissions). I found I can telnet in and use the command
"cat filename | telnet TCP/IP address 9100 "
which sometimes works, but occasionally screws it up, if there are escape sequences in the file. What i want to know is can I use lp -d"ip address" "filename", if so what is the exact format of the command as i have tried lp -d128.12.122.96 file
lp -d[128.12.122.96] file
lp -d"128.12.122.96" file
Ta



Sponsored Link
Ads by Google

Response Number 1
Name: Glenn
Date: July 11, 2002 at 07:55:18 Pacific
Reply:

On my SINIX-Y Unix I put an enrty in the /etc/hosts file
i.e 128.12.122.96 Printername # note

then pipe the command to it

cat Filename | lp -dPrintername


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: printing to an ip address

Printing to an IP address www.computing.net/answers/unix/printing-to-an-ip-address/4736.html

Blocking Sent Info to Particular IP www.computing.net/answers/unix/blocking-sent-info-to-particular-ip/5496.html

IP address www.computing.net/answers/unix/ip-address/2847.html