I know it is a little confusing based on the subject, but here is what I am having problem with.
I have a script that runs on the network and looks into different hostnames based on a txtfile I have, but the problem is that once in a while there is a hostname I get stuck with(is mostly always a different one) which could be caused because it is off or some other reason.
What I would like to know if there is some kind of feature or command I can integrate with my script, so that if the operation into looking into that hostname has taken longer than 5 minutes it would go to the next line(in the text file of hostnames).
Thanks.
I have a script that runs on the network and looks into different hostnames based on a txtfile I have, but the problem is that once in a while there is a hostname I get stuck with(is mostly always a different one) which could be caused because it is off or some other reason.
What I would like to know if there is some kind of feature or command I can integrate with my script, so that if the operation into looking into that hostname has taken longer than 5 minutes it would go to the next line(in the text file of hostnames).
Thanks.