Skip to content

Instantly share code, notes, and snippets.

@x22x22
Created January 8, 2019 09:31
Show Gist options
  • Save x22x22/7d2a4083423a3cd8492a778c4dbf0cdf to your computer and use it in GitHub Desktop.
Save x22x22/7d2a4083423a3cd8492a778c4dbf0cdf to your computer and use it in GitHub Desktop.
测试大文件并发下载
#!/bin/bash
for ovafile in $(find ./ -name j.ova)
do
md5sum ${ovafile}
done
#!/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