Originally Posted by rajaniyer123
Can anyone please provide me the script which will send alert in case the command will hang. Foe example "df -h" hangs then it will send email regarding the same to recipient.
With all due respect but this doesn't make sense as 'df -h' isn't the type of command that commonly hangs.
If does then it's probably due problems you already suspect or know.
if that's the case you should fix those first.