Re: Getting result from shell scp command
Re: Getting result from shell scp command
- Subject: Re: Getting result from shell scp command
- From: Nigel Smith <email@hidden>
- Date: Wed, 23 Mar 2005 14:15:56 +0000
On 22/3/05 15:12, "Gnarlodious" <email@hidden> wrote:
> Any answers? I suppose if the result file is blank it means the upload was
> successful, but I won¹t get filesize.
If you use the verbose (-v) switch in your command, you can get the filesize
from the line starting "Sending file modes:" in your scplog.txt file.
do shell script "/usr/bin/scp -v email@hidden:~/thefile ~/thefile >
~/scplog.txt 2>&1 &"
For example, from my test:
Sending file modes: C0644 1330381 squid-2.5.STABLE3.tar.gz
...and the squid archive file that arrived on my desktop was "1.2MB on disk
(1,330,381 bytes)" according to the Finder's Get Info window.
HTH,
Nigel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden