[aclug-L] Re: Getting by with a little help from my friends...
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To find out if it executed correctly he can run
route -n
and look for the expected route.
As others have said, if the script is not owned/executed with the proper
permissions it will not have the expected effect. On my system I have
to use /sbin/route to get it to run for the avarage user because of
pathing. It is a good idea in scripts to use absolute pathing to
external commands to make sure they can be found regardless of the users
PATH.
Matt Pankratz wrote:
>Greetings,
>
>Anyone able to offer some suggestions to a friend's quandry below? (Much
>Appreciated)
>
>----------
>Hey Matt,
>
>I'm happily running SuSE 8.0. whoohoo! suse rocks.
>
>However, I have a little problem, and as my Madison LUG server seems to
>be blowing chunks, I thought I'd hit you up for a little advice.
>
>Here's the thing: With my cable modem service I need to establish a VPN
>connection to the university. I can do this just fine. However, I want
>to automate the process, so I wrote a tiny little script to run the two
>/sbin/route commands and the pptp client command. My script consists of
>the following:
>
>#!/bin/sh
>
>/sbin/route add -host 12.24.207.58 gw 10.44.124.1 dev eth0
>/sbin/route del default
>/usr/bin/pptp doit-cable name soisaac_3
>
>exit 0
>
>I put the script in /etc/init.d, and made a symbolic link to it from
>/etc/init.d/rc5.d (naming the link S12pptp-connect). I reboot, and the
>system seems not to have executed it. There's no entry of it in the
>boot log. Would you have any inkling what's going on? The script
>works--if I type "sh /etc/init.d/pptp-connect" in the terminal (as
>root). ??? Is there something wrong with the name of my link, that it
>doesn't get run?
>----------------------
>
>
>-- This is the discussion@xxxxxxxxx list. To unsubscribe,
>visit http://www.complete.org/cgi-bin/listargate-aclug.cgi
>
-- This is the discussion@xxxxxxxxx list. To unsubscribe,
visit http://www.complete.org/cgi-bin/listargate-aclug.cgi
|
|