Re: ppp daemon ip-up.d perm +

2003-10-04 Thread Pigeon
On Fri, Oct 03, 2003 at 10:06:57PM -0800, J Y wrote: > Hi, Permissions of ip-up.d: > deblnx:/home/john# ls -l /etc/ppp/ip-up.d > total 28 > -rwxr-xr-x1 root root 1306 Apr 25 2002 00-ipppd > -rwxr-xr-x1 root root 962 Apr 2 2002 000usepeerdns &g

ppp daemon ip-up.d perm +

2003-10-03 Thread J Y
Hi, Permissions of ip-up.d: deblnx:/home/john# ls -l /etc/ppp/ip-up.d total 28 -rwxr-xr-x1 root root 1306 Apr 25 2002 00-ipppd -rwxr-xr-x1 root root 962 Apr 2 2002 000usepeerdns -rwxr-xr-x1 root root 2460 Jan 4 2002 0dns-up -rwxr-xr-x1

Re: files in /etc/pcmcia/ip-up.d are ignored

2001-12-05 Thread Karsten Heymann
* Noah Meyerhans <[EMAIL PROTECTED]> [011205 08:08]: > On Tue, Dec 04, 2001 at 09:00:36PM +0100, Karsten Heymann wrote: > > while trying to find out why masqmail does work when going online via > > modem and fails when using ethernet i found out that for network cards &g

Re: files in /etc/pcmcia/ip-up.d are ignored

