View Single Post
Old 29th July 2004, 20:04   #2
Junior Member
Join Date: Jul 2004
Location: Chambersburg, PA
Posts: 17
Just to give you an idea, below is the current php shell script I have to run. It stays in a loop and waits for the log to change regarding any "DECODE" of a new mp3 file.

PS- Feel free to use this script if you want.


#!/usr/local/bin/php -q

$n = 1;
$current_entry = "Current";
$last_entry = "Last";

while ($n = 1) {
$last_entry = `cat sc_trans.log | grep DECODE | tail -n 1`;
if ($last_entry == $current_entry) {
} else {
$current_entry = $last_entry;


Although this works, I would idealy want a "built-in" feature for sc_trans. The one main disadvantage to my above script is sc_trans doesn't wait for the script to be done before it moves on. This of course isn't a problem for most mp3 files since they are at least 30 seconds.
WBAT is offline   Reply With Quote