C++ and PIDs
I'm going to right a program (hopefully) for my friend who runs a NeverWinter Nights server that crashes every once and a while.
I was thinking I can have a program running that records the PID of the server when it runs, and if it's absent (it crashes) it starts it again.
I just need to know where to look for that sort of programming. I need to learn how to write code that interacts w/ the operating system.
Can anyone point out a site that would have tuts?
It might be easier to just write a wrapper program:
Then you can just run this wrapper program to start the server and it should constantly restart it as long as it crashes and doesn't exit normally.
|All times are GMT -5. The time now is 11:48 PM.|