ubapi 402 B

123456789101112131415
  1. #!/bin/sh
  2. #= Change this to your real Ubilling serial ==
  3. UBSERIAL=UB000000000000000000000000000000000
  4. #=============================================
  5. if [ $# -ne 1 ]
  6. then
  7. echo "Usage: /bin/ubapi \"action\""
  8. echo "Example: /bin/ubapi \"backupdb\" or /bin/ubapi \"swping\""
  9. exit
  10. fi
  11. ACTION=$1
  12. /usr/bin/curl -o /dev/null "http://127.0.0.1/billing/?module=remoteapi&key=${UBSERIAL}&action=${ACTION}"