How the first script should notify in case there is no response from second

Hi Experts,

I am trying to write a ksh script that it should notify in case there is no response from the other script. I mean to say that I got a.sh and b.sh
the execution of b.sh depends on a.sh, so if there is no response from a.sh,
b.sh should notify me about the same.

Thanks in Advance

Could the b.sh do some kind of
>ps -ef | grep "a.sh"
to determine if the a.sh is running?

Hi, Joyeg,

how to write the logic if the execution of a.sh is successful or not in b.sh?
a.sh contains some processes and if these processes goes in hang state it is obvious that a.sh would would not get executed, so In b.sh i want such a logic that theexit status of a.sh should be evaluated and the user should be notified by an email.

Thank You

Hi, Joyeg,

how to write the logic if the execution of a.sh is successful or not in b.sh?
a.sh contains some processes and if these processes goes in hang state it is obvious that a.sh would would not get executed, so In b.sh i want such a logic that theexit status of a.sh should be evaluated and the user should be notified by an email.

Thank You

Hi, Joyeg,

how to write the logic if the execution of a.sh is successful or not in b.sh?
a.sh contains some processes and if these processes goes in hang state it is obvious that a.sh would would not get executed, so In b.sh i want such a logic that theexit status of a.sh should be evaluated and the user should be notified by an email.

Thank You