how to shut pppd in script
Hi,
The idea is to disconnect from ISP after all scripts in /etc/ppp/ip-up.d/ are
executed. When I run script:
=========
#!/bin/sh
if test -e shut.ppp
then
echo "It exists"
else
echo "It doesn't exists"
fi
=========
everything is ok. But when I place script
=========
#!/bin/sh
if test -e shut.ppp
then
kill 'cat /var/run/ppp0.pid'
fi
=========
in /etc/ppp/ip-up.d it isn't working. If I run in command line
kill 'cat /var/run/ppp0.pid'
it works. Where I'm wrong?
best regards
Vladimir
____________________________________________________________________
Get free e-mail and a permanent address at http://www.netaddress.com/?N=1
Reply to: