Prev Previous Post   Next Post Next
Old 4th November 2006, 17:24   #1
Gorbymedia
Junior Member
 
Join Date: Sep 2005
Posts: 20
Use CRON to stop sc_serv

Hi all,

Wonder if a linux guru can help me. I want to run a specific linux shoutcast server for a specified time, basically to start on friday evening and finish monday morning.

I can easily start the server using cron, but struggling to find a way to stop.

I can manually type ps- ax | grep weekend

weekend being the name of the conf file I'm using and a good way for me to identify the specific sc_serv. However it reports back a couple of lines, the first begins with the pid of the sc_serv, the second is the pid of the grep search!

What shell/bash file could i use to help automate this part?

Many thanks, Richard
Gorbymedia is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump