Eu questions in Linux
Greetings All,
I am writing a server program for a linux environment and am having a
few troubles I was hoping someone could help with..
I want to code a program that will check to see if my server program is
running and if not, start it back up again. I know the theory (or at
least have
an idea) yet I am not quite sure what the commands would be to do this.
My server program runs off of port 23 so I was assuming that all I need
to do is check the port to see if it is bound and if not, restart the
server
program. Anyone out there know if I am thinking in the right
direction???
Also, I am running into several segmentation error messages that do not
leave any sort of error record, I cannot reproduce them when I run the
server
program with the exu command yet they appear quite frequently when I use
the
nohup command...
(nohup exu dada.ex arg1 > /dev/null &)
(Thank you Irv and Pete) :)
Any help would of course be helpful... Thanks!
|
Not Categorized, Please Help
|
|