• 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
applescript shell script SCP?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

applescript shell script SCP?


  • Subject: applescript shell script SCP?
  • From: "Mr. Dan Pouliot" <email@hidden>
  • Date: Mon, 8 Dec 2008 19:46:13 -0500

My goal is to sftp a file to a server (curl doesn't support sftp).
The problem is that SCP requires that the password be typed when prompted, after the initial command. I tried throwing the password after a semicolon to make it execute as line 2 of my shell script, but that yeilds error:
ssh_askpass: exec(/usr/libexex/ssh-askpass): No such file or directory


set theSCPScript to "scp " & thisPath & " " & theUsername & "@" & theServer & ":" & thePath & theFileNAME & ";" & thePassword
do shell script theSCPScript


any ideas or help would be greatlly appreciated!

Dan
_______________________________________________
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: applescript shell script SCP?
      • From: Skeeve <email@hidden>
    • Re: applescript shell script SCP?
      • From: "Mark J. Reed" <email@hidden>
    • Re: applescript shell script SCP?
      • From: Stan Cleveland <email@hidden>
  • Prev by Date: Re: In Adobe InDesign, how to untag XML tagging of the parent story of a found text object?
  • Next by Date: Re: specifying "text" language
  • Previous by thread: Re: Distribute File to all users
  • Next by thread: Re: applescript shell script SCP?
  • Index(es):
    • Date
    • Thread