hi,
have 2 commands in terminal use , automate them applescript (or shell script, or script of sort). tried apple script , put in
code:
do shell script "sudo ipfw pipe 1 config bw 50kbyte/s" shell script "sudo ipfw add 1 pipe 1 src-port 80"
then try run in editor , says "error: password: ". wondering if there someway add password script (i don't care security), or find way around this. rather not type password every time try run script, fine if had to.
in advance!
use with administrator privileges, user name, , password keywords, , don't use sudo:
http://developer.apple.com/technotes/tn2002/tn2065.html
Forums Macs Mac Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
Comments
Post a Comment