You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And if I try to execute "bash", like this:
$process = new Process('bash'); the application just hangs but without any stdout printed.
The bash doesn't hang here, it waits for your input, so if your not sending anything then nothing will happen. You can try to execute something like echo hello\n and should expect to see the "hello" being printed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Can I use ChildProcess to execute comands like bash, or top?
If I try to run top like this:
$process = new Process('top'); the application ends without any output.
And if I try to execute "bash", like this:
$process = new Process('bash'); the application just hangs but without any stdout printed.
Am I missing something?
Thanks,
All reactions