New guantanomo_list command
This commit is contained in:
parent
9de4ca25b0
commit
16f3dbfecb
1 changed files with 14 additions and 0 deletions
14
commands/guantanamo_list.sh
Executable file
14
commands/guantanamo_list.sh
Executable 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
|
Reference in a new issue