Last active
February 3, 2016 09:54
-
-
Save atarkowska/cb469d4bac54d59632c0 to your computer and use it in GitHub Desktop.
Test download
This file contains 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 | |
# | |
set -u | |
set -e | |
set -x | |
OMERO_HOST='https://cowfish.openmicroscopy.org/merge' | |
DIRECTORY='/data/files' | |
if [ -d "$DIRECTORY" ]; then | |
rm -rf $DIRECTORY | |
fi | |
mkdir $DIRECTORY | |
WGET_BIN='--no-check-certificate --limit-rate=5M' | |
wget $WGET_BIN $OMERO_HOST/webgateway/archived_files/download/30652/ -O $DIRECTORY/30652.dv & | |
wget $WGET_BIN $OMERO_HOST/webgateway/archived_files/download/30652/ -O $DIRECTORY/30653.dv & | |
wget $WGET_BIN $OMERO_HOST/webgateway/archived_files/download/30656/ -O $DIRECTORY/30654.dv # never put & in last download |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment