Image.sh

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(M)
K
 
(13 dazwischenliegende Versionen von 8 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
 +
Skript vom [[image-plugin]].
 +
 +
{{Box Datei | [[Struktur|$PATH]]/image.sh |
 
<pre>
 
<pre>
 
#!/bin/sh
 
#!/bin/sh
 
#
 
#
# image.sh - v.0.1
+
# image.sh
 
#
 
#
# pregenerate images in background - image plugin
+
# source: vdr-plugin image
 +
#
 +
# pregenerate images in background
 
#
 
#
 
# add this line to your imagecmds.conf:
 
# add this line to your imagecmds.conf:
# folgende zeile in die imagecmds.conf:
+
# folgende zeile in die imagecmds.conf eintragen:
 
#
 
#
# Pregenerate this folder and below : /usr/local/bin/image.sh
+
# Pregenerate this folder and below : /path_to_this_script/image.sh
 
#
 
#
 
# setup:
 
# setup:
 
#
 
#
# Remove temporary files   yes
+
# Remove temporary files     yes
# Lösche temoräre Datein   ja
+
# Loesche temporaere Dateien   ja
 
#
 
#
 
# config:
 
# config:
 
#
 
#
# image.Housekeeping = 1
+
# image.Housekeeping = 0
  
at now <<EOF
+
screen -dm sh -c " \
find "`dirname "${1}"`" -follow -type f \
+
    find "${1%/*}" -follow -type f \
-name "*\.[jJbBtTpPmM][pPmMiInN][gGpPeEfFmM]" \
+
  -name "*\.[jJbBtTpPmM][pPmMiInN][gGpPeEfFmM]" \
-exec /usr/local/bin/imageplugin.sh '{}' '/tmp/image{}.pnm' 688 544 0 0 0 ';' 2>/dev/null
+
  -exec imageplugin.sh {} '/tmp/image{}.pnm' 688 544 0 0 0 \;"
EOF
+
 
</pre>
 
</pre>
 +
}}
  
Quelle: Aus den Sourcen des [[image-plugin]]s.
+
[[Kategorie:Skripte]]
 
+
[[Kategorie:Scripts]]
+

Aktuelle Version vom 18. August 2013, 14:13 Uhr

Skript vom image-plugin.

Datei
$PATH/image.sh
#!/bin/sh
#
# image.sh
#
# source: vdr-plugin image
#
# pregenerate images in background
#
# add this line to your imagecmds.conf:
# folgende zeile in die imagecmds.conf eintragen:
#
# Pregenerate this folder and below : /path_to_this_script/image.sh
#
# setup:
#
# Remove temporary files     yes
# Loesche temporaere Dateien   ja
#
# config:
#
# image.Housekeeping = 0

screen -dm sh -c " \
    find "${1%/*}" -follow -type f \
		   -name "*\.[jJbBtTpPmM][pPmMiInN][gGpPeEfFmM]" \
		   -exec imageplugin.sh {} '/tmp/image{}.pnm' 688 544 0 0 0 \;"