Changeset 14780 for main


Ignore:
Timestamp:
8 Aug 2017, 06:05:55 (7 years ago)
Author:
Henrik Bettermann
Message:

Update script samble.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/docs/source/userdocs/datacenter/export.rst

    r13949 r14780  
    328328  wget --save-cookies cookies.txt --keep-session-cookies --post-data "form.login=$1&form.password=$2" https://my-kofa-site/login
    329329
     330  counter=0
     331
    330332  while read variable
    331333  do
    332      echo https://my-kofa-site/students/$variable/passport.jpg
     334     counter=$((counter+1))
    333335     wget --load-cookies cookies.txt --output-document $variable.jpg https://my-kofa-site/students/$variable/passport.jpg
     336     if [[ "$counter" -gt 1000 ]]; then
     337        wget --save-cookies cookies.txt --keep-session-cookies --post-data "form.login=$1&form.password=$2" https://my-kofa-site/login
     338        counter=0
     339     fi
    334340  done < $3
    335 
    336 
Note: See TracChangeset for help on using the changeset viewer.