--- alx-src/branches/alx-web-060/include/common-functions.php 2011/06/15 14:17:26 2416 +++ alx-src/branches/alx-web-060/include/common-functions.php 2011/06/15 14:19:07 2417 @@ -7,25 +7,25 @@ global $privkey_file; global $pubkey_file; - if (!function_exists("ssh2_connect")) die("function ssh2_connect doesn't exist. You must install the ssh2 module from pecl library!"); + if (!function_exists("ssh2_connect")) die("sshdo(): function ssh2_connect doesn't exist. You must install the ssh2 module from pecl library!"); if(!($con = ssh2_connect($ip, "22"))) { - echo "failure, could not connect\n"; + echo "sshdo(): failure, could not connect\n"; } else { if(!ssh2_auth_pubkey_file($con, $user, $pubkey_file, $privkey_file)) { - echo "failure, could not login\n"; + echo "sshdo(): failure, could not login\n"; } else { - echo "logged in\n"; + //echo "logged in\n"; if(!($stream = ssh2_exec($con, "source /etc/profile; ".$cmd."; echo '__RETVAL__:'$?"))) { - echo "failure, could not execute command '".$cmd."'\n"; + echo "sshdo(): failure, could not execute command '".$cmd."'\n"; } else {