Created
January 8, 2019 09:31
-
-
Save x22x22/7d2a4083423a3cd8492a778c4dbf0cdf to your computer and use it in GitHub Desktop.
测试大文件并发下载
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for ovafile in $(find ./ -name j.ova) | |
do | |
md5sum ${ovafile} | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for variable in {0..20} | |
do | |
tmpdir=$(mktemp -d test_loader_download-XXXXXXXXXX) | |
nohup curl http://xxx.xxx.xxx.xxx:8089/s/cd/files/upload/j.ova -o /tmp/test-loader/${tmpdir}/j.ova >> /tmp/test-loader/${tmpdir}/output.log 2>&1 & | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment