Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Shoutcast Technical Support (http://forums.winamp.com/forumdisplay.php?f=86)
-   -   Problem running sc_serv in the background with different conf file!!!! (http://forums.winamp.com/showthread.php?t=205484)

nasontackett 20th January 2005 23:34

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]

djSpinnerCee 20th January 2005 23:45

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....

nasontackett 21st January 2005 00:18

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!

djSpinnerCee 21st January 2005 00:21

Just so you know why it worked -- the "&" only operates on the one operand that preceeds it, and it is parsed right to left.


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

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.