This question already has answers here:
How to start a Go program as a daemon in Ubuntu?
(2 answers)
Closed 8 years ago.
Has anyone here written a deamon process in Golang? Can you walk me through how to do that? Useful links are welcome.
Yes this has been done. See the go-daemon project. Be aware that there are certain problems when the daemonization happens after goroutines are launched. See issue 227 for details.
At this time I'd recommend to use the utilities your operating system offers you. See this related question for solutions.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Whanted to get a openvms dev enviroment, where could use it to learn the basic command's to get feel for it without worrying about breaking anything.
So whanted to know if its possible to install a openvms iso image in Virtual Box
In case its possible where could get a openvms image or needed first to get installation cds and from those generate the iso?
if the cds are needed is there some online store that can be bought or the price is only afordable for companies?
only making inqueries to see if its possible and feasible, other wise gona give up the ideia of having a development enviroment.
Well what do you know so far, and what do you have so far?
Do you know that OpenVMS has a 40+ year history, was originally written for the (32 bit) VAX platform, ported to 64-bit Alpha (30+ years ago), then ported to Itanium and X86 (64 bit).
That X86 port will boot natively and you may want to ue VMware, Virtualbox or similar - within the current constraints and offeringg - visit vmssoftware.com for details.
For initial learning I recommend to just to use an Alpha or VAX emulator.
Those could run on a virtual machine, but there is no good reason.
Just run as process on whatever laptop/server your have running Windows (and some Linux options I think).
There are are several emulators out there, both free and commercial - google is your friend.
I happen to like/use FreeAXP for Alpha running under 64 bit windows - just Google.
There is no Itanium emulator.
Do you have access to the software distribution somehow?
For starters, why even bother trying to get your own system?
Just timeshare to get a feel for it.
For example SSH to decuserve.org [184.168.131.241 - ooops: 104.207.199.162 ] - ask for an account - presto!
Other timeshare options are available - and very valid to learn the basics (file system, editors, compilers,...)
Good luck!
Hein.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I need to debug an NSPreferencePane I am working on using XCode 5 I am not sure how to achieve this. Any help with how to achieve this would be greatly appreciated ?
Thanks,
Michael
With a debugger you can either start the program you want to debug, or attach to a running process. As the preference pane is loaded from a host application, you'll need to do the latter.
In gdb, for example, if you know the pid for the process you can call: -
attach <pid>
In XCode, go to the Debug menu and select "Attach to Process" and choose the host application which loads your NSPreferencePane.
I was unable to attach the debugger to the NSPreferencePane and instead used NSLog statements that I was then able to read using the Console application in OSX. Hope this will help anyone who has this issue in the future.
Thanks,
Michael
Use NSAlert to show alert wherever you wanted to log a message.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
What is the Difference Between Mercurial and Git?
I'm new to DVC systems and I've registered on bitbucket.org.
Do I need to use Git and Mercurial systems together or I can use one of them, and what is the difference?
thank You for help
They are separate DVCS. I would choose Git over Mecurial, since its popularity is greater.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm trying to implement a socket listener in Windows Phone 7.1, which should process the incoming data and make some actions based on it (constantly, without interrupting). As far as I've found this, the info described there confused a lot, so these are the questions:
Is there some ability for the background agent to be run constantly, without interrupting by the system (or with acceptable amount of running time, more than 10 minutes)?
Is there any API to communicate with running agent, something like Android's AIDL?
PS. I cannot use Push Notifications.
No, background agents cannot run constantly. If you need code to execute constantly then you should keep the app running, maybe enable running under lock screen if appropriate.
No, you cannot connect to an agent.
Agents are not like services.
Your sockets requirement sounds like you will run into the same problem presented by this question: Windows Phone 7 (Mango) App gets disconnected when put in background?
PeriodTask is only executed every 30 minutes or so and thus cannot maintain a socket connection. You might want to look into running under the lock screen, as per Matt's answer, or perhaps ResourceIntensiveTask which can run for as long as you want for 10 minutes but only while the phone is connected to power and the phone has > 90% battery.
There is no API to communicate between the two but applications and their tasks share isolated storage, including databases.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
The company I work with currently has 10 windows boxes running various in house scripts, however occasionally one goes down and no one notices for periods of up to 24 hours because the data that is manufactured is only gathered on weekly intervals. Does anyone know of a management system that will notify when a box goes down and possibly shoot uptime and response statistics back to a web management system on a linux box?
There are many.
I use Nagios for monitoring Windows and Linux servers. You might also look into Zenoss. Both are open source.
http://www.pingdom.com/ is simple to use and you get a 30 day trial - 9.95 a month gets you a lot if you decide to sign on. have it for all my apps
I would have a bash script call ping on the machines and email me (or whomever is responsible) when a box goes down.
I've seen IPMonitor in use, and it is a very good tool (but expensive). Nagios is a free alternative, and it's supposed to be quite good, but I've never used it myself.
I know nmap has a way of showing you the machine's uptime when you use the OS fingerprinting option.