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

Shell script fails to return desired results


  • Subject: Shell script fails to return desired results
  • From: Rick Dwyer <email@hidden>
  • Date: Mon, 27 Aug 2007 14:34:57 -0400

Hello all.
I have applescript performing a curl shell script to ftp some files to a remote directory. I have it working, but I notice a significant difference between what applescript returns and what terminal client returns:


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.

Terminal, with the -v command will return the line by line activity of what transpires. Can applescript capture this information from the shell command?
I know a work around is to use the --trace-ascii to output the results to a text file and then read them, but I didn't know if others have a way of trapping for this information with the initial shell script request.
Thanks.


OS X 10.4.9
do shell script ("curl -P 192.168.80.113 -v -T /TempUploads/ testfile.zip -u username:pass ftp://ftp.remotedirectory.com/";)


 --Rick


_______________________________________________ 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: Christopher Nebel <email@hidden>
    • Re: Shell script fails to return desired results
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: Resizing in Photoshop
  • Next by Date: Re: Shell script fails to return desired results
  • Previous by thread: Re: Shell Script Loop
  • Next by thread: Re: Shell script fails to return desired results
  • Index(es):
    • Date
    • Thread