mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
handle smbclient help message
This commit is contained in:
parent
c97dee758e
commit
0ef64a9156
2 changed files with 12 additions and 0 deletions
|
|
@ -34,6 +34,14 @@ class Connection extends RawConnection {
|
|||
parent::write($input . PHP_EOL);
|
||||
}
|
||||
|
||||
public function clearTillPrompt() {
|
||||
do {
|
||||
$promptLine = $this->readLine();
|
||||
} while (!$this->isPrompt($promptLine));
|
||||
$this->write('');
|
||||
$this->readLine();
|
||||
}
|
||||
|
||||
/**
|
||||
* get all unprocessed output from smbclient until the next prompt
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue