View Single Post
Old 29th July 2004, 18:29   #1
WBAT
Junior Member
 
Join Date: Jul 2004
Location: Chambersburg, PA
Posts: 17
Can sc_trans execute shell command?

Hello,
I am starting a station using sc_trans. I really like the program for two obvious reasons:
1. Made by Shoutcast so I know its 100% compatible
2. Crossfade feature not found in other command-line streamers

My one issue however is that I do not plan on using sc_trans playlist feature. I need sc_trans to execute a shell command either before or after every song it plays. The only way I can figure out how to do this is to have a shell script monitor sc_trans.log for activity and act accordingly, obviously this isn't the best solution though. My question is, is there a way sc_trans can execute a shell command.

To give an example of what i'm doing. Let's say I have play.list with two lines... one line is '/home/wbat/music/1.mp3' and second line is '/home/wbat/music/2.mp3' These files are static and the location never changes. However my shell scripts will copy various songs/sweepers/etc. onto either 1.mp3 or 2.mp3. Thus, I have powerful control of the playlist outside of sc_trans. The only issue is how to have sc_trans call a shell script/command?

Thanks,
Brian


[Edit --> DJ Egg]
Moved from Winamp Tech to Shoutcast Tech.
More appropriate in there, I think...?! :/
WBAT is offline   Reply With Quote