Re: applescript shell script SCP?
Re: applescript shell script SCP?
- Subject: Re: applescript shell script SCP?
- From: Skeeve <email@hidden>
- Date: Tue, 09 Dec 2008 06:18:39 +0100
Either take care that you don't need to type a password (see man
ssh-agent or use google to find one of the thousands of ssh tipps for
that), or use application "Terminal"
.
on run
tell application "Terminal"
set theSCPScript to "scp " & thisPath & " " & theUsername & "@"
& theServer & ":" & thePath & theFileNAME
do script theSCPScript
repeat while not contents of window 1 contains "Password: "
delay 0.25
end
do script thePassword in window 1
end
_______________________________________________
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