Computing.Net > Forums > Unix > sending output to printer

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.

sending output to printer

Reply to Message Icon

Name: rgoyal
Date: October 22, 2002 at 04:17:46 Pacific
OS: windows 2000
CPU/Ram: 128
Comment:

hi,
Windows 2000 professional and redhat linux is loaded on my system.

I am writing my code in C under Linux.My machine is a node in network and a printer is connected to other machine in the network.

I want to get the output of C program on the printer.



Sponsored Link
Ads by Google

Response Number 1
Name: Don Arnett
Date: October 22, 2002 at 08:25:49 Pacific
Reply:

Do you know the command to print a normal file to that printer. It's probably something like:

lp -potherprinter file

Assuming that your C program outputs to stdout (the screen), you can pipe the output to the lp command.

myprog | lp -potherprinter



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: sending output to printer

sending output to printer www.computing.net/answers/unix/sending-output-to-printer/4053.html

sending output to flatfile www.computing.net/answers/unix/sending-output-to-flatfile/8117.html

how to catch the exit status www.computing.net/answers/unix/how-to-catch-the-exit-status-/4098.html