Shell script fails to return desired results
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