File: client.sh

package info (click to toggle)
libnginx-mod-http-uploadprogress 1%3A0.9.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 260 kB
  • sloc: ansic: 1,319; sh: 93; makefile: 10
file content (8 lines) | stat: -rw-r--r-- 209 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
#!/bin/sh
# usage: client.sh UPLOAD_ID PROGRESS_URL
cont=""
while [ "$cont" != "new Object({ 'state' : 'done' })" ]
do
	cont=`curl -s -H "x-progress-id: $1" $2 | sed -e 's/[\n\r]//'`
	echo "[$1] '$cont'"
done