PROBLEM:
I run a program at work that produces a print out on any printer attached
to the LAN. Now, How do I print local (at home) when dialing in via a
modem. Is this possible? I dial in as a vt100 term.
Thanks
any help will help
:=) Wayne
Thanks
any help will help
:=) Wayne
You can do what a number of folks do, and that is to write a little CQuote:>PROBLEM:
>I run a program at work that produces a print out on any printer attached
>to the LAN. Now, How do I print local (at home) when dialing in via a
>modem. Is this possible? I dial in as a vt100 term.
I remember developing and using an "lpr" program a while back that did
just that, but I don't have it handy now.
Different UNIX systems have different terminfo/termcap formats,
specifically the capability of "switch output to printer port" -- some
have it, some don't. You may need to hardcode an array of escape codes
based on terminal type, rather than using termlib functions.
If you are the administrator of the UNIX system you dial into, another
method is to setup a printer queue called "local", where you specify
your own shell script for the interface program. This shell script
can then do a lookup of the user submitting the job against "who", and
get the connecting port. Then it can echo a hardcoded escape code to
switch the terminal to the printer port, cat the file, then send the
escape code to switch back.
A more general approach could be to have the script do the "-o" option
processing like other lp interface scripts, and require the user to
include a "-o term=XXXX" to allow the script to lookup the proper escape
code from an array of codes per terminal type.
--
- sgh What are you doing, reading the words at the bottom?!? Key Grip!?!
What is a key grip anyway?! I don't give credit to anybody -- it's
AT&T Bell Laboratories - GCBS, Columbus, OH, USA
1. OK Linux gurus: I upgraded from RH7.7.0 to RH7.2 and SoundStudio is broke....
Howdy,
A sucessful upgrade frpm RH 7.0 to 7.2.....
No problem with SoundStudio with RH7.0.....
Now when I try to run ``studio'' I get some drive activity
but ``studio'' does not start.....
Any ideas?
Thanx in advance.
--JC
5. Printcap OK, Postscript OK, together NOT OK - HELP!
7. Ok, is this possible gurus? Thanks in advance!
8. Apache 2.0.43 on Windows XP - how to set up a password for access to a directory
10. re last post: UNIX GURU!!!! UNIX TYPE is :
11. Unix Gurus --- please help: unix script
12. UNIX GURU/HACKER help needed !
13. Humble Seeker of Wisdom Needs Unix Guru.