On Fri, 16 Feb 2001, Rajesh Fowkar wrote:
> Thanks sreangsu. This 'once' option seems to be better. I will use that.
> But still my question remains. How to kill mgetty from the script.
>
> The script will be something like this.
>
> 1. terminate mgetty
> 2. dial-out ( wvdial )
> 3. sendmail -q ( in /etc/ppp/ip-up.local )
> 4. fetchmail ( in /etc/ppp/ip-up.local )
> 5. ppp will die after time out
> 6. restart mgetty
howabout a simple kill. One can parse the output of ps aux |grep mgetty
with awk. Or use killall mgetty. But before you do this one has to change
the 'respawn' thing. Dont know whether one has to reboot after the change.
> ps. : instead of respawing should I start mgetty from startup scripts ?
> say in /etc/rc.d/rc.local
I guess eitherway its fine. But for things that need respawning, it needs
to be in inittab. However this does not apply here.
-- sreangsu
----------------------------------------------
LIH is all for free speech. But it was created
for a purpose. Violations of the rules of
this list will result in stern action.