parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Testing timeout of httpd by nc command with parallel


From: Keigo Tanaka
Subject: Testing timeout of httpd by nc command with parallel
Date: Thu, 20 Oct 2011 18:36:01 +0900

Hi,

I am testing the timeout values of multiple web servers.

Here, the basic way to test one web server is like this:
$ date; nc 192.168.0.2 80; date;
Thu Oct 20 07:34:00 UTC 2011
Thu Oct 20 07:35:20 UTC 2011

* In this case, the timeout value is 80 seconds.

I've changed this test into traditinal way of shell script, and of course it works well.(But long waiting time.)

for i in 192.168.0.2 192.168.0.3 192.168.0.4
do
 echo $i ; date; nc $i 80; date;
done

Next, I tried following but it does not work properly.
$ parallel -j 10000% "echo {}; date; nc {} 80; date;" ::: 192.168.0.2 192.168.0.3 192.168.0.4

Is it impossible to use nc with paralell? Do you know how to make it work well or any workaround?

Best regards,
Keigo

reply via email to

[Prev in Thread] Current Thread [Next in Thread]