|
|
Start and stop Apache from the dock
If you aren't too keen on changing the sudoers file to not require your password, you can let applescript take care of the auth for you:
If you want, you can throw your password into the script and it won't ask you for it:
On a side note, I had a problem with the line break in the second statement, after "(no pid file)"... I had to remove it to get the script to work.
Start and stop Apache from the dock
On a side note, I had a problem with the line break in the second statement, after "(no pid file)"... I had to remove it to get the script to work.Right, that's because the line break occurs within a quoted string. In order to break lines in code in the middle of a quoted string you need to make two strings with a concatenation and the line break in between them. Original lines: Corrected lines:
|
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.10 seconds |
|