ip-up an ip-down scripts in SuSE 8.2
From: Yura (zmouse2002_at_mail.ru)
Date: 02/29/04
- Next message: chris-g: "Re: ftp client"
- Previous message: houghi: "Re: A Beginner's Question"
- Next in thread: fvdtd_at_noyxlr.com: "Re: ip-up an ip-down scripts in SuSE 8.2"
- Reply: fvdtd_at_noyxlr.com: "Re: ip-up an ip-down scripts in SuSE 8.2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Feb 2004 12:30:54 GMT
Hi, NG
I've almost gone nut with these scripts.
I want to save my own statistics on dial-up connections. So, I've
decided to use custom ip-up and ip-down scripts. AFAIK, pppd runs these
scripts at the begin and end of connection. There is on "ip-up" script
and link to it, named "ip-down". Actually ip-up is one large script,
which can operate as "ip-up" and "ip-down" as well depending on BASENAME
parameter.
Additionally to this, there is folders "ip-up.d" and "ip-down.d", where
user can put their own scripts, avoiding to edit main ip-up script. Good
idea!
I've wrote my scripts, placed them in these folders and they don't work.
I've checked main script, put there "echo $SCRIPT > filename" statements
to verify how it works - everything is OK. But my scripts doesn't work
(or start?). If I add to the main script my own strings, they work, but
as separate scripts - no. Also I've ran main "ip-up" manually as root -
in this case separate scripts also work!
Can anybody explain what's going on? I run pppd as common user using
"sudo". Is it possible that main script runs as root, but custom scripts
no? My custom scripts contains only instructions like this "echo
$someparameter >> /var/log/dialout"
Will be glad to see any advice.
- Next message: chris-g: "Re: ftp client"
- Previous message: houghi: "Re: A Beginner's Question"
- Next in thread: fvdtd_at_noyxlr.com: "Re: ip-up an ip-down scripts in SuSE 8.2"
- Reply: fvdtd_at_noyxlr.com: "Re: ip-up an ip-down scripts in SuSE 8.2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|