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";
}
?>