chore: change example to use no shell
This commit is contained in:
@@ -12,7 +12,7 @@ require_once __DIR__ . '/vendor/autoload.php';
|
|||||||
|
|
||||||
$child = (new Command('/usr/bin/cat'))
|
$child = (new Command('/usr/bin/cat'))
|
||||||
->stdin(Stdio::piped('r'))
|
->stdin(Stdio::piped('r'))
|
||||||
->spawn(shell: true);
|
->spawn(shell: false);
|
||||||
|
|
||||||
$child->stdin?->write('Hello, this is pretty cool.');
|
$child->stdin?->write('Hello, this is pretty cool.');
|
||||||
$child->stdin?->close();
|
$child->stdin?->close();
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ var_dump($output);
|
|||||||
|
|
||||||
$child = (new Command('/usr/bin/cat'))
|
$child = (new Command('/usr/bin/cat'))
|
||||||
->stdin(Stdio::piped('r'))
|
->stdin(Stdio::piped('r'))
|
||||||
->spawn(shell: true);
|
->spawn(shell: false);
|
||||||
|
|
||||||
$child->stdin?->write('Hello, this is pretty cool.');
|
$child->stdin?->write('Hello, this is pretty cool.');
|
||||||
$child->stdin?->close();
|
$child->stdin?->close();
|
||||||
|
|||||||
Reference in New Issue
Block a user