- $json = ($argv[2] == "json" ? true : false)
- function iptables($args) {
- global $json, $output;
- if ($json) {
- "command" => "iptables $args",
- "returncode" => $returncode,
- "stdout" => $stdout,
- "stderr" => $stderr;
- } else {
- printf("%s\r\n\tReturn Code: %d\r\n\tOutput:\r\n\t\t%s\r\nErrors:\r\n\t\t%s\r\n\r\n", "iptables $args", $returncode, $stdout, $stderr;
- }
- }
- }
Untitled
Posted by Anonymous on Mon 18th Jul 2016 00:03
raw | new post
modification of post by Anonymous (view diff)
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
kpaste.net RSS