rklm schrieb:
Zusätzlich könnte man noch ein Limit der Durchläufe einbauen - sonst hat man eine Endlosschleife.
Mit Deiner Logik (Prüfung der Ausgabe) ginge
| if ! ./modupdate > modupdate.log && fgrep -q Error modupdate.log; do
./modupdate
fi
|
Danke dir für deine Hilfe! Das letzter klingt Tatsache nach meiner Logik die ich nehmen würde. Du sagst das aber so als es schöner gehen könnte?
Um es genauer zu sagen, benutze ich nur ein kleines Skript um alle Mods Upzudaten, das der Befehl „+workshop_download_item 00000 000000000“ öfter vor kommt und bei größeren bricht er manchmal ab. Die Idee das er sich das aber merkt und nicht öfter macht, finde ich gut! Kann man das auch einstellen oder was sagt der Befehl jetzt wie oft der Error hintereinander vorkommen darf?
| ./steamcmd.sh +login anonymous +workshop_download_item 00000 000000000 +quit
|
Grüße
FreeFun
Edit:
Hier mal ein auszug aus der modupdate.log wo kein Error vorkommt.
Redirecting stderr to '/home/user/Steam/logs/stderr.txt'
[ 0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK.
Connecting anonymously to Steam Public...Logged in OK
Waiting for user info...OK
Downloading item 0000000000 ...
Success. Downloaded item 0000000000 to "/home/user/Steam/steamapps/workshop/content/000000/0000000000" (64231676 bytes) Downloading item 0000000000 ...
Success. Downloaded item 0000000000 to "/home/user/Steam/steamapps/workshop/content/000000/0000000000" (1756289844 bytes) Downloading item 0000000000 ...
Success. Downloaded item 0000000000 to "/home/user/Steam/steamapps/workshop/content/000000/0000000000" (886033050 bytes) Downloading item 0000000000 ...
Success. Downloaded item 0000000000 to "/home/user/Steam/steamapps/workshop/content/000000/0000000000" (1987898525 bytes) Downloading item 0000000000 ...
Success. Downloaded item 0000000000 to "/home/user/Steam/steamapps/workshop/content/000000/0000000000" (944976163 bytes) Downloading item 0000000000 ...
Success. Downloaded item 0000000000 to "/home/user/Steam/steamapps/workshop/content/000000/0000000000" (7499638 bytes) Downloading item 0000000000 ...
Success. Downloaded item 0000000000 to "/home/user/Steam/steamapps/workshop/content/000000/0000000000" (949276 bytes) Downloading item 0000000000 ...
Success. Downloaded item 0000000000 to "/home/user/Steam/steamapps/workshop/content/000000/0000000000" (2123918 bytes) Downloading item 0000000000 ...
Success. Downloaded item 0000000000 to "/home/user/Steam/steamapps/workshop/content/000000/0000000000" (4136158 bytes) Downloading item 0000000000 ...
Success. Downloaded item 0000000000 to "/home/user/Steam/steamapps/workshop/content/000000/0000000000" (5858095 bytes) Downloading item 0000000000 ...
Success. Downloaded item 0000000000 to "/home/user/Steam/steamapps/workshop/content/000000/0000000000" (106813563 bytes) Downloading item 0000000000 ...
Success. Downloaded item 0000000000 to "/home/user/Steam/steamapps/workshop/content/000000/0000000000" (1402240 bytes) Downloading item 0000000000 ...
Success. Downloaded item 0000000000 to "/home/user/Steam/steamapps/workshop/content/000000/0000000000" (1023970 bytes) Downloading item 0000000000 ...
Success. Downloaded item 0000000000 to "/home/user/Steam/steamapps/workshop/content/000000/0000000000" (1058089480 bytes) Local workshop items for App 000000:
Workshop Content folder : "/home/user/Steam/steamapps/workshop" - no update needed
- Item 0000000000 : installed (64231676 bytes, Sat Mar 23 04:07:54 2019),
- Item 0000000000 : installed (1987898525 bytes, Thu Mar 28 21:00:59 2019),
- Item 0000000000 : installed (1402240 bytes, Thu Sep 21 16:30:19 2017),
- Item 0000000000 : installed (5858095 bytes, Sat Mar 2 18:50:14 2019),
- Item 0000000000 : installed (1756289844 bytes, Sat Mar 9 05:17:55 2019),
- Item 0000000000 : installed (886033050 bytes, Sat Mar 2 22:41:07 2019),
- Item 0000000000 : installed (944976163 bytes, Fri Mar 29 01:10:37 2019),
- Item 0000000000 : installed (1058089480 bytes, Mon Mar 25 23:49:55 2019),
- Item 0000000000 : installed (2123918 bytes, Tue Jul 17 12:35:24 2018),
- Item 0000000000 : installed (949276 bytes, Tue Mar 26 13:32:02 2019),
- Item 0000000000 : installed (1023970 bytes, Tue Nov 6 19:29:12 2018),
- Item 0000000000 : installed (4136158 bytes, Sun Oct 14 17:33:51 2018),
- Item 0000000000 : installed (106813563 bytes, Mon Jan 21 18:35:15 2019),
- Item 0000000000 : installed (7499638 bytes, Sun Mar 3 05:31:42 2019),