Last change
on this file since 10177 was
9007,
checked in by Henrik Bettermann, 12 years ago
|
Extend import file repair script.
Add shell script for downloading export files.
|
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.