Changeset 873 for trunk/Modules/NetworkConfigAirOS/Generators/SSHClient.php
- Timestamp:
- Apr 6, 2020, 11:17:40 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigAirOS/Generators/SSHClient.php
r856 r873 25 25 { 26 26 $Commands = trim($Commands); 27 if ($Commands != '')27 if ($Commands != '') 28 28 { 29 29 $Commands = addslashes($Commands); … … 34 34 $Command = $this->SSHPath.' -oBatchMode=yes -o ConnectTimeout='.$this->Timeout.' -l '. 35 35 $this->UserName.$PrivKey.' '.$this->HostName.' "'.$Commands.'"'; 36 if ($this->Debug) echo($Command);36 if ($this->Debug) echo($Command); 37 37 $Output = array(); 38 38 exec($Command, $Output); 39 39 } else $Output = ''; 40 if ($this->Debug) print_r($Output);41 return ($Output);40 if ($this->Debug) print_r($Output); 41 return ($Output); 42 42 } 43 43 }
Note:
See TracChangeset
for help on using the changeset viewer.