forked from mhw32/derm-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
29 lines (23 loc) · 1008 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
# output file
FILE=./download.log
# url to retrieve
TRAIN_IMG_URL=https://www.dropbox.com/s/h5yora9j0onglw6/train.zip?dl=0
TRAIN_EMB_URL=https://www.dropbox.com/s/wnqdznmlhkybfbo/train_emb.zip?dl=0
TEST_IMG_URL=https://www.dropbox.com/s/c94io61nmldcgv8/test.zip?dl=0
TEST_EMB_URL=https://www.dropbox.com/s/l0n37n0ryy0o4ca/test_emb.zip?dl=0
# write header information to the log file
start_date=`date`
echo "START-------------------------------------------------" >> $FILE
echo "" >> $FILE
# retrieve the web page using curl. time the process with the time command.
time (curl --connect-timeout 1000 $TRAIN_IMG_URL) >> $FILE 2>
time (curl --connect-timeout 1000 $TRAIN_EMB_URL) >> $FILE 2>
time (curl --connect-timeout 1000 $TEST_IMG_URL) >> $FILE 2>
time (curl --connect-timeout 1000 $TEST_EMB_URL) >> $FILE 2>
# write additional footer information to the log file
echo "" >> $FILE
end_date=`date`
echo "STARTTIME: $start_date" >> $FILE
echo "END TIME: $end_date" >> $FILE
echo "" >> $FILE