[comp.unix.xenix.sco] TCP/IP and Printer-Sharing ???

horke@buchonia.rhoen.in-berlin.de (Bernhard Kroenung) (01/04/91)

Is there any possibility to share a printer between two machines runnig
TCP/IP ??? Any hints ? Any PD-Programms ?

  Ciao
    Bernhard
-- 
Bernhard Kroenung, Bahnhofstr. 8, D-W6408 Ebersburg/Rhoen, Germany +49 6656 386
horke@buchonia.rhoen.in-berlin.de sysop@fulmin.zer.sub.org Kronung@DGIHRZ01.BIT

cliffb@cjbsys.bdb.com (cliff bedore) (01/05/91)

In article <1991Jan4.001756.11917@buchonia.rhoen.in-berlin.de> horke@buchonia.rhoen.in-berlin.de (Bernhard Kroenung) writes:
>Is there any possibility to share a printer between two machines runnig
>TCP/IP ??? Any hints ? Any PD-Programms ?
>
>  Ciao
>    Bernhard
>-- 
>Bernhard Kroenung, Bahnhofstr. 8, D-W6408 Ebersburg/Rhoen, Germany +49 6656 386
>horke@buchonia.rhoen.in-berlin.de sysop@fulmin.zer.sub.org Kronung@DGIHRZ01.BIT

Try something like cat filen | rcmd otherhost lp.

I use this all the time at work. you need to set either hosts.equiv or .rhosts
to make this work correctly. (You can set up a .rhosts for lp to maintain
security.


Cliff

jim@tiamat.fsc.com (Jim O'Connor) (01/13/91)

In article <1991Jan5.134530.7865@cjbsys.bdb.com>, cliffb@cjbsys.bdb.com (cliff bedore) writes:
> In article <1991Jan4.001756.11917@buchonia.rhoen.in-berlin.de> horke@buchonia.rhoen.in-berlin.de (Bernhard Kroenung) writes:
> >Is there any possibility to share a printer between two machines runnig
> >TCP/IP ??? Any hints ? Any PD-Programms ?
> >
> >  Ciao
> >    Bernhard
> >-- 
> >Bernhard Kroenung, Bahnhofstr. 8, D-W6408 Ebersburg/Rhoen, Germany +49 6656 386
> >horke@buchonia.rhoen.in-berlin.de sysop@fulmin.zer.sub.org Kronung@DGIHRZ01.BIT
> 
> Try something like cat filen | rcmd otherhost lp.

Forgive me if this was already mentioned, but if I look at all the other
unread articles, I'll forget to respond.

The way we use with Xenix machines is:

Given:	machineA, machineB, and printer1 connected to machineA

To make printer1 look like a "regular" printer to machineB (that is
you can print to it using normal lp commands) run "mkdev lp" on machineB
and tell it is a "remote" printer, that you want to use Micnet (we'll fix
that later), that the system the printer is on
is "machineA", that the printer is named "printer1" on machineA and that
you want it to be called "printer1" on machineB, as well (no sense keeping
track of two different names, is there).  "mkdev lp" will go on to set up
the printer, and add a line to "/usr/spool/lp/remote" that looks like:

printer1: remote - machineA lp -dprinter1

change this line to look like

printer1: rcmd machineA lp -dprinter1

and "Voila!" you have a printer that looks local to machineB, but anything
sent to it, is copied over the network to machineA.  This method works
well - we use it to share about 25 printers among 8 computers in three
states.  It really helps inter-office paper flow when you can print a report
directly to someone's printer, rather than mailing or faxing it to them.

Good luck.  Send e-mail if you need more info or better instructions.
------------- 
James B. O'Connor			jim@tiamat.fsc.com
Ahlstrom Filtration, Inc.		615/821-4022 x. 651

cliffb@cjbsys.bdb.com (cliff bedore) (01/13/91)

In article <777@tiamat.fsc.com> jim@tiamat.fsc.com (Jim O'Connor) writes:
>In article <1991Jan5.134530.7865@cjbsys.bdb.com>, cliffb@cjbsys.bdb.com (cliff bedore) writes:
>> In article <1991Jan4.001756.11917@buchonia.rhoen.in-berlin.de> horke@buchonia.rhoen.in-berlin.de (Bernhard Kroenung) writes:
>> >Is there any possibility to share a printer between two machines runnig
>> >TCP/IP ??? Any hints ? Any PD-Programms ?
>> >  Ciao
>> >    Bernhard
>> Try something like cat filen | rcmd otherhost lp.

>The way we use with Xenix machines is:
>Given:	machineA, machineB, and printer1 connected to machineA
>
>change this line to look like
>
>printer1: rcmd machineA lp -dprinter1
>
Of course this is the right answer.  I answered the question of how to rsh and
ignored the solution that we ourselves use.  I must have been wearing my
"duh-uh" hat that night.

Cliff