We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'd like to check if ttyd is currently "busy" or "free" to take any commands.
ttyd
The text was updated successfully, but these errors were encountered:
I think you are talking about process insides a shell?
No. ttyd is a tty io forwarder, you can't konw if a process is exited with the input/output data.
the only way to know if a process is exited is to wait it, this is done by the shell.
Sorry, something went wrong.
Thanks for the response!
Yep.
the only way to know if a process is exited is to wait it
Got it. Thanks for the pointer.
If I'm running ttyd via a browser automation tool and want to get the pid of a process that I executed inside ttyd, how do you suggest I go about it?
pid
you can use $! to get the last command's pid in a shell sessoin, otherwise no direct way.
$!
No branches or pull requests
I'd like to check if
ttyd
is currently "busy" or "free" to take any commands.The text was updated successfully, but these errors were encountered: