Magellan Linux

Diff of /alx-src/branches/alx-web-060/include/common-functions.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2415 by niro, Tue Jun 7 13:10:02 2011 UTC revision 2416 by niro, Wed Jun 15 14:17:26 2011 UTC
# Line 35  function sshdo($cmd, $ip, $user="root") Line 35  function sshdo($cmd, $ip, $user="root")
35   while ($buf =  fread($stream,4096))   while ($buf =  fread($stream,4096))
36   {   {
37   $data .= $buf;   $data .= $buf;
38   echo "buf=" .$buf."\n";   //echo "buf=" .$buf."\n";
39   }   }
40   fclose($stream);   fclose($stream);
41   # get the last element of data as retval   # get the last element of data as retval

Legend:
Removed from v.2415  
changed lines
  Added in v.2416