Autor Beitrag
msickel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64

WinXP Pro
Delphi 2 Pro, Delphi 4 Pro, Delphi 7 Pers, Delphi 2005 Pers, Delphi 2005 Pro
BeitragVerfasst: So 06.02.05 18:38 
kann man diesen Source irgendwie in Delphi konvertieren ?

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
#!/bin/bash

APOD_DIR=/home/mpbailey/apod_images

if [ "$1" = "" ]; then
    date=$(date +'%y%m%d')
else
    date=$1
fi

img=$(curl --silent http://antwrp.gsfc.nasa.gov/apod/ap$date.html \ 
    | grep 'a href=\"image' \
    | sed "s/^.*\"\(image\/[^\"]*\)\".*$/http:\/\/antwrp.gsfc.nasa.gov\/apod\//")
dest=$APOD_DIR/apod_$date.$(echo $img | sed "s/.*\.\(.*\)$//")
curl --silent $img > $dest
gconftool-2 -t string -s /desktop/gnome/background/picture_filename $dest


wäre nett wenn mir jemand unter die Arme greifen kann!

mfg
Martin

Moderiert von user profile iconraziel: Code-Tags hinzugefügt
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: So 06.02.05 18:43 
klar kann man das konvertieren. du musst nur für jeden aufruf eine entsprechende delphi-prozedur finden oder selber machen...
msickel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64

WinXP Pro
Delphi 2 Pro, Delphi 4 Pro, Delphi 7 Pers, Delphi 2005 Pers, Delphi 2005 Pro
BeitragVerfasst: Di 08.02.05 15:50 
oki, habs am Rosenmontag ausgetüfftelt und geht!

:-)

Gruß Martin
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Di 08.02.05 16:00 
kannste mal posten ? wäre sicher hilfreich für leute die ihre perl- oder bashscripts konvertieren wollen.
msickel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64

WinXP Pro
Delphi 2 Pro, Delphi 4 Pro, Delphi 7 Pers, Delphi 2005 Pers, Delphi 2005 Pro
BeitragVerfasst: Sa 19.02.05 18:42 
werde ich machen, sobald der Code etwas übersichtlicher ist :-)

Martin