dewomser authored on31/01/2017 12:30:51
Showing2 changed files

... ...
@@ -1,2 +1,4 @@
1 1
 # XML-2-png
2 2
 Get ISS-Data for your City as XML from NASA ; transform to png-Image. A Bash-script  
3
+Example :
4
+https://www.untergang.de/index.php/linux-blog/50-grafik-aus-xml-datei.html
... ...
@@ -49,21 +49,27 @@ HOST='domain.de'
49 49
 USER='user'
50 50
 PASSWD='secret'
51 51
 FILE='iss-daten.png'
52
-REMOTEPATH='/joomla/images/XML2png'
52
+REMOTEPATH='/gagaga/images/XML2png'
53
+
54
+#ftp upload
55
+#ftp -n -p  $HOST <<END_SCRIPT
56
+# quote USER $USER
57
+# quote PASS $PASSWD
58
+#binary
59
+#cd $REMOTEPATH
60
+#put $FILE
61
+#bye
62
+#quit
63
+#END_SCRIPT
64
+
65
+#copy
66
+cp iss-daten.png /var/www/html/gagaga/images/autogenerated
67
+
53 68
 
54
-ftp -n -p  $HOST <<END_SCRIPT
55
-quote USER $USER
56
-quote PASS $PASSWD
57
-binary
58
-cd $REMOTEPATH
59
-put $FILE
60
-bye
61
-quit
62
-END_SCRIPT
63
-#exit 0
64 69
 
65 70
 #twittern
66 71
 /usr/bin/perl /home/user/bin/ttytter.pl -status="Der nächste sichtbare ISS Überflug in Worms ist am: 
67 72
 http://www.domain.de/home/xml2png.html"
68 73
 
74
+#ftp-upload needs exit
69 75
 exit