14 lines
246 B
Bash
Executable File
14 lines
246 B
Bash
Executable File
#!/bin/bash
|
|
|
|
HOST=localhost
|
|
PORT=8080
|
|
APIKEY=fe54ca8ae387c436b6777f3eff75a438
|
|
|
|
RESULT=$(curl -s "http://$HOST:$PORT/api?mode=qstatus&output=xml&apikey=$APIKEY")
|
|
|
|
if [ "$RESULT" != "" ];
|
|
then
|
|
echo "<<<app-sabnzbd-qstatus>>>"
|
|
echo "$RESULT"
|
|
fi
|