View Single Post
Old 20th August 2010, 23:50   #296
djcode
Junior Member
 
Join Date: Jun 2009
Posts: 4
Rothgar, here is an example I have found on the forums (http://forums.winamp.com/showthread.php?t=188214). I am going to be trying to implement something like this soon, but I haven't started messing with it yet.

PHP Code:
#!/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) {
                
sleep(1);
        } else {
                
$current_entry $last_entry;
                
system("/home/wbatradio/sc_trans/change_up");
                
sleep(1);
        }
}
?>
If you implement something I would be interested to talk to you about it, perhaps we can help each other. Cheers.
djcode is offline