Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Shoutcast Technical Support (http://forums.winamp.com/forumdisplay.php?f=86)
-   -   restart sc_trans with a cron job Linux (http://forums.winamp.com/showthread.php?t=332013)

helios399 29th June 2011 17:30

restart sc_trans with a cron job Linux
 
Hi all,

I 'll want to restart sc_trans each night (because I want to load a new playlist) with a crontab job Linux...
Can I do that and how ?
With PHP, or a sh...

Is there an other method to load a new playlist without restart sc_trans ?

Thanks all for your advice.

P

DrO 29th June 2011 17:39

see http://wiki.winamp.com/wiki/SHOUTcas...tional_Signals

-daz

helios399 29th June 2011 17:59

Ok thanks

Sorry, I'm a newbie in Linux :D

I don't know how to get the <pid> with a cron job...sorry
Can you give me an advice again !

Many thanks

P

DrO 30th June 2011 08:27

you could probably make a grep on the running processes to be able to find that as the pid is stored in the log files but when the logs are (auto)-rotated then it'd be moved into a different file so wouldn't be of much use. there's probably a more elegant way of doing it but that's all which comes to mind at the moment.

-daz


All times are GMT. The time now is 14:45.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.