Subject: Re: /etc/ppp/ip-down
To: xiamin <ingerrn@cris.com>
From: David Brownlee <abs@anim.dreamworks.com>
List: netbsd-users
Date: 05/11/1997 09:12:19
-----BEGIN PGP SIGNED MESSAGE-----

	You tpobably want to kill the output of '/usr/bin/head -1
	/var/run/sendmail.pid', rather than the string itsself.

	What you are doing is the equivalent of typing:
		kill /usr/bin/head -1 /var/run/sendmail.pid

	If you replace the " with backquotes ` then it should work
                David/abs               abs@anim.dreamworks.com

.---- I've been too drunk to love ----.-- I've been too drunk to remember -.
|          too drunk to care          |    the hell of the night before    |
|  looked like death, felt like hell  |   I've been drinking myself blind  |
`------ been the worse for wear ------'-- and still I'll drink some more --'

On Sat, 10 May 1997, xiamin wrote:

> I am trying to write a script that, when pppd does down, kills sendmail.
> /etc/ppp/ip-up starts up sendmail -bd -q2m just fine.
> /etc/ppp/ip-down does terrible things when it runs. It seems to kill off 
> alot of processes, including X (I have only run it twice, once with X, 
> and both times it killed more than sendmail).
> here is the script:
> #!/bin/sh
> if [ -f /var/run/sendmail.pid ] 
> then
>     PID="/usr/bin/head -1 /var/run/sendmail.pid"
>     kill ${PID}
> fi
> 
> can someone please tell me what I am doing wrong?
> TIA,
> -xiamin
> 

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2i

iQCVAwUBM3Xv5vVDrdqCH8ZRAQFJIAQAhLEbyzokMYEgGXYF8AdjWnOsn9FtZLkh
JhBzMTM1X/HLRmY18+WLIcu+zD36fP5EDAIWVboYpE5N+anFi9aS1ELcZ10m9vnX
PIsl2vRk4y4wY9puJdwY2Crgp036fRyBs5fkqtFZeqWcAnem8+qYXNsVFLXIZEgw
5f//YM/2irY=
=tiJy
-----END PGP SIGNATURE-----