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

Re: How to enter the root password into terminal using apple script


  • Subject: Re: How to enter the root password into terminal using apple script
  • From: Sven Hoffmann <email@hidden>
  • Date: Mon, 6 Jun 2005 09:35:17 +0300

do shell script "command" user name "me" password "mypassword" with administrator privileges

use admin user and it will do the job.

sven


On Jun 5, 2005, at 9:30 PM, selva.ganesan wrote:

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:
email@hidden


This email sent to email@hidden
------------------------------------------------------------------------ ------------
Sven Hoffmann
R&D Macintosh Software Develover


Email: email@hidden  Tel. 03-6362331
Aladdin Knowledge Systems Ltd.
http://www.aladdin.com
**********************************************************************************************
**************************************************************************************************The contents of this email and any attachments are confidential.It is intended for the named recipient(s) only.If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies.** eSafe scanned this email for viruses, vandals and malicious content ****************************************************************************************************
**********************************************************************************************


_______________________________________________
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


References: 
 >How to enter the root password into terminal using apple script (From: "selva.ganesan" <email@hidden>)

  • Prev by Date: How to enter the root password into terminal using apple script
  • Next by Date: Re: Regex with Satimage
  • Previous by thread: How to enter the root password into terminal using apple script
  • Next by thread: Re: How to enter the root password into terminal using apple script
  • Index(es):
    • Date
    • Thread