Image.sh

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(M)
(at != screen)
Zeile 25: Zeile 25:
 
# image.Housekeeping = 0
 
# image.Housekeeping = 0
  
at now <<EOF
+
screen -dmS $$ 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 ';' >/dev/null 2>&1
+
  -exec imageplugin.sh {} '/tmp/image{}.pnm' 688 544 0 0 0 \;"
EOF
+
 
</pre>
 
</pre>
 
}}
 
}}
  
 
[[Kategorie:Skripte]]
 
[[Kategorie:Skripte]]

Version vom 22. April 2006, 15:05 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 temoraere Datein   ja
#
# config:
#
# image.Housekeeping = 0

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