General discussion

Locked

passthrough printing

By dejanbatic ·
I need to print at local priter during telnet session. I foung some escape codes, but seems that I'm not using them correctly. I made a script at server side (included) but it doas not print nor gives any errors. What do I do wrong?

# Pass-thru printing for the Bash shell
echo "Test Pass-through printing"
echo " File To Print: $1"
#echo -e "\034receive quiet\035"
tput mc5
cat $1
tput mc4
#echo -e "\034receive quiet off\035"
echo "Done."

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

passthrough printing

by james In reply to passthrough printing

The vt100 printer escape codes are only really useful if the terminal you are running telnet from supports printing.

The linux console does not do this, but some terminal emulator programs running under X do.

Another way to get files to the local machine would be to run an ssh daemon locally. Then within the telnet session, you can run:
cat filename | ssh host lpr -

Where host is the name of your local machine.

You might want to think about switching to ssh rather than telnet ifpossible, as it doesn't send passwords cleartext over the network.

Collapse -

passthrough printing

by dejanbatic In reply to passthrough printing

The question was auto-closed by TechRepublic

Collapse -

passthrough printing

by maxwell edison In reply to passthrough printing

Before you attempt to print your results to a local (or slave) printer, first you need to set the screen capture option to equal "PRN". To do this, press Alt-P. A setup screen for the telnet program will appear. Using the down arrow key, move your cursor to the "Capture File" prompt. Press Enter to clear out the default; type PRN in either upper or lower case; finally, press the F1 key to save your changes for the duration of your session.

Setting the screen capture option to equal "PRN" canbe done at any time during your session, but must be done before you try to print to a local printer.

Printing can be initiated for an entire or partial set from the search screen by pressing Ctrl-P or from the citation viewing screen by pressingCtrl-R (check the list of commands at the bottom of your screen). OVID will automatically toggle on and off the Screen Capture function when you choose to print during your search session.

Maxwell

Collapse -

passthrough printing

by dejanbatic In reply to passthrough printing

The question was auto-closed by TechRepublic

Collapse -

passthrough printing

by dejanbatic In reply to passthrough printing

This question was auto closed due to inactivity

Back to Linux Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums