europe.osm.pbf File per täglichem Diff-Abgleich aktuell halten

Er weigert sich ja erfolg[reich]los, seine Environment-Variablen und besonders die beiden Pfade offen zu legen. Da kann ich ihm halt nicht helfen. Bin mir zwar nicht sicher, das das Problem da liegt, aber ohne die Info geht garnix.

gruss
walter

Hallo
Ich weigere mich nicht Verstehe nur nicht welche Pfade/ Variablen? :roll_eyes:

Das ganze Programm liegt alles in Dokumente/mkgmap

die Scripte in usr/bin

Bis jetzt gehen alle ausser osmupdate?

Wie kann ich was mitteilen ?

crontab - l

bringt keine Ausgabe ?

Auch nach 2 großen Updates ca 60 MB von Ubutu 14.04 geht es noch nicht!
Beste Grüße

Bitte öffne einmal ein Terminal und gib dort den Befehl “printenv” ein. Kopiere dann das Ergebnis hierher und lösche sensible Angaben heraus (z.B. Benutzername). Das ist die Information, die sich wambacher wünscht.

  1. Info:
  1. Info:

3.Versuch:

4.Versuch:

  1. Versuch:
  1. Versuch:
  1. Versuch:
  1. Versuch:

8 (ACHT) mal haben wir dich gebeten, die Pfade zu überprüfen - alles im selben Thread, nämlich diesem!

Ich gebe endgültig auf.

-w-

Hallo

Ja danke der Ausführung ,

Das ist das Script jetzt in usr/bin :

#!/bin/bash
#
export PATH=/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11
#
set -x
#
env > /tmp/sh_env.txt
#
cd ~/Dokumente/mkgmap
osmupdate -v=3 deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly

Das gibt das Terminal aus (bei start über geplante Aufgaben)

+ env
+ cd /home/marko/Dokumente/mkgmap
+ osmupdate -v=3 deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly
osmupdate Parameter: deu-old.osm.pbf
osmupdate Parameter: --hour
osmupdate Parameter: --day
osmupdate Parameter: --keep-tempfiles
osmupdate Parameter: deu.osm.pbf
osmupdate Parameter: -B=deu.poly
osmupdate: Executing shell command:
./osmconvert --out-timestamp "deu-old.osm.pbf" 2>&1
osmupdate: Got shell command result:
2014-04-15T04:00:00Z

osmupdate: timestamp of deu-old.osm.pbf: 2014-04-15T04:00:00Z
osmupdate: Executing shell command:
wget -q http://planet.openstreetmap.org/replication/hour/state.txt -O - 2>&1
osmupdate: Got shell command result:

osmupdate: newest hourly timestamp: (no timestamp)
osmupdate Error: Could not get the newest hourly timestamp from the Internet.
Press ENTER to continue and close this window.

Manuell im Terminal :

cd ~/Dokumente/mkgmap
env > /tmp/sh_env.txt
export PATH=/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11
osmupdate -v=3 deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly

im Terminal kommt das ?

marko@marko-desktop:~$ cd ~/Dokumente/mkgmap
marko@marko-desktop:~/Dokumente/mkgmap$ env > /tmp/sh_env.txt
marko@marko-desktop:~/Dokumente/mkgmap$ export PATH=/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11
marko@marko-desktop:~/Dokumente/mkgmap$ osmupdate -v=3 deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly
osmupdate Parameter: deu-old.osm.pbf
osmupdate Parameter: --hour
osmupdate Parameter: --day
osmupdate Parameter: --keep-tempfiles
osmupdate Parameter: deu.osm.pbf
osmupdate Parameter: -B=deu.poly
osmupdate: Executing shell command:
./osmconvert --out-timestamp "deu-old.osm.pbf" 2>&1
osmupdate: Got shell command result:
2014-04-15T04:00:00Z

osmupdate: timestamp of deu-old.osm.pbf: 2014-04-15T04:00:00Z
osmupdate: Executing shell command:
wget -q http://planet.openstreetmap.org/replication/hour/state.txt -O - 2>&1
osmupdate: Got shell command result:
#Thu Apr 24 18:02:08 UTC 2014
sequenceNumber=14147
timestamp=2014-04-24T18\:00\:00Z

osmupdate: newest hourly timestamp: 2014-04-24T18:00:00Z
osmupdate: Executing shell command:
wget -q http://planet.openstreetmap.org/replication/day/state.txt -O - 2>&1
osmupdate: Got shell command result:
#Thu Apr 24 00:06:16 UTC 2014
sequenceNumber=589
timestamp=2014-04-24T00\:00\:00Z

osmupdate: newest daily timestamp: 2014-04-24T00:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/147.osc.gz -O "osmupdate_temp/temp.h000014147.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14147: already in cache
osmupdate: hourly changefile 14146: 2014-04-24T17:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/146.osc.gz -O "osmupdate_temp/temp.h000014146.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14146: already in cache
osmupdate: hourly changefile 14145: 2014-04-24T16:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/145.osc.gz -O "osmupdate_temp/temp.h000014145.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14145: already in cache
osmupdate: hourly changefile 14144: 2014-04-24T15:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/144.osc.gz -O "osmupdate_temp/temp.h000014144.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14144: already in cache
osmupdate: hourly changefile 14143: 2014-04-24T14:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/143.osc.gz -O "osmupdate_temp/temp.h000014143.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14143: already in cache
osmupdate: hourly changefile 14142: 2014-04-24T13:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/142.osc.gz -O "osmupdate_temp/temp.h000014142.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14142: already in cache
osmupdate: hourly changefile 14141: 2014-04-24T12:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/141.osc.gz -O "osmupdate_temp/temp.h000014141.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14141: already in cache
osmupdate: Merging changefiles.
osmupdate: Executing shell command:
./osmconvert --merge-versions  "osmupdate_temp/temp.h000014141.osc.gz" "osmupdate_temp/temp.h000014142.osc.gz" "osmupdate_temp/temp.h000014143.osc.gz" "osmupdate_temp/temp.h000014144.osc.gz" "osmupdate_temp/temp.h000014145.osc.gz" "osmupdate_temp/temp.h000014146.osc.gz" "osmupdate_temp/temp.h000014147.osc.gz" --timestamp=2014-04-24T18:00:00Z --out-o5c >"osmupdate_temp/temp.9"
osmupdate: Got shell command result:

osmupdate: hourly changefile 14140: 2014-04-24T11:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/140.osc.gz -O "osmupdate_temp/temp.h000014140.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14140: already in cache
osmupdate: hourly changefile 14139: 2014-04-24T10:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/139.osc.gz -O "osmupdate_temp/temp.h000014139.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14139: already in cache
osmupdate: hourly changefile 14138: 2014-04-24T09:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/138.osc.gz -O "osmupdate_temp/temp.h000014138.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14138: already in cache
osmupdate: hourly changefile 14137: 2014-04-24T08:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/137.osc.gz -O "osmupdate_temp/temp.h000014137.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14137: already in cache
osmupdate: hourly changefile 14136: 2014-04-24T07:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/136.osc.gz -O "osmupdate_temp/temp.h000014136.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14136: already in cache
osmupdate: hourly changefile 14135: 2014-04-24T06:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/135.osc.gz -O "osmupdate_temp/temp.h000014135.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14135: already in cache
osmupdate: hourly changefile 14134: 2014-04-24T05:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/134.osc.gz -O "osmupdate_temp/temp.h000014134.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14134: already in cache
osmupdate: Merging changefiles.
osmupdate: Executing shell command:
./osmconvert --merge-versions  "osmupdate_temp/temp.h000014134.osc.gz" "osmupdate_temp/temp.h000014135.osc.gz" "osmupdate_temp/temp.h000014136.osc.gz" "osmupdate_temp/temp.h000014137.osc.gz" "osmupdate_temp/temp.h000014138.osc.gz" "osmupdate_temp/temp.h000014139.osc.gz" "osmupdate_temp/temp.h000014140.osc.gz" "osmupdate_temp/temp.8" --timestamp=2014-04-24T18:00:00Z --out-o5c >"osmupdate_temp/temp.9"
osmupdate: Got shell command result:

osmupdate: hourly changefile 14133: 2014-04-24T04:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/133.osc.gz -O "osmupdate_temp/temp.h000014133.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14133: already in cache
osmupdate: hourly changefile 14132: 2014-04-24T03:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/132.osc.gz -O "osmupdate_temp/temp.h000014132.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14132: already in cache
osmupdate: hourly changefile 14131: 2014-04-24T02:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/131.osc.gz -O "osmupdate_temp/temp.h000014131.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14131: already in cache
osmupdate: hourly changefile 14130: 2014-04-24T01:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/130.osc.gz -O "osmupdate_temp/temp.h000014130.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14130: already in cache
osmupdate: hourly changefile 14129: 2014-04-24T00:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/589.osc.gz -O "osmupdate_temp/temp.d000000589.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: daily changefile 589: already in cache
osmupdate: daily changefile 588: 2014-04-23T00:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/588.osc.gz -O "osmupdate_temp/temp.d000000588.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: daily changefile 588: already in cache
osmupdate: daily changefile 587: 2014-04-22T00:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/587.osc.gz -O "osmupdate_temp/temp.d000000587.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: daily changefile 587: already in cache
osmupdate: Merging changefiles.
osmupdate: Executing shell command:
./osmconvert --merge-versions  "osmupdate_temp/temp.d000000587.osc.gz" "osmupdate_temp/temp.d000000588.osc.gz" "osmupdate_temp/temp.d000000589.osc.gz" "osmupdate_temp/temp.h000014130.osc.gz" "osmupdate_temp/temp.h000014131.osc.gz" "osmupdate_temp/temp.h000014132.osc.gz" "osmupdate_temp/temp.h000014133.osc.gz" "osmupdate_temp/temp.8" --timestamp=2014-04-24T18:00:00Z --out-o5c >"osmupdate_temp/temp.9"
osmupdate: Got shell command result:

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/586.state.txt -O "osmupdate_temp/temp.d000000586.txt" 2>&1
osmupdate: Got shell command result:
2014-04-24 20:56:30 URL:http://planet.openstreetmap.org/replication/day/000/000/586.state.txt [82/82] -> "osmupdate_temp/temp.d000000586.txt" [1]

osmupdate: daily changefile 586: 2014-04-21T00:00:00Z
osmupdate: daily changefile 586: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/586.osc.gz -O "osmupdate_temp/temp.d000000586.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-24 20:57:08 URL:http://planet.openstreetmap.org/replication/day/000/000/586.osc.gz [70341714/70341714] -> "osmupdate_temp/temp.d000000586.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/585.state.txt -O "osmupdate_temp/temp.d000000585.txt" 2>&1
osmupdate: Got shell command result:
2014-04-24 20:57:08 URL:http://planet.openstreetmap.org/replication/day/000/000/585.state.txt [82/82] -> "osmupdate_temp/temp.d000000585.txt" [1]

osmupdate: daily changefile 585: 2014-04-20T00:00:00Z
osmupdate: daily changefile 585: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/585.osc.gz -O "osmupdate_temp/temp.d000000585.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-24 20:57:39 URL:http://planet.openstreetmap.org/replication/day/000/000/585.osc.gz [61358436/61358436] -> "osmupdate_temp/temp.d000000585.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/584.state.txt -O "osmupdate_temp/temp.d000000584.txt" 2>&1
osmupdate: Got shell command result:
2014-04-24 20:57:40 URL:http://planet.openstreetmap.org/replication/day/000/000/584.state.txt [82/82] -> "osmupdate_temp/temp.d000000584.txt" [1]

osmupdate: daily changefile 584: 2014-04-19T00:00:00Z
osmupdate: daily changefile 584: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/584.osc.gz -O "osmupdate_temp/temp.d000000584.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-24 20:58:16 URL:http://planet.openstreetmap.org/replication/day/000/000/584.osc.gz [67779183/67779183] -> "osmupdate_temp/temp.d000000584.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/583.state.txt -O "osmupdate_temp/temp.d000000583.txt" 2>&1
osmupdate: Got shell command result:
2014-04-24 20:58:16 URL:http://planet.openstreetmap.org/replication/day/000/000/583.state.txt [82/82] -> "osmupdate_temp/temp.d000000583.txt" [1]

osmupdate: daily changefile 583: 2014-04-18T00:00:00Z
osmupdate: daily changefile 583: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/583.osc.gz -O "osmupdate_temp/temp.d000000583.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-24 20:58:49 URL:http://planet.openstreetmap.org/replication/day/000/000/583.osc.gz [64518630/64518630] -> "osmupdate_temp/temp.d000000583.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/582.state.txt -O "osmupdate_temp/temp.d000000582.txt" 2>&1
osmupdate: Got shell command result:
2014-04-24 20:58:49 URL:http://planet.openstreetmap.org/replication/day/000/000/582.state.txt [82/82] -> "osmupdate_temp/temp.d000000582.txt" [1]

osmupdate: daily changefile 582: 2014-04-17T00:00:00Z
osmupdate: daily changefile 582: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/582.osc.gz -O "osmupdate_temp/temp.d000000582.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-24 20:59:20 URL:http://planet.openstreetmap.org/replication/day/000/000/582.osc.gz [55374783/55374783] -> "osmupdate_temp/temp.d000000582.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/581.state.txt -O "osmupdate_temp/temp.d000000581.txt" 2>&1
osmupdate: Got shell command result:
2014-04-24 20:59:20 URL:http://planet.openstreetmap.org/replication/day/000/000/581.state.txt [82/82] -> "osmupdate_temp/temp.d000000581.txt" [1]

osmupdate: daily changefile 581: 2014-04-16T00:00:00Z
osmupdate: daily changefile 581: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/581.osc.gz -O "osmupdate_temp/temp.d000000581.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-24 20:59:53 URL:http://planet.openstreetmap.org/replication/day/000/000/581.osc.gz [66108677/66108677] -> "osmupdate_temp/temp.d000000581.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/580.state.txt -O "osmupdate_temp/temp.d000000580.txt" 2>&1
osmupdate: Got shell command result:
2014-04-24 20:59:53 URL:http://planet.openstreetmap.org/replication/day/000/000/580.state.txt [82/82] -> "osmupdate_temp/temp.d000000580.txt" [1]


Abgekürzt da läuft was ?

Mit " grep PATH /tmp/*_env.txt manuell läuft auch was. rote worte Phat ?

