Archived
1
0
Fork 0

New guantanomo_list command

This commit is contained in:
Mercier Pierre-Olivier 2013-11-30 22:32:21 +01:00
parent 9de4ca25b0
commit 16f3dbfecb

14
commands/guantanamo_list.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
if ! which gearman > /dev/null 2> /dev/null
then
echo "gearman isn't installed on this machine. Please try another one."
exit 1
fi
cat <<EOF | gearman -h gearmand -p 4730 -f guantanamo
<?xml version="1.0" encoding="UTF-8"?>
<process>
<param name="action">list</param>
</process>
EOF