• 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
Re: Getting result from shell scp command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Getting result from shell scp command
      • From: Gnarlodious <email@hidden>
References: 
 >Re: Getting result from shell scp command (From: Gnarlodious <email@hidden>)

  • Prev by Date: Re: Timeout when calling FileMaker Pro
  • Next by Date: Mount Volume using SMB works in 10.2.8....since when?
  • Previous by thread: Re: Getting result from shell scp command
  • Next by thread: Re: Getting result from shell scp command
  • Index(es):
    • Date
    • Thread