Run into a problem with my script so I need some help
Anyway I wrote a script that reads ip addresses and host name from file and checks all hosts, one by one, with "iperf" command. It all works fine until one of the hosts is temporarily unreachable. If I do it from command line:
iperf -c 10.210.7.1 -r -y c
I get ...
connect failed: Connection timed out
and it exits..
But in script
/usr/bin/iperf -c 10.210.7.1 -r -y c
I get "connect failed: Connection timed out" bit it hangs, it continues when killed with "ctrl+c" or from another session for example. Whole script is larger offcourse, but problem comes down to this part
If someone had similar problem I would appreciate some help...