Hi again all,
I have three or four very small programs running on my linux web server - I executed them like this:
[tt]./app_name.out&[/tt]
My query is, occassionally, the programs stop running for no apparent reason. They all stop at the same time so it can't be anything to do with the code (ie. memory faults or whatever) because they are completely separate programs. They are also very small and use little memory.
Sometimes they can run for several days without a hiccup, other times they'll run for less than an hour. It's not the web server crashing that's causing it either.
Does anybody have any idea what can be causing it and a possible cure??
Also, is there a better/safer way of executing my programs in the background than using the ampersand '&' after the program name?? Is there any way I can get the programs to automatically restart if they stop for some reason??
Thanks in advance!
[sup]programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.[/sup]
I have three or four very small programs running on my linux web server - I executed them like this:
[tt]./app_name.out&[/tt]
My query is, occassionally, the programs stop running for no apparent reason. They all stop at the same time so it can't be anything to do with the code (ie. memory faults or whatever) because they are completely separate programs. They are also very small and use little memory.
Sometimes they can run for several days without a hiccup, other times they'll run for less than an hour. It's not the web server crashing that's causing it either.
Does anybody have any idea what can be causing it and a possible cure??
Also, is there a better/safer way of executing my programs in the background than using the ampersand '&' after the program name?? Is there any way I can get the programs to automatically restart if they stop for some reason??
Thanks in advance!
[sup]programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.[/sup]