Comments (6)
Hi,
go routines is a good way to do it, without "&" at the end of cmd.
from goph.
I think that nohup
it's gonna help you.
from goph.
I think that
nohup
it's gonna help you.
I've checked.
Not working in my case.
App still can't go to the next step after Run()
method.
Looking for another solution.
If you have some more advices, I will be pleased to check them :)
Update.
What really helped me is running with redirect to dev/null:
test, err := client.Run("some_cmd > /dev/null 2>&1 &")
from goph.
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.
I'm still looking for a good solution to the problem.
Another solution is to use SystemD
It is a good solution. But I avoid it for technical reasons.
from goph.
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. I'm still looking for a good solution to the problem. Another solution is to use SystemD It is a good solution. But I avoid it for technical reasons.
Hi!
Have you found any good solution of this problem?
from goph.
I think that
nohup
it's gonna help you.
Thank you for this idea.
I'll check it on my case.
from goph.
Related Issues (20)
- Login with password HOT 1
- Download files HOT 1
- How to specify custom known_hosts file? HOT 1
- Can file transfers be via SCP? HOT 1
- Invalid Handle problem
- how to connect with private key content, without file path
- ssh: handshake failed: knownhosts: key mismatch HOT 2
- can support execute shell script file? HOT 1
- how to access remote server via a tcp proxy?
- Give precedence `~/.ssh/config` file over `$SSH_AUTH_SOCK` + ability set custom SSH socket path
- Support for multiple Run() commands
- How to make an interactive shell? HOT 1
- Why Goph.Cmd do not have cmd.Dir,Set command execution directory
- Create READ/WRITE timeout after connection
- X Forwarding
- Is there a way to specify ssh options? HOT 1
- Add verification when uploading or downloading files
- linux can not remove session after client.Close()?
- Upload file from memory HOT 2
- Pass IdentitiesOnly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goph.