|
|
Norrow down that 'PS' output by piping it to 'GREP'
You can modify your 'ps ax' command to 'ps ax | grep pppd' and you will ONLY see 2 lines, the ACTUAL pppd deamon and the command you just typed in, like this:
Norrow down that 'PS' output by piping it to 'GREP'
Or you could do the following and eliminate the grep process in the ps list:
Norrow down that 'PS' output by piping it to 'GREP'
Here's an even better way to do it in one step:
Norrow down that 'PS' output by piping it to 'GREP'
grep pipe to grep? That's a cardinal sin! :-)
Do this: ps ax | grep p[p]pd | ... Using the regexp in there means the grep process won't match itself in the process listing. cheers RET PS: How bad will the backslashitis be on this reply?
Script Menu Item
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
Script Menu Item
How about: |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.15 seconds |
|