2001-12-04 Thread Noah Meyerhans
On Tue, Dec 04, 2001 at 09:00:36PM +0100, Karsten Heymann wrote: > while trying to find out why masqmail does work when going online via > modem and fails when using ethernet i found out that for network cards > /etc/pcmcia/ip-up.d apparently is ignored (I put an 'touch /tmp/aliv

files in /etc/pcmcia/ip-up.d are ignored

2001-12-04 Thread Karsten Heymann
Hi, while trying to find out why masqmail does work when going online via modem and fails when using ethernet i found out that for network cards /etc/pcmcia/ip-up.d apparently is ignored (I put an 'touch /tmp/alive' into /etc/pcmcia/ip-up.d/test but /tmp/alive wasn't created when I

RE: how to use ip-up.d and ip-down.d?

2001-08-29 Thread Wayne Brown
- From: john smith [mailto:[EMAIL PROTECTED] Sent: 29 August 2001 03:19 To: debian-user@lists.debian.org Subject: how to use ip-up.d and ip-down.d? Hi, I have created and added a script in the ip-up.d directory...theoretically, it should start when I connect to the internet..however, it doesn't

Re: how to use ip-up.d and ip-down.d?

2001-08-28 Thread Dmitriy
On Wed, Aug 29, 2001 at 01:19:56AM +, john smith wrote: > Hi, > > I have created and added a script in the ip-up.d directory...theoretically, > it should start when I connect to the internet..however, it doesn't and I > still man

how to use ip-up.d and ip-down.d?

2001-08-28 Thread john smith
Hi, I have created and added a script in the ip-up.d directory...theoretically, it should start when I connect to the internet..however, it doesn't and I still manually have to run it _ Get your FREE download of MSN Exp

Re: ppp and ip-up.d scripts

2001-07-31 Thread Faheem Mitha
On Tue, 31 Jul 2001, tony mollica wrote: > Hello. I know I've seen this problem here > before, but I am unable to locate the solution. > It appears that the scripts in ip-up.d are not > run when a dialup connection is made. The > /etc/ppp/ip-up script runs, but the >

Re: ppp and ip-up.d scripts

2001-07-31 Thread Glyn Millington
tony mollica <[EMAIL PROTECTED]> writes: > Hello. I know I've seen this problem here > before, but I am unable to locate the solution. > It appears that the scripts in ip-up.d are not > run when a dialup connection is made. The > /etc/ppp/ip-up script runs, but the

ppp and ip-up.d scripts

2001-07-30 Thread tony mollica
Hello. I know I've seen this problem here before, but I am unable to locate the solution. It appears that the scripts in ip-up.d are not run when a dialup connection is made. The /etc/ppp/ip-up script runs, but the 'run-parts /etc/ppp/ip-up.d' line doesn't execute. Any

Re: ip-up.d/ not running

2001-05-17 Thread Brian Nelson
On Thu, May 17, 2001 at 04:54:36PM -0700, Jaye Inabnit ke6sls wrote: > >Hello, > > for whatever reason, I don't seem to get results running scripts in > /etc/ppp/ip-up.d/~. I have one for time and it didn't seem to be working so I > just dropped another one in t

ip-up.d/ not running

2001-05-17 Thread Jaye Inabnit ke6sls
Hello, for whatever reason, I don't seem to get results running scripts in /etc/ppp/ip-up.d/~. I have one for time and it didn't seem to be working so I just dropped another one in to mail me when it ran and no joy. What do I have to do to get these scripts to run? BTW, system

Re: /etc/ppp/ip-up.d/0dns-up for ipppd ?

2001-01-01 Thread John Hasler
Felix Natter writes: > I was pleased to see that there is a file in /etc/ppp/ip-up.d that > does the dynamic nameserver-assignment (option usepeerdns) for pppd > (probably created by pppconfig). > > Now I would like to know if there is anything similar for ipppd File a wishlist bu

Re: /etc/ppp/ip-up.d/0dns-up for ipppd ?

2001-01-01 Thread Gary Jones
On 1 Jan 2001, Felix Natter <[EMAIL PROTECTED]> wrote: > I was pleased to see that there is a file in /etc/ppp/ip-up.d that > does the dynamic nameserver-assignment (option usepeerdns) for pppd > (probably created by pppconfig). > > Now I would like to know if there is anyth

/etc/ppp/ip-up.d/0dns-up for ipppd ?

2000-12-31 Thread Felix Natter
hi, I was pleased to see that there is a file in /etc/ppp/ip-up.d that does the dynamic nameserver-assignment (option usepeerdns) for pppd (probably created by pppconfig). Now I would like to know if there is anything similar for ipppd (option ms-get-dns) ? The above file would most probably

Re: Problems running fetchmail in /etc/ppp/ip-up.d

2000-08-12 Thread Alan McNatty
Thanks - a sleep 20 did the trick (diald shuts down after 30 seconds inactivity). Cheers, Alan - Original Message - From: To: Sent: Friday, August 11, 2000 7:30 PM Subject: Re: Problems running fetchmail in /etc/ppp/ip-up.d

Re: Problems running fetchmail in /etc/ppp/ip-up.d

2000-08-11 Thread kmself
On Fri, Aug 11, 2000 at 05:11:42PM +, [EMAIL PROTECTED] wrote: > Fetchmail is not fetching my email properly when > invoked from a script in the /etc/ppp/ip-up.d > > /etc/ppp/ip-up.d/fetchmail reads ... > #!/bin/sh > # run fetchmail > test -r /etc/fetchmailrc &&

Problems running fetchmail in /etc/ppp/ip-up.d

2000-08-11 Thread alan
Fetchmail is not fetching my email properly when invoked from a script in the /etc/ppp/ip-up.d /etc/ppp/ip-up.d/fetchmail reads ... #!/bin/sh # run fetchmail test -r /etc/fetchmailrc && // fetchmail --syslog --invisible --fetchmailrc /etc/fetchmailrc Syslog contains the f

Re: ip-up.d / can't start script

2000-03-12 Thread Pollywog
e Internet. I looked in "ip-up" and it looks to me like it uses scripts >> placed in "/etc/ppp/ip-up.d". I place a simple Perl script (that works >> from >> the command line) in "/etc/ppp/ip-up.d". Logged out and back in and tried >> "pon

Re: ip-up.d / can't start script

2000-03-12 Thread ktb
That did it, I had a "." Thanks:) kent - Original Message - From: Bob Hilliard <[EMAIL PROTECTED]> To: ktb <[EMAIL PROTECTED]> Cc: Sent: Sunday, March 12, 2000 2:39 PM Subject: Re: ip-up.d / can't start script > "ktb" <[EMAIL PROTECTED]>

Re: ip-up.d / can't start script

2000-03-12 Thread Bob Hilliard
"ktb" <[EMAIL PROTECTED]> writes: > > I've searched the archives and I can't find my answer. I used pppconfig to > create my dialup. I need to start my firewall *after* I have logged onto > the Internet. I looked in "ip-up" and it looks to me li

ip-up.d / can't start script

2000-03-12 Thread ktb
I've searched the archives and I can't find my answer. I used pppconfig to create my dialup. I need to start my firewall *after* I have logged onto the Internet. I looked in "ip-up" and it looks to me like it uses scripts placed in "/etc/ppp/ip-up.d". I place a

Re: ppp + ip-up.d + fetchmail + multiple polls

1999-11-09 Thread Colin Marquardt
* Brian Servis <[EMAIL PROTECTED]> writes: > *- On 6 Nov, Colin Marquardt wrote about "ppp + ip-up.d + fetchmail + > multiple polls" >> Now, when I go online and this script is run automatically, fetchmail >> only queries the first of my four accounts! (I can o

Re: ppp + ip-up.d + fetchmail + multiple polls

1999-11-08 Thread Brian Servis
*- On 6 Nov, Colin Marquardt wrote about "ppp + ip-up.d + fetchmail + multiple polls" > Hi, > > the subject shows that I have no clue where to look :-) > > My problem is this: my ~/.fetchmailrc specifies four different > accounts to poll mail from. When I´m ru

Re: ppp + ip-up.d + fetchmail + multiple polls

1999-11-08 Thread Marc Mongeon
i, the subject shows that I have no clue where to look :-) My problem is this: my ~/.fetchmailrc specifies four different accounts to poll mail from. When I m running fetchmail by hand, all four accounts are polled, like it should. I have a script in /etc/ppp/ip-up.d that looks like this: | #!/b

ppp + ip-up.d + fetchmail + multiple polls

1999-11-06 Thread Colin Marquardt
Hi, the subject shows that I have no clue where to look :-) My problem is this: my ~/.fetchmailrc specifies four different accounts to poll mail from. When I´m running fetchmail by hand, all four accounts are polled, like it should. I have a script in /etc/ppp/ip-up.d that looks like this

Re: ip-up.d

1999-10-20 Thread Oleg Krivosheev
On Tue, 19 Oct 1999, Ben Lutgens wrote: > > On Wed, Oct 20, 1999 at 11:23:47AM +0800, Lindsay Allen wrote: > > show the problem - no script with a "." in its filename will run. > Nothing I did worked, I changed the name as I learned the run-p?rts thing > before I recieved you message. Still no av

Re: ip-up.d

1999-10-20 Thread Oleg Krivosheev
Hi, On Tue, 19 Oct 1999, Ben Lutgens wrote: > I am having a stubborn ip-up.d. I have some scripts in there that I would like > run when I connect to isp. here are the perms: > -rwxr-xr-x 1 root dip34 Oct 19 09:49 mailer.sh > -rwxr-xr-x 1 root dip

Re: ip-up.d

1999-10-20 Thread Ben Lutgens
On Wed, Oct 20, 1999 at 11:23:47AM +0800, Lindsay Allen wrote: > show the problem - no script with a "." in its filename will run. Nothing I did worked, I changed the name as I learned the run-pærts thing before I recieved you message. Still no avail. I think it had something to do with the fact th

Re: ip-up.d

1999-10-20 Thread Lindsay Allen
On Tue, 19 Oct 1999, Ben Lutgens wrote: > I am having a stubborn ip-up.d. I have some scripts in there that I would like > run when I connect to isp. here are the perms: > -rwxr-xr-x 1 root dip34 Oct 19 09:49 mailer.sh > -rwxr-xr-x 1 root dip34

Re: ip-up.d

1999-10-20 Thread Eric G . Miller
On Tue, Oct 19, 1999 at 06:24:20PM -0800, Ben Lutgens wrote: > #!/bin/sh > su allegro -c fetchmail Try #!/bin/sh export PATH=/usr/sbin:/sbin:/usr/bin fetchmail -u allegro -d 300 But I wrote a wrapper around pon for my personal use: #!/bin/sh pon > /dev/null 2>&1 fetchmail -d 300 > /dev/null 2>&1

ip-up.d

1999-10-20 Thread Ben Lutgens
I am having a stubborn ip-up.d. I have some scripts in there that I would like run when I connect to isp. here are the perms: -rwxr-xr-x 1 root dip34 Oct 19 09:49 mailer.sh -rwxr-xr-x 1 root dip34 Oct 14 16:59 ntpdate the mailer.sh is as follows #!/bin/sh su

Re: ip-up.d

1999-09-24 Thread Colin Marquardt
* John Hasler <[EMAIL PROTECTED]> writes: >> I am having a problem using /etc/ppp/ip-up.d/ to start fetchmail when I >> use pon to connect. there is a script in there that wil start fetchmail >> for me as desired via command line. yet fetchmail still won't start on

Re: ip-up.d

1999-09-24 Thread Gregory T. Norris
Oopsie... looks like I replied to the wrong message. Sorry 'bout that. On Fri, Sep 24, 1999 at 02:31:45AM -, Pollywog wrote: > > On Fri, Sep 24, 1999 at 01:06:13AM -, Pollywog wrote: > >> In my script, I have: > >> > >> #!/bin/sh > >> sleep 10s > >> /usr/bin/fetchmail -d 480 > > But

Re: ip-up.d

