Changeset 317 for trunk/system/routerboard.php
- Timestamp:
- Jul 15, 2011, 8:26:28 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/routerboard.php
r301 r317 49 49 if($Commands != '') 50 50 { 51 $Output = array();52 51 $Commands = addslashes($Commands); 53 52 $Commands = str_replace('$', '\$', $Commands); 53 //$Commands = str_replace(' ', '\ ', $Commands); 54 54 $Command = $this->SSHPath.' -o ConnectTimeout='.$this->Timeout.' -l '.$this->UserName.' -i '.$this->PrivateKey.' '.$this->HostName.' "'.$Commands.'"'; 55 55 if($this->Debug) echo($Command); 56 $Output = array(); 56 57 exec($Command, $Output); 57 58 } else $Output = '';
Note:
See TracChangeset
for help on using the changeset viewer.