• 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
How to enter the root password into terminal using apple script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to enter the root password into terminal using apple script


  • Subject: How to enter the root password into terminal using apple script
  • From: "selva.ganesan" <email@hidden>
  • Date: Mon, 06 Jun 2005 00:00:16 +0530

hi all,
 
I am using this script.
 
tell application "Terminal"
activate
do script with command "sudo ls"
end tell
 
It is opening the terminal and asking the password for root but terminal should take the password automatically.
Is there any way to supply password directly from the script?
 
Regards,
selva
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to enter the root password into terminal using apple script
      • From: Doug McNutt <email@hidden>
    • Re: How to enter the root password into terminal using apple script
      • From: Sven Hoffmann <email@hidden>
  • Prev by Date: Re: Internet Connect, AirPort, and Tiger
  • Next by Date: Re: How to enter the root password into terminal using apple script
  • Previous by thread: RE: Running an installer program from a script
  • Next by thread: Re: How to enter the root password into terminal using apple script
  • Index(es):
    • Date
    • Thread