![]() |
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] |
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....
|
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!
|
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.