Re: rsync do shell script password..
Re: rsync do shell script password..
- Subject: Re: rsync do shell script password..
- From: Wayne Melrose <email@hidden>
- Date: Thu, 13 Sep 2007 07:55:32 +0200
On 13/09/2007, at 12:49 AM, Joe wrote:
I'm not sure if this is what you want to do, but…
set shscr to "rsync -Ezpu /Users/me/Desktop/rsync.scpt
serverUser@10.0.0.1:/Users/server/Desktop/"
set RSYNC_PASSWORD to "mypassword"
with timeout of 96000 seconds
do shell script shscr password RSYNC_PASSWORD with administrator
privileges
end timeout
Joe
On Sep 12, 2007, at 12:06 PM, Wayne Melrose wrote:
Hi,
I'm going a little mad here, and running in circles..
I've got a few files that I'd like to sync to a remote server.
I've set up a command that looks like this
do shell script "rsync -Ezpu /Users/me/Desktop/rsync.scpt
serverUser@10.0.0.1:/Users/server/Desktop/"
Which works fine as a shell script, prompting for the password..
Trick is I'd like to send the command with the password..
I've figured out three things..
1.
I can use a variable RSYNC_PASSWORD=mypassword
or
2.
Store the password in a file, then use the command --password-
file=/path/to/password/file
3.
Use ssh-keygen to store the passwords..? Not really what I want.
However, i don't seem to be able to get the syntax working for
either of the two first options (my preferred options).. ?
I'd really like to be able to to this in a "do shell script "
because it's part of a bigger applescript that I'm building.. And
it's more user friendly to the other developers I'm working with.
Thanks for any help!
Wayne Melrose
Joe,
Thanks for the reply, although this code would try to enable an
administrator command on the local machine, what I'm looking for is
submitting a password to the remote machine..
The more I read about rsync the more I think it can't be done without
using an rsync server? I'm hoping that Applescript is going to have a
trick up it's sleeve to submit a password to the remote machine.
Wayne
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden