• 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
rsync do shell script password..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rsync do shell script password..


  • Subject: rsync do shell script password..
  • From: Wayne Melrose <email@hidden>
  • Date: Wed, 12 Sep 2007 21:06:08 +0200

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

 _______________________________________________
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

  • Follow-Ups:
    • Re: rsync do shell script password..
      • From: Christopher Nebel <email@hidden>
    • Re: rsync do shell script password..
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Alias Files
  • Next by Date: fileMaker Value Lists
  • Previous by thread: Re: Alias Files
  • Next by thread: Re: rsync do shell script password..
  • Index(es):
    • Date
    • Thread