source:
main/waeup.kofa/trunk/tools/download_exports.sh
@
9866
Last change on this file since 9866 was 9007, checked in by , 12 years ago | |
---|---|
File size: 488 bytes |
Line | |
---|---|
1 | #!/bin/sh |
2 | |
3 | ## We expect at least three arguments... |
4 | if [ $# -ne 3 ]; then |
5 | echo "Usage: $0 [user name] [password] [exporter]" |
6 | exit |
7 | fi |
8 | |
9 | wget --save-cookies cookies.txt --keep-session-cookies --post-data "form.login=$1&form.password=$2" https://uniben-kofa.waeup.org/login |
10 | wget --load-cookies cookies.txt --output-document $3.csv https://uniben-kofa.waeup.org/datacenter/export.csv?exporter=$3 |
11 | tar -czf Kofa$3.tar.gz $3.csv |
12 | rm $3.csv |
13 | mv Kofa$3.tar.gz /home/ftp/uniben |
Note: See TracBrowser for help on using the repository browser.