On Mon, Aug 04, 2003 at 07:31:29PM +0100, Mr. Adam ALLEN wrote: > On Mon, 2003-08-04 at 17:22, Aaron Konstam wrote: > > I asked this before but I got no answer so I am going to try to ask > > it in a different way and maybe have more luck. > > > > When I am at work I want printing to occur to the local printer on my > > desk. When I am at home and establish a ppp connection to my machine > > at work I want the default printing to occur to the printer on my > > desk at home. > > On one level what I want to do is establish a PRINTER environment > > variable pointing to my home machine when I am on a ppp connection. > > Under RH 7.3 I could do this using a test: $REMOTE = "yes" > > Now that does not work. How can I make this work? > > One way would be to do > > #!/bin/sh > if [ `/sbin/ifconfig | grep ppp &>/dev/null; echo $?` != 0 ] > then > echo "at home since a ppp interface is up" > else > echo "not at home since there is no ppp interface" > fi Seems like a good idea which should work. But I would swear there was a system variable that was set for remote connections like this one. But maybe that was in the csh shell. -- ------------------------------------------- Aaron Konstam Computer Science Trinity University 715 Stadium Dr. San Antonio, TX 78212-7200 telephone: (210)-999-7484 email:akonstam@xxxxxxxxxxx -- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list