%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/309157/root/home/waritko/import-presta/import/
Upload File :
Create Path :
Current File : //proc/309157/root/home/waritko/import-presta/import/euromedia.sh

#!/bin/bash
set -x
cd /home/ludek/import-prestashop/import/

datSuff=`date +%Y-%m-%d_%H%M`

tstamp=`cat euromedia_timestamp`
tokCat=`curl -D headers.txt "https://vo.knizniweb.cz/b2bGate?login=367443&password=mon*&synctype=T&timestamp=${tstamp}"`
tokAnot=`curl -D headers.txt "https://vo.knizniweb.cz/b2bGate?login=367443&password=mon*&synctype=A"`
tokAvail=`curl -D headers.txt "https://vo.knizniweb.cz/b2bGate?login=367443&password=mon*&synctype=D"`
#tokAvail=`curl -D headers.txt "https://vo.knizniweb.cz/b2bGate?login=367443&password=mon*&synctype=D"`

rm tituly.*
rm anotace.*
rm dostupnost.*

sleep 60;

wget -S "https://vo.knizniweb.cz/b2bGate?login=367443&password=mon*&token=${tokCat}" -O tituly.zip --progress=dot
wget -S "https://vo.knizniweb.cz/b2bGate?login=367443&password=mon*&token=${tokAvail}" -O dostupnost.zip --progress=dot
wget -S "https://vo.knizniweb.cz/b2bGate?login=367443&password=mon*&token=${tokAnot}" -O anotace.zip --progress=dot

7z x tituly.zip
7z x anotace.zip
7z x dostupnost.zip

cp euromedia_timestamp euromedia_timestamp.${datSuff}

Zerion Mini Shell 1.0