MACSCRPT Archives

January 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Daniel Jalkut <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 19 Jan 2006 12:23:29 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (32 lines)
 From the hdiutil man page:

>  -stdinpass     read a null-terminated passphrase from standard  
> input.  If
>                     the standard input is a tty, the passphrase  
> will be read
>                     with readpassphrase(3).  -stdinpass replaces - 
> passphrase
>                     though the latter is still supported for  
> compatibility.
>                     Beware that the password will contain any  
> newlines before
>                     the NULL.  See the EXAMPLES section.

So I assume you could do something like this:

do shell script "echo MyPassword | hdiutil -stdinpass -other -options"

Daniel

On Jan 19, 2006, at 12:17 PM, Chuck Pelto wrote:

> Is there anyway to pass an authentication password with HDIUTIL  
> using the do shell script call?
>
> I'm running into a bit of an issue with automating this activity  
> and not having to sit here and enter passwords.
>
> Regards,
>
> Chuck

ATOM RSS1 RSS2