Prabuddha Chakraborty
9 years ago
1 changed files with 24 additions and 0 deletions
@ -0,0 +1,24 @@ |
|||
<?php |
|||
|
|||
|
|||
|
|||
class APT |
|||
{ |
|||
|
|||
function install() { |
|||
$this->cmd = 'apt-get install '.$this->pkg ; |
|||
$this->execute_local(); |
|||
|
|||
} |
|||
|
|||
|
|||
function execute_local() { |
|||
$output = array(); |
|||
$res = exec( $this->cmd, $output, $return ); |
|||
$this->res = $output; |
|||
print_r( $this->res ); |
|||
} |
|||
|
|||
|
|||
|
|||
} |
Loading…
Reference in new issue