pause
Syntax
Details
Example
var first = ${ARG_1}
var last = ${ARG_2}
var last += 1
var x = ${first}
# Retrieve a number of files from http://server.local/?.dat where ? is a number
# Wait for 1 second between each file
loop slurp {
var url = http://server.local/datafiles/${x}.dat
set http_savefile data/${x}.png
print Getting datafile ${x}
http GET ${url}
if (${HTTP_STATUS_CODE} == 200) {
print 200 OK
}
if (${HTTP_STATUS_CODE} == 404) {
print Data file ${x} missing on server
}
var x += 1
if (${x} == ${last}) {
exit_loop
}
pause 1000 # Wait for 1 second
}
print ${x} files were downloaded
terminateLast updated