myth88
Haudegen
Niemand der dazu noch was weiss?
Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion erfordert derzeit den Zugriff auf die Seite über den integrierten Safari-Browser.
#!/bin/bash
# this is a small script to download the last aMule tarball in tar.bz2 format,
# unpack it, pack it as 7z and upload it to my host...
cd /mnt/storage/longtemp/emule_mods/amule
wget http://amule.sourceforge.net/tarballs/tarballs.xml -O /mnt/storage/longtemp/emule_mods/amule/tarballs.xml
amulerev=`cat /mnt/storage/longtemp/emule_mods/amule/tarballs.xml | grep -o youngest=\'....\' | grep -o [0-9][0-9][0-9][0-9]`
localver=`ls /mnt/storage/longtemp/emule_mods/amule/ | grep -o [0-9][0-9][0-9][0-9] | tail -1`
if [ $amulerev -gt $localver ]; then
wget http://amule.sourceforge.net/tarballs/aMule-SVN-r$amulerev.tar.bz2 -O /mnt/storage/longtemp/emule_mods/amule/aMule-SVN-r$amulerev.tar.bz2
tar xvf aMule-SVN-r$amulerev.tar.bz2
7z a aMule-SVN-r$amulerev.7z /mnt/storage/longtemp/emule_mods/amule/aMule-SVN-r$amulerev/
rm -R /mnt/storage/longtemp/emule_mods/amule/aMule-SVN-r$amulerev/
HOST="meinhost"
USERNAME="meinuser"
PASSWD="meinpass"
FILE="/mnt/storage/longtemp/emule_mods/amule/aMule-SVN-r$amulerev.7z"
ftp -vni ${HOST}
${USERNAME}
${PASSWD}
put ${FILE} /www/tarballs/aMule-SVN-r$amulerev.7z
close
quit
else
echo "No new tarball found!"
fi
ftp -in <<-EOF
open $HOST
# etc.
EOF
#!/bin/bash
# this is a small script to download the last aMule tarball in tar.bz2 format,
# unpack it, pack it as 7z and upload it to my host...
cd /mnt/storage/longtemp/emule_mods/amule
wget http://amule.sourceforge.net/tarballs/tarballs.xml -O /mnt/storage/longtemp/emule_mods/amule/tarballs.xml
amulerev=`cat /mnt/storage/longtemp/emule_mods/amule/tarballs.xml | grep -o youngest=\'....\' | grep -o [0-9][0-9][0-9][0-9]`
localver=`ls /mnt/storage/longtemp/emule_mods/amule/ | grep -o [0-9][0-9][0-9][0-9] | tail -1`
if [ $amulerev -gt $localver ]; then
wget http://amule.sourceforge.net/tarballs/aMule-SVN-r$amulerev.tar.bz2 -O /mnt/storage/longtemp/emule_mods/amule/aMule-SVN-r$amulerev.tar.bz2
tar xvf aMule-SVN-r$amulerev.tar.bz2
7z a aMule-SVN-r$amulerev.7z /mnt/storage/longtemp/emule_mods/amule/aMule-SVN-r$amulerev/
rm -R /mnt/storage/longtemp/emule_mods/amule/aMule-SVN-r$amulerev/
HOST="meinhost"
USERNAME="meinuser"
PASSWD="meinpass"
FILE="/mnt/storage/longtemp/emule_mods/amule/aMule-SVN-r$amulerev.7z"
ftp <<EOF
open ${HOST}
quote USER ${USERNAME}
quote PASS ${PASSWD}
put ${FILE} /www/tarballs/aMule-SVN-r$amulerev.7z
close
quit
EOF
else
echo "No new tarball found!"
fi
+ ftp
Password:Name (meinhost:meinPC-Username[?]): {*1}
Login authentication failed
Login failed.
Login authentication failed
You aren't logged in
ftp: bind: Address already in use
ftp -din <<EOF
open $HOST
user $USERNAME $PASSWD
bin
put $FILE /www/tarballs/aMule-SVN-r${amulerev}.7z
close
quit
EOF
+ HOST=meinhost
+ USERNAME=meinuser
+ PASSWD=meinpass
+ FILE=/mnt/storage/longtemp/emule_mods/amule/aMule-SVN-r9682.7z
+ ftp -din
ftp: setsockopt: Bad file descriptor
---> SYST
---> USER meinuser
---> PASS XXXX
---> SYST
---> TYPE I
ftp: setsockopt (ignored): Permission denied
---> PORT 192,168,0,15,188,35
---> STOR /www/tarballs/aMule-SVN-r9682.7z
---> QUIT
dude@dude-desktop:~$ cat cron.txt
0 0,3,6,9,12,15,18,21 * * * sh /mnt/storage/coding/xMule/amule/tar.bz2.-.7z.sh > /home/dude/cronlogs/tar_7z_ftp.log
tar xvf aMule-SVN-r$amulerev.tar.bz2
tar xjf
tar xvjf