Error during command authentication.

Error - unable to initiate communication with LISTSERV (errno=10061, phase=CONNECT, target=127.0.0.1:2306). The server is probably not started. LISTSERV - MACSCRPT Archives - LISTSERV.DARTMOUTH.EDU

And the answer IS....

do shell script "hdiutile create -srcfolder 'sourcePath'  
'destinationPath' -format UDZO -ov" user name myName password  
myPassword with administrator privileges

This eliminates the pesky authentication dialog from interfering. The  
source and destination paths need to be converted to UNIX  
requirements using the POSIX Path function.

Format UDZO gets it to compress. -ov overwrites any existing file.

Regards,

Chuck

On Jan 19, 2006, at 10:23 AM, Daniel Jalkut wrote:

> 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
>