marko@marko-desktop:~$ cd ~/Dokumente/mkgmap
marko@marko-desktop:~/Dokumente/mkgmap$ env > /tmp/sh_env.txt
marko@marko-desktop:~/Dokumente/mkgmap$ grep PATH /tmp/*_env.txt
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
PATH=/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
COMPIZ_BIN_PATH=/usr/bin/
marko@marko-desktop:~/Dokumente/mkgmap$ export PATH=/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11
marko@marko-desktop:~/Dokumente/mkgmap$ osmupdate -v=3 deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly
osmupdate Parameter: deu-old.osm.pbf
osmupdate Parameter: --hour
osmupdate Parameter: --day
osmupdate Parameter: --keep-tempfiles
osmupdate Parameter: deu.osm.pbf
osmupdate Parameter: -B=deu.poly
osmupdate: Executing shell command:
./osmconvert --out-timestamp "deu-old.osm.pbf" 2>&1
osmupdate: Got shell command result:
2014-04-15T04:00:00Z

osmupdate: timestamp of deu-old.osm.pbf: 2014-04-15T04:00:00Z
osmupdate: Executing shell command:
wget -q http://planet.openstreetmap.org/replication/hour/state.txt -O - 2>&1
osmupdate: Got shell command result:
#Thu Apr 24 19:02:10 UTC 2014
sequenceNumber=14148
timestamp=2014-04-24T19\:00\:00Z

osmupdate: newest hourly timestamp: 2014-04-24T19:00:00Z
osmupdate: Executing shell command:
wget -q http://planet.openstreetmap.org/replication/day/state.txt -O - 2>&1
osmupdate: Got shell command result:
#Thu Apr 24 00:06:16 UTC 2014
sequenceNumber=589
timestamp=2014-04-24T00\:00\:00Z

osmupdate: newest daily timestamp: 2014-04-24T00:00:00Z
osmupdate: hourly changefile 14148: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/148.osc.gz -O "osmupdate_temp/temp.h000014148.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-24 21:04:30 URL:http://planet.openstreetmap.org/replication/hour/000/014/148.osc.gz [5187057/5187057] -> "osmupdate_temp/temp.h000014148.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/147.state.txt -O "osmupdate_temp/temp.h000014147.txt" 2>&1
osmupdate: Got shell command result:
2014-04-24 21:04:30 URL:http://planet.openstreetmap.org/replication/hour/000/014/147.state.txt [84/84] -> "osmupdate_temp/temp.h000014147.txt" [1]

osmupdate: hourly changefile 14147: 2014-04-24T18:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/147.osc.gz -O "osmupdate_temp/temp.h000014147.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14147: already in cache
osmupdate: hourly changefile 14146: 2014-04-24T17:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/146.osc.gz -O "osmupdate_temp/temp.h000014146.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14146: already in cache
osmupdate: hourly changefile 14145: 2014-04-24T16:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/145.osc.gz -O "osmupdate_temp/temp.h000014145.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14145: already in cache
osmupdate: hourly changefile 14144: 2014-04-24T15:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/144.osc.gz -O "osmupdate_temp/temp.h000014144.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14144: already in cache
osmupdate: hourly changefile 14143: 2014-04-24T14:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/143.osc.gz -O "osmupdate_temp/temp.h000014143.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14143: already in cache
osmupdate: hourly changefile 14142: 2014-04-24T13:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/142.osc.gz -O "osmupdate_temp/temp.h000014142.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14142: already in cache
osmupdate: Merging changefiles.
osmupdate: Executing shell command:
./osmconvert --merge-versions  "osmupdate_temp/temp.h000014142.osc.gz" "osmupdate_temp/temp.h000014143.osc.gz" "osmupdate_temp/temp.h000014144.osc.gz" "osmupdate_temp/temp.h000014145.osc.gz" "osmupdate_temp/temp.h000014146.osc.gz" "osmupdate_temp/temp.h000014147.osc.gz" "osmupdate_temp/temp.h000014148.osc.gz" --timestamp=2014-04-24T19:00:00Z --out-o5c >"osmupdate_temp/temp.9"
osmupdate: Got shell command result:

osmupdate: hourly changefile 14141: 2014-04-24T12:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/141.osc.gz -O "osmupdate_temp/temp.h000014141.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14141: already in cache
osmupdate: hourly changefile 14140: 2014-04-24T11:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/140.osc.gz -O "osmupdate_temp/temp.h000014140.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14140: already in cache
osmupdate: hourly changefile 14139: 2014-04-24T10:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/139.osc.gz -O "osmupdate_temp/temp.h000014139.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14139: already in cache
osmupdate: hourly changefile 14138: 2014-04-24T09:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/138.osc.gz -O "osmupdate_temp/temp.h000014138.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14138: already in cache
osmupdate: hourly changefile 14137: 2014-04-24T08:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/137.osc.gz -O "osmupdate_temp/temp.h000014137.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14137: already in cache
osmupdate: hourly changefile 14136: 2014-04-24T07:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/136.osc.gz -O "osmupdate_temp/temp.h000014136.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14136: already in cache
osmupdate: hourly changefile 14135: 2014-04-24T06:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/135.osc.gz -O "osmupdate_temp/temp.h000014135.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14135: already in cache
osmupdate: Merging changefiles.
osmupdate: Executing shell command:
./osmconvert --merge-versions  "osmupdate_temp/temp.h000014135.osc.gz" "osmupdate_temp/temp.h000014136.osc.gz" "osmupdate_temp/temp.h000014137.osc.gz" "osmupdate_temp/temp.h000014138.osc.gz" "osmupdate_temp/temp.h000014139.osc.gz" "osmupdate_temp/temp.h000014140.osc.gz" "osmupdate_temp/temp.h000014141.osc.gz" "osmupdate_temp/temp.8" --timestamp=2014-04-24T19:00:00Z --out-o5c >"osmupdate_temp/temp.9"
osmupdate: Got shell command result:

osmupdate: hourly changefile 14134: 2014-04-24T05:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/134.osc.gz -O "osmupdate_temp/temp.h000014134.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14134: already in cache
osmupdate: hourly changefile 14133: 2014-04-24T04:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/133.osc.gz -O "osmupdate_temp/temp.h000014133.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14133: already in cache
osmupdate: hourly changefile 14132: 2014-04-24T03:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/132.osc.gz -O "osmupdate_temp/temp.h000014132.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14132: already in cache
osmupdate: hourly changefile 14131: 2014-04-24T02:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/131.osc.gz -O "osmupdate_temp/temp.h000014131.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14131: already in cache
osmupdate: hourly changefile 14130: 2014-04-24T01:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/130.osc.gz -O "osmupdate_temp/temp.h000014130.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: hourly changefile 14130: already in cache
osmupdate: hourly changefile 14129: 2014-04-24T00:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/589.osc.gz -O "osmupdate_temp/temp.d000000589.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

osmupdate: daily changefile 589: already in cache
osmupdate: daily changefile 588: 2014-04-23T00:00:00Z
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/588.osc.gz -O "osmupdate_temp/temp.d000000588.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
Wget Command Ok

Abgekürzt

Autostart geht es nicht?

+ env
+ cd /home/marko/Dokumente/mkgmap
+ env
+ grep PATH /tmp/sh_env.txt
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
PATH=/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
COMPIZ_BIN_PATH=/usr/bin/
+ export PATH=/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11
+ PATH=/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11
+ osmupdate -v=3 deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly
osmupdate Parameter: deu-old.osm.pbf
osmupdate Parameter: --hour
osmupdate Parameter: --day
osmupdate Parameter: --keep-tempfiles
osmupdate Parameter: deu.osm.pbf
osmupdate Parameter: -B=deu.poly
osmupdate: Executing shell command:
./osmconvert --out-timestamp "deu-old.osm.pbf" 2>&1
osmupdate: Got shell command result:
2014-04-15T04:00:00Z

osmupdate: timestamp of deu-old.osm.pbf: 2014-04-15T04:00:00Z
osmupdate: Executing shell command:
wget -q http://planet.openstreetmap.org/replication/hour/state.txt -O - 2>&1
osmupdate: Got shell command result:

osmupdate: newest hourly timestamp: (no timestamp)
osmupdate Error: Could not get the newest hourly timestamp from the Internet.
Press ENTER to continue and close this window.

Da kommt nix ?

marko@marko-desktop:~$ env > /tmp/term_env.txt
marko@marko-desktop:~$ 


Danke der Hilfe und Verständnis für mein unwissen (Ich bin nur Anwender?)

Ich hab keine ahnung was da alles läuft ?

Alle anderen Anwendungen gehen mit Geplante Aufgaben einwandfrei? (boundsstart,splitterstart,osmfilterstart,mkgmapstart)

Beste Grüße

Der rote PATH kommt vom grep, er zeigt damit das gesuchte Wort als gefunden an. ist also nicht falsch.

Kleinigkeiten fehlen noch:

bitte am Terminal env > /tmp/term_env.txt benutzen und im Batch (shell) env >/tmp/sh_env.txt

wir brauchen das Environment in zwei verschiedenen Dateien, damit man die vergleichen kann.

Dazu macht man diff /tmp/term_env.txt /tmp/sh_env.txt im Terminalfenster nachdem beide Jobs gelaufen sind.

-w-

nicht wundern, daß die Tips immer leicht unterschiedlich aussehen; man kann das auf verschiedene Arten machen.

Hallo
Heute geht weder noch.
abwarten

Neuer Versuch hier geht was .
Manuell Ergebnis:

osmupdate: Merging changefiles.
osmupdate: Creating output file.
osmupdate: Keeping temporary files.
osmupdate: Completed successfully.
marko@marko-desktop:~/Dokumente/mkgmap$ 

Das was immer nicht geht:

osmupdate Parameter: -B=deu.poly
osmupdate: Executing shell command:
./osmconvert --out-timestamp "deu-old.osm.pbf" 2>&1
osmupdate: Got shell command result:
2014-04-15T04:00:00Z

osmupdate: timestamp of deu-old.osm.pbf: 2014-04-15T04:00:00Z
osmupdate: Executing shell command:
wget -q http://planet.openstreetmap.org/replication/hour/state.txt -O - 2>&1
osmupdate: Got shell command result:

osmupdate: newest hourly timestamp: (no timestamp)
osmupdate Error: Could not get the newest hourly timestamp from the Internet.
Press ENTER to continue and close this window.

Beides jetzt versucht jetzt kommt das andere:
Das bringt wirres ?

marko@marko-desktop:~$ diff /tmp/term_env.txt  /tmp/sh_env.txt
2a3
> ORBIT_SOCKETDIR=/tmp/orbit-marko
17c18
< WINDOWID=67108875
---
> WINDOWID=65011724
24d24
< LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
28a29
> POSIXLY_CORRECT=enabled
33c34
< PATH=/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
---
> PATH=/home/marko/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
49c50
< SHLVL=1
---
> SHLVL=3
59d59
< LESSOPEN=| /usr/bin/lesspipe %s
66d65
< LESSCLOSE=/usr/bin/lesspipe %s %s
marko@marko-desktop:~$ 

Ich habe keine Ahnung was das ist?

Ich hoffe das ich alles richtig gemacht hab?

Beste Grüße

jo, sieht danach aus. Wenn ich die Pathausgabe bereinige, sehen beide leider gleich aus.

diff /tmp/term_env.txt  /tmp/sh_env.txt
...
< PATH=/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/home/marko/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

> PATH=/home/marko/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
...

Korrigiert:

< PATH=/home/marko/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

also identisch :frowning:

Sorry, das ich so genervt habe, aber ohne diese Info tappen wir nur im Dunkeln. Jetzt ist diese Fehlerquelle wohl ausgeschlossen.

schick doch bitte den aktuellen Script, der im Batch nicht läuft, nochmals komplett rüber. Irgendwas muß ja dran sein.

Gruss
walter

ach ja: Im Terminalfenster, wo das ja läuft bitte mal pwd eingeben und die Ausgabe hier anzeigen.

Mich macht ja immer noch stutzig, dass crontab -l nichts angezeigt. Ich habe die Scripte genau so bei mir in crontab drin und das tut auch.
Ich glaube immer noch, dass der gnome-scheduler (oder wie immer der Test auch immer ausgeführt wird?!) komische Sachen macht.
In einem Fall konnte ich das bei mir reproduzieren (siehe #84 oben).

ja, die Ecke hab ich auch in Verdacht. Ein für mich logischer Schritt wäre, von “AT” auf cron umzusteigen. Der ist sauber und für alle nachvollziehbar. Daher wollte ich ja auch den kompletten Script und den working-path sehen.

aktion:
pwd in script einbauen, eventuell cd dazu, das ganze mit cron starten (und staunen?)

Mal absoluten Basics abfragen: Deine beiden Befehle (von Hand und automatisch) feuerst Du auch auf ein und der selben Installation ab, es ist der gleiche Rechner? Und der User, der den Befehl ausführt, ist auch beides mal der Gleiche?

Mir sind aber auch schon so schöne Sachen begegnet wie “cronjobs dürfen aus Sicherheitsgründen keine weiteren Unterprozesse aufrufen” (sowie eigene Konventionen zur Ausführung von Scripten) - zu Ubuntu habe ich hierzu aber keine Ahnung.

Hallo

Also, ich habe das Script (2 Zeilen) ja so mal bekommen, es geht auch bei allen anderen Aufrufen, eben nur nicht bei Osmupdate.

Hier ist das was ich manuell mache Osmupdate, ich füge das komplett ein im Terminal und die Aufgabe wird sofort ausgeführt ich muss nichts weiter tun:


cd ~/Dokumente/mkgmap
osmupdate -v deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly

hier ist das was osmconvert tut:


cd ~/Dokumente/mkgmap
osmconvert deu.osm.pbf --out-o5m >deu.o5m

diese beiden nutze ich manuell im Terminal, diese gehen.

Der folgende Script liegt in usr/bin und ist ausführbar gesetzt.
Osmupdate:

#!/bin/bash
cd ~/Dokumente/mkgmap
osmupdate -v=3 deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly

Dieser geht bei Start über geplante Aufgaben nicht?

Diesen nutze ich für Osmconvert:

#!/bin/sh
cd ~/Dokumente/mkgmap
osmconvert deu.osm.pbf --out-o5m >deu.o5m

Dieser funktioniert bei Aufruf über Geplante Aufgaben, Job wird ausgeführt.

Die Aufgaben habe ich als Vorlage in Geplante Aufgaben erstellt.
Ich öffne die Vorlage, dann verwenden, dann Zahnrad Icon Ausführen und die Aufgabe wird gestartet.

Wie gesagt alle Aufgaben gehen von allen Karten nur die Osmupdate Aufgabe scheitert am Timastamp?
Beste Grüße

fast schon aus Verzweiflung: mach mal aus #!/bin/bash #!/bin/sh

Hallo
Nur mal als Anmerkung, wenn eine Aufgabe läuft über Geplante Aufgaben, dann bekomme ich im Terminal manuell auch keine Osmupdate Ausgabe?

Da steht dann " bash-4.3$ " im Terminal.

bash-4.3$ cd ~/OSM/Mkgmap
bash-4.3$ osmupdate -v deu-dnk-swe-nor-fin-old.osm.pbf --hour --day --keep-tempfiles deu-dnk-swe-nor-fin.osm.pbf -B=deu-dnk-swe-nor-fin.poly
osmupdate Parameter: deu-dnk-swe-nor-fin-old.osm.pbf
osmupdate Parameter: --hour
osmupdate Parameter: --day
osmupdate Parameter: --keep-tempfiles
osmupdate Parameter: deu-dnk-swe-nor-fin.osm.pbf
osmupdate Parameter: -B=deu-dnk-swe-nor-fin.poly
osmupdate: timestamp of deu-dnk-swe-nor-fin-old.osm.pbf: 2014-04-20T07:00:00Z
osmupdate: newest hourly timestamp: (no timestamp)
osmupdate Error: Could not get the newest hourly timestamp from the Internet.
bash-4.3$ 

Soll doch Open jDK 7 Schuld sein?

Das " #!/bin/sh " teste ich gleich
Danke für die neue Zeile.

Beste Grüße

Hallo
Habe das mal getestet leider kein Erfolg

Habe mit Raute ohne, mit ausrufezeichen ohne, mit sh ohne, usw.

Wenn was ging kam no Timestamp

Könnte man das noch anders automatisiert starten ?

Beste Grüße

Wenn ich schreibe, du sollst #!/bin/sh benutzen, dann bitte ganz genau so und nicht anders :frowning:

ja, wurde in diesem tread auch schon mehrfach erwähnt: cron

Befehl im Terminalfenster: crontab -e

dann popt ein kleiner Editor auf, in dem du unten eine Zeile eingibst, die in etwa so aussieht:

23 10 * * * /home/marko/OSM/Mkgmap/mein_batch.sh > /home/marko/OSM/Mkgmap/mein_batch.log 2>&1

abspeichern mit STRG-O und verlassen mit STRG-X

danach crontab -l und da muß genau diese Zeile drin stehen.

23: Minute, 10: Stunde, also startet der Job jeden Tag um 10:23 . Zum Testen einfach die Uhrzeit ändern, abspeichern und bis dahin warten.

Beispiel:


walter@wno-server:/data/walter/osm/db/misc/plz$ crontab -l
# m h  dom mon dow   command
*/5 * * * *  /opt/install/regfish.com_dynDNSv2_wget/regfish_ipcheck3_all.sh >> /tmp/ip_check.log 2>&1 
*/1 * * * * /home/walter/osm/db/planet2/updatepl planet2 400 >> /home/walter/osm/db/planet2/cron.log 2>&1 
17 * * * * nice -15 /home/walter/osm/maven/changesets/go >> /tmp/cs.log 2>&1
#0 0,8,12,16,20 * * * /home/walter/osm/maven/notes/go >>/home/walter/osm/maven/notes/cron.log 2>&1
44 4 * * * /home/walter/osm/db/misc/admin/update_some_trees.sh > /home/walter/osm/db/misc/admin/update_some_trees.log 2>&1

Gruss
walter

Hallo

Ich dachte ehr an was graphisches, “kde-config-cron” das geht aber bei mir nicht zu starten, weil ist wohl für KDE?

Das teste ich mal.

So viel steht da bei mir nicht drin?

Wenn in Geplante Aufgaben eine Aufgabe angegeben ist steht in crontab - e
das?

30 06 * * * osmupdate-1 # JOB_ID_2288

Das entspricht dem Script von Karte 1 DEU Scriptname “osmupdate-1”

#!/bin/bash
cd ~/Dokumente/mkgmap
osmupdate -v=3 deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly

Ich will das mal versuchen.

Muss ich an der Zeile in crontab -e was verändern ?
Beste Grüße

ja alles, genau so wie ich es beschrieben habe, wichtig sind die absoluten pfade

Hallo

Dann haben wir den Übeltäter ? :smiley:

Ich teste mal etwas.
Beste Grüße

nee, hab mich leider etwas vertan, die richtung stimmt nur die pfade im crontab müssen stimmen , osmupdate-1 ohne pfad und ohne logging reicht net.