Prose\UsingHost::runCommandAndIgnoreErrors PHP Method

runCommandAndIgnoreErrors() public method

public runCommandAndIgnoreErrors ( $command )
    public function runCommandAndIgnoreErrors($command)
    {
        // what are we doing?
        $log = usingLog()->startAction("run command '{$command}' on host '{$this->args[0]}'");
        // make sure we have valid host details
        $hostDetails = $this->getHostDetails();
        // get an object to talk to this host
        $host = OsLib::getHostAdapter($this->st, $hostDetails->osName);
        // run the command in the guest operating system
        $result = $host->runCommand($hostDetails, $command);
        // all done
        $log->endAction();
        return $result;
    }