Edited wiki page Example_script through web user interface.

This commit is contained in:
Louwrentius@gmail.com 2011-12-28 23:10:37 +00:00
parent 2f6b22e4d5
commit afe7cb074c
1 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,14 @@
#summary script showing usage of PPSS variables
#summary script showing usage of PPSS in combination with wrapper script
In this example WAV files are converted to MP3 using Lame. The script takes two arguments that are supplied by the PPSS -c option.
PPSS is run like this:
{{{
ppss -d /source/directory/with/wav/files -c './wav2mp3.sh "$ITEM" "$OUTPUT_DIR"' -o /dest/dir/where/mp3/files/must/be/put
}}}
This is the code.
{{{
#!/usr/bin/env bash
@ -21,4 +31,4 @@ MP3FILE="`echo ${BASENAME%wav}mp3`"
lame --quiet --preset insane "$SRC" "$DEST/$MP3FILE"
exit "$?"
}}}
}}}