Loop Command ด้วย seq

Post Reply
brid.surapol
Posts: 168
Joined: 11 Apr 2013, 11:43

Loop Command ด้วย seq

Post by brid.surapol »

Code: Select all

 seq 100000 | xargs -I{} -- sh -c 'command1; command2; command3; . . .'

Example:

Code: Select all

seq 100000 | xargs -I{} -- sh -c 'echo "Loop {}"; ab -n 100000 -c 1000 http://172.16.22.110/'
Post Reply

Return to “การใช้งาน Linux”