Skip to content
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

Run in Background on Windows #12

Closed
niceman20k opened this issue Feb 16, 2024 · 3 comments
Closed

Run in Background on Windows #12

niceman20k opened this issue Feb 16, 2024 · 3 comments

Comments

@niceman20k
Copy link

niceman20k commented Feb 16, 2024

Hi there,

is there any way to run the working program in background on Windows? I tried with piping & redirecting to NUL but without success. It keeps having the prompt open.
Might be a simple edit in the source so it won't output to stdout, but i am not into Go. But i can compile it on my own, if anyone has a hint, i would be thankful.

@wiggin77
Copy link
Owner

Hi @niceman20k. There are multiple ways to turn any Windows executable into a service. A quick search provides several options but perhaps the easiest is to NSSM.

@niceman20k
Copy link
Author

Thank you! This does the trick very well (nssm). Searched of course, installed a service myself, but didn't step over nssm.

@wiggin77
Copy link
Owner

Glad it's working for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants