Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing From home

Status
Not open for further replies.

gonzilla

Programmer
Apr 10, 2001
125
US
Hello,

I am taking an operating systems class where I am learning UNIX. To access UNIX I have to telnet in to the school because I don't have it (or Linux) at home yet. I would like to be able to print from my home printer when I am doing projects. Right now, I FTP the document to my PC which is fine, but I was wondering if there was a simple way I could just get it to print to LPT1.

Thank you for your help.

-Tyler
 
Can only speak from a terminal and login environment. I do this regularly on SCO using a terminal emulator logging into the sco boxes. Have printer set up in unix for printing to the attached printer. This may be built in on the unix you are using. But it can also be built into the printer interface scripts if it is not built into the hardware. Ed Fair
efair@atlnet.com

Any advice I give is my best judgement based on my interpretation of the facts you supply.

Help increase my knowledge by providing some feedback, good or bad, on any advice I have given.

 
This will work if you are running in a VT100 enviornment. Creat a script called local_print containing this:

FILE=$1
echo ^[[5i
cat $FILE
echo ^L^M
echo ^[[4i

The ^[ ^L and ^M are escape characters, not ^ and L.

Then to print, local_print filename. This will output to whatever your emulator has defined as the default printer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top