Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Script Menu Item' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Script Menu Item
Authored by: Anonymous on Jun 02, '02 01:07:29AM
Create an AppleScript with the following and place it in your Script Menu Items folder. No need to open the terminal with this... Not sure you need the admin pass to kill pppd but put it in just in case (No dial-up access to test with). If not just remove with administrator privileges.

on run
do shell script "kill -HUP `ps ax | grep -v grep | grep pppd | awk '{print $1}' `" with administrator privileges
end run

[ Reply to This | # ]
Script Menu Item
Authored by: stetner on Jun 02, '02 02:14:20AM

How about:

sudo kill -HUP `cat /var/run/ppp0.pid`



[ Reply to This | # ]