Code: Select all
$output = shell_exec('sacli --user test --client_reason EXPIRED DisconnectUser');
echo "<pre>$output</pre>";
If I just use shell_exec('sacli'); or shell_exec('sacli --help'); it will echo successfully:
Code: Select all
sacli: No command specified
Use --help to show usage
Code: Select all
ERROR: [Errno 2] No such file or directory: 'out/tmp-2OtTHkYbGxPA.tmp': util/options:501,sagent/sacli:516,util/file:165,util/file:159,util/file:151,util/simplefile:9 (FileNotFoundError)
Thanks!