Code Monkey home page Code Monkey logo

Comments (6)

melbahja avatar melbahja commented on August 15, 2024 2

Hi,

go routines is a good way to do it, without "&" at the end of cmd.

from goph.

melbahja avatar melbahja commented on August 15, 2024 1

I think that nohup it's gonna help you.

from goph.

george-zakharov avatar george-zakharov commented on August 15, 2024 1

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.

baxiry avatar baxiry commented on August 15, 2024

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.

george-zakharov avatar george-zakharov commented on August 15, 2024

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.

george-zakharov avatar george-zakharov commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.