• 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: Shell script fails to return desired results
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell script fails to return desired results


  • Subject: Re: Shell script fails to return desired results
  • From: "Mark J. Reed" <email@hidden>
  • Date: Mon, 27 Aug 2007 14:56:18 -0400

On 8/27/07, Rick Dwyer <email@hidden> wrote:
> Applescript will simply returns:
>
> tell current application
>         do shell script  "curl -P 192.168.80.113 -v -T /TempUploads/
> testfile.zip -u username:pass ftp://ftp.remotedirectory.com/";
> end tell
>
> almost as if ignoring the -v for the curl command.

The output of the command should be the return value of "do shell
script".  So if you do

set myOutput to (do shell script "curl -v ...")

the output of curl -v will come back to you.   There's currently no
way that I know of in AppleScript to launch a coroutine, which would
let you get the output of the command in real time line by line.  I
would think you could do it with named pipes and AS file I/O, but as I
recall that doesn't work for some reason.


--
Mark J. Reed <email@hidden>
 _______________________________________________
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: Shell script fails to return desired results
      • From: Doug McNutt <email@hidden>
References: 
 >Shell script fails to return desired results (From: Rick Dwyer <email@hidden>)

  • Prev by Date: Shell script fails to return desired results
  • Next by Date: Re: iWork Numbers
  • Previous by thread: Shell script fails to return desired results
  • Next by thread: Re: Shell script fails to return desired results
  • Index(es):
    • Date
    • Thread