From 608f877a369906f9c836b84c62f012d6641fb8a3 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Mon, 2 Mar 2020 12:45:18 -0700 Subject: [PATCH] trouble with qnremote command --- example.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/example.php b/example.php index 9db61a7..0bd3359 100644 --- a/example.php +++ b/example.php @@ -131,7 +131,9 @@ URCall: if (strlen($furcall)>0 && strlen($fmodule)>0) { $command = 'sgsremote '.strtolower($fmodule).' '.strtolower($cfg['ircddb_login']).' '.$furcall; echo $command, "
\n"; - exec($command); + $lastline = system($command, $retval); + if ($retval != 0) + echo $lastline, "
\n"; } ?>