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
Here is the case:
I have a shell app, generally, to use it, I would:
1.open a shell, add input the app path
2.after it is launched, I input a command;
3.the app feedback 1 or more feedbacks;
4.I would give further commands accordingly...
Now I want to do it in rust--- I want to launch this app and interact it at backend. I googled a lot, like something related to std::process::Command,[rust-subprocess](https://github.com/hniksic/rust-subprocess) and so on... But those just seems not fit in this case. ( I guess a listener is needed? )
And I notice that Tokio has an async command, I wonder whether this task could be done with Tokio?
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Here is the case:
I have a shell app, generally, to use it, I would:
1.open a shell, add input the app path
2.after it is launched, I input a command;
3.the app feedback 1 or more feedbacks;
4.I would give further commands accordingly...
Now I want to do it in rust--- I want to launch this app and interact it at backend. I googled a lot, like something related to
std::process::Command
,[rust-subprocess](https://github.com/hniksic/rust-subprocess)
and so on... But those just seems not fit in this case. ( I guess a listener is needed? )And I notice that Tokio has an async command, I wonder whether this task could be done with Tokio?
Beta Was this translation helpful? Give feedback.
All reactions