Changeset 248 for trunk/system/routerboard.php
- Timestamp:
- Sep 8, 2009, 9:03:14 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/routerboard.php
r242 r248 10 10 var $PrivateKey = 'id_dsa'; 11 11 var $MaxBurstLineCount = 100; 12 12 var $Debug = false; 13 13 14 function __construct($HostName = 'localhost', $UserName = 'admin', $Password = '') 14 15 { … … 52 53 $Commands = str_replace('$', '\$', $Commands); 53 54 $Command = $this->SSHPath.' -o ConnectTimeout='.$this->Timeout.' -l '.$this->UserName.' -i '.$this->PrivateKey.' '.$this->HostName.' "'.$Commands.'"'; 54 echo($Command);55 if($this->Debug) echo($Command); 55 56 exec($Command, $Output); 56 57 } else $Output = ''; 57 print_r($Output);58 if($this->Debug) print_r($Output); 58 59 return($Output); 59 60 } … … 235 236 } 236 237 } 237 print_r($Commands);238 if($this->Debug) print_r($Commands); 238 239 return($this->Execute($Commands)); 239 240 }
Note:
See TracChangeset
for help on using the changeset viewer.