senty
senty

Reputation: 12847

Detect when curl file download is completed

I am downloading a file using curl on shell script:

do shell script "curl -f http://example.com/file -o ~/Desktop/file.doc"

Is there a way to detect/catch if the file download is completed?

Upvotes: 1

Views: 516

Answers (1)

vadian
vadian

Reputation: 285079

do shell script works synchronously.

The next code line is executed when the download is completed.

Upvotes: 1

Related Questions