• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Do shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do shell script


  • Subject: Re: Do shell script
  • From: Matthew Stuckwisch <email@hidden>
  • Date: Mon, 25 Nov 2002 15:28:27 -0600

How do I modify the sample AppleScript Studio application "Simple Shell" so
that I can list firewall rules?

When I enter "sudo ipfw list", Simple Shell hangs instead of prompting me
for a password. How do I detect sudo's password request?

do shell script "ipfw list" with administrator privileges [password aString]

If you don't use the password extra, AS will prompt for the password.


Matthew Stuckwisch
[AIM/MSN]{GuifaSwimmer} | [Yahoo!]{SapphireTree} | [ICQ]{137477701}
[IRC]{guifa}(esperNET / GamesNet) | [E-mail]{email@hidden}
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Script Debugger/Tex-Edit bug: crash condition
  • Next by Date: Re: Is-it a bug in the finder ?
  • Previous by thread: Re: Script Debugger/Tex-Edit bug: crash condition
  • Next by thread: Just screwing around
  • Index(es):
    • Date
    • Thread