1999-09-24 Thread Pollywog
On 24-Sep-99 Gregory T. Norris wrote: > I'd add something like "env >/tmp/some_dummy_filename" to the start of > your script, so you can look at the environment it inherits. When I've > had this sort of problem it's usually been because some important > settings (such as $PATH) weren't automagica

Re: ip-up.d

1999-09-24 Thread John Hasler
Brian writes: > This is all run as root and does not need to do a sudo or su or anything. I would rather not run anything as root if I can avoid it. In this case I can. -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood, WI

Re: ip-up.d

1999-09-24 Thread Gregory T. Norris
I'd add something like "env >/tmp/some_dummy_filename" to the start of your script, so you can look at the environment it inherits. When I've had this sort of problem it's usually been because some important settings (such as $PATH) weren't automagically set, and need to be explicitly coded into t

Re: ip-up.d

1999-09-24 Thread Pollywog
On 24-Sep-99 Brian Servis wrote: > > Might as well joing the fun. > > Mine is taken right from /usr/doc/fetchmail/fetchmail-up > >1 -rwxr-xr-x 1 root root 112 Feb 1 1999 > /etc/ppp/ip-up.d/fetchmail-up* I am going to try it this way. I saw that in

Re: ip-up.d

1999-09-24 Thread Brian Servis
*- On 24 Sep, Pollywog wrote about "Re: ip-up.d" > > On 24-Sep-99 John Hasler wrote: >>> I am having a problem using /etc/ppp/ip-up.d/ to start fetchmail when I >>> use pon to connect. there is a script in there that wil start fetchmail >>> for me as de

Re: ip-up.d

1999-09-24 Thread Pollywog
On 24-Sep-99 John Hasler wrote: >> I am having a problem using /etc/ppp/ip-up.d/ to start fetchmail when I >> use pon to connect. there is a script in there that wil start fetchmail >> for me as desired via command line. yet fetchmail still won't start on >> it&#

Re: ip-up.d

1999-09-24 Thread John Hasler
> I am having a problem using /etc/ppp/ip-up.d/ to start fetchmail when I > use pon to connect. there is a script in there that wil start fetchmail > for me as desired via command line. yet fetchmail still won't start on > it's own when I connect to my ISP. Post the n

Re: ip-up.d

1999-09-23 Thread Martin Fluch
On Thu, 23 Sep 1999, Ben Lutgens wrote: > I am having a problem using /etc/ppp/ip-up.d/ to start fetchmail when I use > pon to connect. there is a script in there that wil start fetchmail for me as > desired via command line. yet fetchmail still won't start on it's own when I

Re: ip-up.d

1999-09-23 Thread Gregory T. Norris
Can you post the script you've been using? It's likely that it relies on some environment variables being set, or some such... On Thu, Sep 23, 1999 at 01:36:33PM -0800, Ben Lutgens wrote: > I am having a problem using /etc/ppp/ip-up.d/ to start fetchmail when I use > pon to con

Re: ip-up.d

1999-09-23 Thread Mark Brown
On Thu, Sep 23, 1999 at 01:36:33PM -0800, Ben Lutgens wrote: > I am having a problem using /etc/ppp/ip-up.d/ to start fetchmail when I use > pon to connect. there is a script in there that wil start fetchmail for me as > desired via command line. yet fetchmail still won't start on i

ip-up.d

1999-09-23 Thread Ben Lutgens
I am having a problem using /etc/ppp/ip-up.d/ to start fetchmail when I use pon to connect. there is a script in there that wil start fetchmail for me as desired via command line. yet fetchmail still won't start on it's own when I connect to my ISP. Any ideas why. Or where to look for mo

Re: problem with /etc/ppp/ip-up.d/

1999-07-17 Thread Alisdair McDiarmid
On Sat, Jul 17, 1999 at 04:39:13AM +0200, Hartmut Figge wrote: > Alisdair McDiarmid wrote: > > > So changing xnetload to /usr/X11R6/bin/xnetload worked, and now > > xnetload loads on ppp up. > > well, looking into /etc/ppp/ip-up: > > PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/

Re: problem with /etc/ppp/ip-up.d/

1999-07-17 Thread Hartmut Figge
Alisdair McDiarmid wrote: > [root:/tmp] # cat xnetload.error > /etc/ppp/ip-up.d/load: xnetload: not found > > So changing xnetload to /usr/X11R6/bin/xnetload worked, and now > xnetload loads on ppp up. well, looking into /etc/ppp/ip-up: # The environment is cleared before

Re: problem with /etc/ppp/ip-up.d/

