-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
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
How can I escape client.Run(cmd)
loop?
#32
Comments
client.Run(cmd)
loop?
Hi, go routines is a good way to do it, without "&" at the end of cmd. |
Yes. This is a temporary solution. The remote application will remain running as long as my application is running. When my app stops the remote app will stop. |
Hi! |
I think that |
Thank you for this idea. |
I've checked. Update. |
Question: How can I escape the
client.Run(cmd)
loop?When I call
client.Run(cmd)
orcmd.Execute(myCmd)
my program can't go to the next tasks.I am trying to run the command in the background of the remote host. then Close connection and allow the app to do other things.
Currently I'm skipping
Runc(cmd)
and jumping to the next code via goroutine. like thisI'm looking for a logical solution to my problem.
thank you so much
The text was updated successfully, but these errors were encountered: