applescript shell script SCP?
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