1999-07-17 Thread Alisdair McDiarmid
> Try trapping the output of the command in the script to a tmp > file and see what it is saying. Ah! This has solved it! [root:/tmp] # cat xnetload.error /etc/ppp/ip-up.d/load: xnetload: not found So changing xnetload to /usr/X11R6/bin/xnetload worked, and now xnetload loads on ppp up.

Re: problem with /etc/ppp/ip-up.d/

1999-07-17 Thread Brian Servis
*- On 17 Jul, Alisdair McDiarmid wrote about "Re: problem with /etc/ppp/ip-up.d/" > On Fri, Jul 16, 1999 at 08:45:12PM -0500, Brian Servis wrote: >> *- On 17 Jul, Alisdair McDiarmid wrote about "problem with /etc/ppp/ip-up.d/" >> > i want to start xnetload on

Re: problem with /etc/ppp/ip-up.d/

1999-07-17 Thread Hartmut Figge
Hartmut Figge wrote: > i`ll think about the problem and will write if i find a solution. well, i`ve found the evil-doer. i copied your script into the file affe, created a directory called affe-dir and put affe in that dir. permissions, owner and group like ip-up.d et al. then i executed

Re: problem with /etc/ppp/ip-up.d/

1999-07-17 Thread Alisdair McDiarmid
On Fri, Jul 16, 1999 at 08:45:12PM -0500, Brian Servis wrote: > *- On 17 Jul, Alisdair McDiarmid wrote about "problem with /etc/ppp/ip-up.d/" > > i want to start xnetload on ppp up, and kill it on ppp down. so i > > wrote two scripts: /etc/ppp/ip-up.d/load: > > >

Re: problem with /etc/ppp/ip-up.d/

1999-07-17 Thread Brian Servis
*- On 17 Jul, Alisdair McDiarmid wrote about "problem with /etc/ppp/ip-up.d/" > i want to start xnetload on ppp up, and kill it on ppp down. so i > wrote two scripts: /etc/ppp/ip-up.d/load: > > #!/bin/sh > xnetload -geometry 200x48+0+0 -fn > -schumacher-clean-bol

Re: problem with /etc/ppp/ip-up.d/

1999-07-17 Thread Hartmut Figge
Alisdair McDiarmid wrote: > > On Sat, Jul 17, 1999 at 02:40:47AM +0200, Hartmut Figge wrote: > > yes, bash will expand the `*`. > > um, possibly, but the command still works when i execute > /etc/ppp/ip-up.d/load, so i don't think it does. > > > you need

Re: problem with /etc/ppp/ip-up.d/

1999-07-17 Thread Alisdair McDiarmid
On Sat, Jul 17, 1999 at 02:40:47AM +0200, Hartmut Figge wrote: > Alisdair McDiarmid wrote: > > > > i want to start xnetload on ppp up, and kill it on ppp down. so i > > wrote two scripts: /etc/ppp/ip-up.d/load: > > > > #!/bin/sh > > xnetload -geometry 200x4

Re: problem with /etc/ppp/ip-up.d/

1999-07-17 Thread Hartmut Figge
Alisdair McDiarmid wrote: > > i want to start xnetload on ppp up, and kill it on ppp down. so i > wrote two scripts: /etc/ppp/ip-up.d/load: > > #!/bin/sh > xnetload -geometry 200x48+0+0 -fn > -schumacher-clean-bold-r-*-*-12-*-*-*-*-*-*-* -fg white -bg black -nc -if >

problem with /etc/ppp/ip-up.d/

1999-07-17 Thread Alisdair McDiarmid
i want to start xnetload on ppp up, and kill it on ppp down. so i wrote two scripts: /etc/ppp/ip-up.d/load: #!/bin/sh xnetload -geometry 200x48+0+0 -fn -schumacher-clean-bold-r-*-*-12-*-*-*-*-*-*-* -fg white -bg black -nc -if ppp0 & and /etc/ppp/ip-down.d/load: #!/bin/sh killall xnetload

Re: my ip-up.d script doesn't work

1999-06-08 Thread Hamish Moffatt
On Mon, Jun 07, 1999 at 12:14:53PM -0500, Marc Mongeon wrote: > Are you certain that the script is called with those arguments? > I don't believe the $[1-6] variables are available to the scripts > in ip-up.d. Instead, use the environment variables set in ip-up: > > PPP_IFAC

Re: my ip-up.d script doesn't work

1999-06-08 Thread Hamish Moffatt
On Mon, Jun 07, 1999 at 12:14:53PM -0500, Marc Mongeon wrote: > Are you certain that the script is called with those arguments? > I don't believe the $[1-6] variables are available to the scripts > in ip-up.d. Instead, use the environment variables set in ip-up: Good point. I

Re: my ip-up.d script doesn't work

1999-06-08 Thread Hamish Moffatt
ry > | and files with other names will be silently ignored. > > Maybe that is it? My file is called route-rmit, which should be OK given the above: bash-2.01# ls /etc/ppp/ip-up.d/ -l total 1 -rwxr-xr-x 1 root root 582 Jun 6 18:59 route-rmit Thanks, Hamish -- Hamish

Re: my ip-up.d script doesn't work

1999-06-07 Thread Colin Marquardt
* Hamish Moffatt <[EMAIL PROTECTED]> writes: > On Mon, Jun 07, 1999 at 07:51:00AM -0600, Rick Macdonald wrote: >> On Mon, 7 Jun 1999, Hamish Moffatt wrote: >> >> > I just freshly reinstalled ppp on one machine here. My >> > custom script in /etc/ppp/ip-up.

Re: my ip-up.d script doesn't work

1999-06-07 Thread Marc Mongeon
> > I just freshly reinstalled ppp on one machine here. My > custom script in /etc/ppp/ip-up.d does not work; it > doesn't appear to run. I tested it form the command > line with the named parameters and it worked. Here it is: > > #!/bin/sh > # This script is called

Re: my ip-up.d script doesn't work

1999-06-07 Thread shaleh
> > On Mon, 7 Jun 1999, Hamish Moffatt wrote: > > > I just freshly reinstalled ppp on one machine here. My > > custom script in /etc/ppp/ip-up.d does not work; it > > doesn't appear to run. I tested it form the command > > Isn't your filename wrong? &

Re: my ip-up.d script doesn't work

1999-06-07 Thread shaleh
> > I just freshly reinstalled ppp on one machine here. My > custom script in /etc/ppp/ip-up.d does not work; it > doesn't appear to run. I tested it form the command > line with the named parameters and it worked. Here it is: > Trying adding some echo >> file lines to see if and where it dies.

Re: my ip-up.d script doesn't work

1999-06-07 Thread Hamish Moffatt
On Mon, Jun 07, 1999 at 07:51:00AM -0600, Rick Macdonald wrote: > On Mon, 7 Jun 1999, Hamish Moffatt wrote: > > > I just freshly reinstalled ppp on one machine here. My > > custom script in /etc/ppp/ip-up.d does not work; it > > doesn't appear to run. I tested it for

Re: my ip-up.d script doesn't work

1999-06-07 Thread Rick Macdonald
On Mon, 7 Jun 1999, Hamish Moffatt wrote: > I just freshly reinstalled ppp on one machine here. My > custom script in /etc/ppp/ip-up.d does not work; it > doesn't appear to run. I tested it form the command Isn't your filename wrong? /etc/ppp/ip-up

my ip-up.d script doesn't work

1999-06-07 Thread Hamish Moffatt
I just freshly reinstalled ppp on one machine here. My custom script in /etc/ppp/ip-up.d does not work; it doesn't appear to run. I tested it form the command line with the named parameters and it worked. Here it is: #!/bin/sh # This script is called with the following arguments: #Arg

Re: Problem running scripts in ip-up.d

1999-04-21 Thread Christian Dysthe
Hi, ip-up is a script running scripts in the directory /etc/ip-up.d using the run-parts command. My problem was that would not run my scripts. I have now looked at the run-parts docs, and have found out tha my scripts can not contain .'s in the the filename. This was the reason they woul

Re: Problem running scripts in ip-up.d

1999-04-21 Thread dlr
isp to connect to my ISP. I have made two scripts I want to run when I am connected, and I thought they would be if I put them in ip-up.d I have tested both scripts by running them "manually", and they work fine, but they do not seem to be run when I connect, at least they are

Problem running scripts in ip-up.d

1999-04-21 Thread Christian Dysthe
Hi, I am using Xisp to connect to my ISP. I have made two scripts I want to run when I am connected, and I thought they would be if I put them in ip-up.d I have tested both scripts by running them "manually", and they work fine, but they do not seem to be run when I connect, at least t

Re: #! (was: Re: Running a script from /etc/ip-up.d)

1999-04-21 Thread John Hasler
Bruce Sass writes: > Jed picks up on "#!/bin/sh" and starts syntax highlighting, "#! /bin/sh" > results in a plain text editing session. That's a bug in jed. Emacs gets it right. -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood, WI

#! (was: Re: Running a script from /etc/ip-up.d)

1999-04-20 Thread Bruce Sass
On 19 Apr 1999, John Hasler wrote: > Jiri writes: > > That should be #! and there shouldn't be a space after it. > > The space doesn't matter. Not as far as executing the script goes, but... Jed picks up on "#!/bin/sh" and starts syntax highlighting, "#! /bin/sh" results in a plain text editing

Re: Running a script from /etc/ip-up.d

1999-04-19 Thread John Hasler
Jiri writes: > That should be #! and there shouldn't be a space after it. The space doesn't matter. > Actually, there's not much point doing this. The reason everything else > has it is because when you uninstall a package (rather than purge), dpkg > will leave the i

Re: Running a script from /etc/ip-up.d

1999-04-19 Thread Jiri Baum
fetchmail -f /home/cdysthe/.fetchmailrc > fi > exit 0 Actually, there's not much point doing this. The reason everything else has it is because when you uninstall a package (rather than purge), dpkg will leave the ip-up.d script behind and it needs to handle that. I can't quote chapte

Re: Running a script from /etc/ip-up.d

1999-04-13 Thread John Hasler
Christian Dysthe writes: > I will try that, but the .fetchmailrc file in /home/cdysthe is owned by > root. Shouldn't that be enough? Baffle. Why do you have a .fetchmailrc owned by root in cdysthe's home? I assumed you were trying to fetch mail for cdysthe. Check the permissions. Fetchmail do

Re: Running a script from /etc/ip-up.d

1999-04-13 Thread Christian Dysthe
Thanks, I will try that, but the .fetchmailrc file in /home/cdysthe is owned by root. Shouldn't that be enough? On 13-Apr-99 John Hasler wrote: >> #! /bin/sh >> fetchmail -f /home/cdysthe/.fetchmailrc > >> However, if I put it in /etc/ip-up.d they do not work as

Re: Running a script from /etc/ip-up.d

1999-04-13 Thread John Hasler
> #! /bin/sh > fetchmail -f /home/cdysthe/.fetchmailrc > However, if I put it in /etc/ip-up.d they do not work as intended: I can > see the fetchamil process start as soon as I am connected, but fetchmail > won't collect mail in this case. It just hangs there inactive. In ip-

Running a script from /etc/ip-up.d

1999-04-13 Thread Christian Dysthe
hmailrc fi exit 0 Both works fine when I execute them "manually" (by typing in the name in a terminal window, or click on it in mc). However, if I put it in /etc/ip-up.d they do not work as intended: I can see the fetchamil process start as soon as I am connected, but fetchmail won't

ipmasq rules in ip-up.d

1998-12-12 Thread Sibuyas Bombay
hello everyone ! i placed the following ip masquerading rules in my /etc/ip-up.d/masqrules : #! /bin/sh /sbin/ipfwadm -F -p deny /sbin/ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0 my question is, with those masq rules automatically run everytime my ppp link comes up, do i also have

Re: Can't start fetchmail in ip-up.d

1998-12-12 Thread Shao Zhang
On Sat, 12 Dec 1998, Mark Phillips wrote: > > > In my ip-up, I have a line > > run-parts /etc/ppp/ip-up.d > > > > So I put a file called fetchmail with a single line fetchmail. > > > > I also made it executable. > > > &

Re: Can't start fetchmail in ip-up.d

1998-12-11 Thread Alexander Kushnirenko
tory contains other useful info Sasha. > > > In my ip-up, I have a line > > run-parts /etc/ppp/ip-up.d > > > > So I put a file called fetchmail with a single line fetchmail. > > > > I also made it executable. > > > >

Re: Can't start fetchmail in ip-up.d

1998-12-11 Thread Mark Phillips
> In my ip-up, I have a line > run-parts /etc/ppp/ip-up.d > > So I put a file called fetchmail with a single line fetchmail. > > I also made it executable. > > But when my link is up, nothing happened. I tried to ps ax the >proce

Re: Can't start fetchmail in ip-up.d

1998-12-10 Thread Marc Haber
On Thu, 10 Dec 1998 19:04:19 +1100 (EST), you wrote: > In my ip-up, I have a line > run-parts /etc/ppp/ip-up.d > > So I put a file called fetchmail with a single line fetchmail. You need to put executable shell scripts in there. So your file fetchmail sh

Can't start fetchmail in ip-up.d

1998-12-10 Thread Shao Zhang
Hi all, In my ip-up, I have a line run-parts /etc/ppp/ip-up.d So I put a file called fetchmail with a single line fetchmail. I also made it executable. But when my link is up, nothing happened. I tried to ps ax the process. It is not there. I

