[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: tail -f termination, after ppp established.



Bob McGowan writes:
> There are surely other, perhaps simpler ways,...

Yes.  Just put

  #!/bin/sh 
  kill `cat /var/run/plogpid`
  rm -f /var/run/plogpid

in /etc/ppp/ip-up.d/zzkillplog and change your script to put the pid of the
plog process in /var/run/plogpid.

(And you probably want to replace 'tail -f /var/log/syslog' with 
'plog -f'.)
-- 
John Hasler
john@dhh.gt.org (John Hasler)
Dancing Horse Hill
Elmwood, WI



Reply to: