Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Reply
Thread Tools Search this Thread Display Modes
Old 20th January 2005, 23:34   #1
nasontackett
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]
nasontackett is offline   Reply With Quote
Old 20th January 2005, 23:45   #2
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
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....
djSpinnerCee is offline   Reply With Quote
Old 21st January 2005, 00:18   #3
nasontackett
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!
nasontackett is offline   Reply With Quote
Old 21st January 2005, 00:21   #4
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
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.
djSpinnerCee is offline   Reply With Quote
Reply
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