RE: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-23 Thread Moore, Paul
To all who replied so helpfully, thanks. I now have a working setup. Basically, the simplest solution for me is to add the "idle" option to my ppp options, to hangup the line when there is no more activity. A number of people suggested diald - it certainly looks good, and I may well look into it

RE: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-23 Thread Michael Beattie
t; >Exactly like what I would have suggested. Make a script such as 'zpoff' - > >so the leading 'z' puts the file at the end of the directory listing. > >'run-parts' runs the scripts alphabetically AFAIK. > > Does this imply that the ip-up.d scri

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-23 Thread john
I wrote: > Are you saying that 'demand' now works in Linux? Mitch Blevins writes: > Don't use it. I had assumed from the man page and a VagueMemory(tm) > that I had heard of it working... Actually, 'demand' purportedly does work in Linux but, according to the documentation, filtering doesn't. A

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Mitch Blevins
[EMAIL PROTECTED] wrote: > Mitch Blevins writes: > > For the most part, pppd can now do most of what people use diald for. > > Are you saying that 'demand' now works in Linux? Don't use it. I had assumed from the man page and a VagueMemory(tm) that I had heard of it working... Anybody out th

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Rob Collins
On Wed, 21 Oct 1998, Raymond A. Ingles wrote: > On Wed, 21 Oct 1998, Moore, Paul wrote: > > What I'd like to do is to write a script which starts the PPP > > connection, then waits for all the ip-up.d scripts to run, and for my > > mail to finish arriving, and then drop

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread john
Mitch Blevins writes: > For the most part, pppd can now do most of what people use diald for. Are you saying that 'demand' now works in Linux? -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood, WI

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Raymond A. Ingles
On Wed, 21 Oct 1998, Moore, Paul wrote: > What I'd like to do is to write a script which starts the PPP > connection, then waits for all the ip-up.d scripts to run, and for my > mail to finish arriving, and then drops the connection with poff > (actually, I'd like it to as

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread john
Paul writes: > I've come to the conclusion that the best way of doing what I'm after is > to dial up manually, using pon. This is no problem. Diald doesn't really > offer me anything extra here, as I basically don't want to dial up on > demand... BUT, once I am online, I'd like to be able to get at

RE: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Moore, Paul
ted. Great. BUT, when the link >> came up again, diald started a SECOND copy of slrnpull (as per the >> ip-up.d scripts). This is definitely *not* right :-( > > This script should be changed to check for an existing running > copy first.. Probably true. It's what came as

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Mitch Blevins
SECOND copy of slrnpull (as per the > ip-up.d scripts). This is definitely *not* right :-( This script should be changed to check for an existing running copy first.. > Worst of all, because the link was started by diald, I couldn't stop it > using poff - the process isn't own

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Alex Shnitman
Moore, Paul writes: > Can diald be persuaded to do this (hangup-only, no dialup function)? If > not, how do I get at the ppp link stats to monitor packets going > through? If I can monitor packets/sec across the ppp link, or maybe > traffic over the modem, I could write my own monitor-and-time

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread W. Paul Mills
I use "pidof" for this purpose. Seems to work better, for me at least, than searching for strings in the output of "ps" You can discard the output of "pidof" and use the return value. Something like shown below. Substituting the program you want to monitor for "suck". while pidof suck > /dev/null

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Pann McCuaig
ame up again, diald started a SECOND copy of slrnpull (as per the > ip-up.d scripts). This is definitely *not* right :-( This happens to me from time-to-time also, and it's the only problem I have with my PPP/diald setup. Any hints would be greatly appreciated. Cheers, Pann --

RE: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Moore, Paul
;zpoff' - >so the leading 'z' puts the file at the end of the directory listing. >'run-parts' runs the scripts alphabetically AFAIK. Does this imply that the ip-up.d scripts are run in sequence? That's a bit annoying - I was hoping to add a few mirrorring scripts

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Michael Beattie
On Thu, 22 Oct 1998, Moore, Paul wrote: > First problem was that I can't do the necessary "kill -HUP " > to force the link up unless I am root. I don't really want a setuid root > script to do this... Also, getting the PID of diald is (slightly) tricky > in a script. Never mind, I can fix this up

Re: Waiting for scripts in /etc/ppp/ip-up.d

1998-10-22 Thread Michael Beattie
On Wed, 21 Oct 1998, mwb wrote: > On Wed, 21 Oct 1998, Moore, Paul wrote: > > > What I'd like to do is to write a script which starts the PPP > > connection, then waits for all the ip-up.d scripts to run, and for my > > mail to finish arriving, and then d

  1   2   >