File: experiment-dl.sh

package info (click to toggle)
aghermann 1.1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 3,156 kB
  • sloc: cpp: 27,967; makefile: 495; xml: 20; sh: 18; ansic: 9
file content (20 lines) | stat: -rwxr-xr-x 387 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
set -e
URL="http://johnhommer.com/academic/code/aghermann/Experiment.tar.bz2"
TARBALL=Experiment.tar.bz2
echo "
Now downloading sample data.
Press Ctrl+C to interrupt.
"
function kill_wget
{
    kill $!
}
trap kill_wget SIGTERM SIGINT
wget -c $URL &
wait %1

tar xjf $TARBALL
rm -f $TARBALL

echo "Sample data set downloaded and unpacked"
read -p "Press <Enter> to close this window..."