diff --git a/libs/esl/php/single_command.php b/libs/esl/php/single_command.php new file mode 100755 index 0000000000..76d83bc8de --- /dev/null +++ b/libs/esl/php/single_command.php @@ -0,0 +1,17 @@ +#!/usr/bin/php + 1) { + array_shift($argv); + $command = sprintf('%s', implode(' ', $argv)); + printf("Command to run is: %s\n", $command); + + $sock = new ESLconnection('localhost', '8021', 'ClueCon'); + $res = $sock->api($command); + printf("%s\n", $res->getBody()); +} else { + printf("ERROR: You Need To Pass A Command\nUsage:\n\t%s ", $argv[0]); +} + +?>