I am new to scripting and have been tasked with the following:-
Using Boune shell, write a program which will loop periodically untill told to do otherwise.
The script must periodically check if a process or processes have died and restart it. If the process fails to start after 3 attempts due to it core dumping the program should exit to allow for manual investigation.
I would like this script to be called from within anouther start script, which may not have finished executing itself
p.s
Can someone recommend some good bourne shell scripting books which would aid in me learning . I really do need to get to grips with this urgently.
Thanks in advance
Using Boune shell, write a program which will loop periodically untill told to do otherwise.
The script must periodically check if a process or processes have died and restart it. If the process fails to start after 3 attempts due to it core dumping the program should exit to allow for manual investigation.
I would like this script to be called from within anouther start script, which may not have finished executing itself
p.s
Can someone recommend some good bourne shell scripting books which would aid in me learning . I really do need to get to grips with this urgently.
Thanks in advance