LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Script/Command Require in case command hangs (https://www.linuxquestions.org/questions/linux-general-1/script-command-require-in-case-command-hangs-937941/)

rajaniyer123 04-03-2012 01:43 PM

Script/Command Require in case command hangs
 
Hi,

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.


Thanks in advance.

Rajan

unSpawn 04-03-2012 06:45 PM

Quote:

Originally Posted by rajaniyer123 (Post 4643861)
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.


All times are GMT -5. The time now is 05:36 AM.