1 gcc -static zCompute.c
2
3 seq 201 | echo 0 > toVMs/vDataFileToVMs
4 cp -f a.out toVMs/
5
6
7 ./genAll.cmd 201
8 #seq 2| sed 's/^/000/g' | sed 's/.*\(...\)$/\1/g' | xargs -i bash -c "echo {}: ; echo \"ifconfig | grep addr\" | socat - TCP:127.0.0.1:5{}"
9 ## ./zsendFileToAll.cmd 2
10
11
12 #seq 2| sed 's/^/000/g' | sed 's/.*\(...\)$/\1/g' | xargs -i bash -c "echo {}: ; echo \"chmod +x a.out \" | socat - TCP:127.0.0.1:5{}"
13 #seq 2| sed 's/^/000/g' | sed 's/.*\(...\)$/\1/g' | xargs -i bash -c "echo {}: ; echo \"ls -l \" | socat - TCP:127.0.0.1:5{}"
14 #seq 2| sed 's/^/000/g' | sed 's/.*\(...\)$/\1/g' | xargs -i bash -c "echo {}: ; echo \"./a.out 2 \" | socat - TCP:127.0.0.1:5{}"
15 seq 201| sed 's/^/000/g' | sed 's/.*\(...\)$/\1/g' | xargs -i bash -c "echo {}: ; echo \"/mnt/a.out {} \" | socat - TCP:127.0.0.1:5{}" | tee resultOnce
16 cat resultOnce | grep -v : > toVMs/vDataFileToVMs
网友评论