Skip to content

Instantly share code, notes, and snippets.

@bjoern-r
bjoern-r / xmlrpc-client.sh
Last active March 5, 2023 06:16
simple shell xmlrpc client that uses bash & curl
#!/bin/bash
# author jiyin@redhat.com
TEMP=`getopt -o vt: --long target -n 'example.bash' -- "$@"`
if [ $? != 0 ] ; then echo "getopt fail, terminating..." >&2 ; exit 1 ; fi
# Note the quotes around `$TEMP': they are essential!
eval set -- "$TEMP"
Usage() {