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 -- Regards, Adam Allen. adam@xxxxxxxxxxxxxxxxxxxxxxxx pgp http://search.keyserver.net:11371/pks/lookup?op=vindex&search=adam%40dynamicinteraction.co.uk
Attachment:
signature.asc
Description: This is a digitally signed message part