I am writing a script and would like to know how to ask one of the teams to exit in a few seconds. For example, let's assume that my script executes two application commands.
#!/bin/bash for i in 'cat servers' do <command 1> $i >> Output_file
These commands are designed to verify consistency & communication with the application. I want to know how I can make sure that the 1 & 2 command runs in just a few seconds, and if there is no response from a specific host, go to the next command.
source share