|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
|
#1 |
|
Junior Member
Join Date: Jan 2005
Posts: 3
|
Problem running sc_serv in the background with different conf file!!!!
I have a script that runs upon startup on my Redhat linux server which spawns two shoutcast servers.
The first one is executed by "sc_serv &" with the " &" at the end to make the server run in the background.... This one works fine. The second one is executed by "sc_serv sc_serv2.conf &" which also has the " &" at the end so that it also runs in the background. This one does not return to the command line. The " &" at the end does nothing when you specify a different config file. Am I doing this the wrong way? I also tried "sc_serv & sc_serv2.conf" this did work, but it did not load the config file. Can you not do both??? [edit > JonnyMac] Moved from Winamp TS to SHOUTcast TS. | Please post SHOUTcast questions in the SHOUTcast forum. | Sticky: Looking for: Winamp3 v1.0? Winamp Tech Support IRC Channel? SHOUTcast Help? READ ME! | Please read the Stickies [/edit] |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
|
You may need to specify the full path for both the executable and the config file -- If you already do that, create a shell script that contains the command, and run the script with the "&" -- make sure that you have the right heading in the script, ie #/bin/sh... etc....
/* v2 HTML5 / Player test pages DigitalMixNYC, DigitalMixNYCbx | DNAS Status: Now Playing js codes (scaststatus_X.php) | PortForward.com | Upload/Download Speed Test | No-IP.com: Free Dynamic DNS | In the YP | dnasDir */ |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jan 2005
Posts: 3
|
I tried using the full path and that didnt work.... But your idea with making another script and putting the command in it and then calling the script with a "&" after it worked! It runs both and returns to the prompt! Thank you! Very helpful!
|
|
|
|
|
|
#4 |
|
Forum King
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
|
Just so you know why it worked -- the "&" only operates on the one operand that preceeds it, and it is parsed right to left.
/* v2 HTML5 / Player test pages DigitalMixNYC, DigitalMixNYCbx | DNAS Status: Now Playing js codes (scaststatus_X.php) | PortForward.com | Upload/Download Speed Test | No-IP.com: Free Dynamic DNS | In the YP | dnasDir */ |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|