You can use the backticks (`) to execute a system command:
Code:
$result = `random system command`;
This will execute "random system command" and then put the output of the command into $result.