Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[win32] connot load config.xml

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Tommy
Guest





PostPosted: Tue Feb 07, 2006 5:04 pm    Post subject: [win32] connot load config.xml Reply with quote

I am useing VB6 to write a program to control my radio station.
The problem I am having is starting IceCast.
I use the shell command like this;
Code:

IcastPid = Shell("E:\Program Files\Icecast2 Win32\Icecast2.exe")

But I get an error that says cannot load config.xml

If I start IceCast from my desktop or from the IceCast folder it runs fine.

Please help.
Tommy
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Feb 07, 2006 5:13 pm    Post subject: Reply with quote

The command line format is "icecast -c icecast.xml", try adding the -c

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Tommy
Guest





PostPosted: Wed Feb 08, 2006 8:48 pm    Post subject: Did Not Work Reply with quote

I tried that and every possible combination of that and still the same error;
Code:

IcastPid = Shell("E:\Program Files\Icecast2 Win32\icecast2.exe -c icecast.xml")
IcastPid = Shell("E:\Program Files\Icecast2 Win32\icecast2.exe icecast -c icecast.xml")
IcastPid = Shell("E:\Program Files\Icecast2 Win32\icecast2.exe /-c icecast.xml")
IcastPid = Shell("E:\Program Files\Icecast2 Win32\icecast2.exe /icecast -c icecast.xml")

Please help more,
Thanks,
Tommy

P.S. Thanks for the replay
Back to top
Tommy
Guest





PostPosted: Wed Feb 08, 2006 8:55 pm    Post subject: I know Reply with quote

I know that;
Code:
icecast -c icecast.xml

Is the code for starting IceCast2 in the linux version,
But I am useing the Win32 windowed (the one with the graghical window), you know the one with the tabs and buttons on it.
Sorry for the stupid explantion of the one I am useing but I cannot think of what it's call right off the top of my head, I think it's the GUI one.

Thanks,
Tommy
Back to top
Tommy
Guest





PostPosted: Wed Feb 08, 2006 9:22 pm    Post subject: oops Reply with quote

Hay thanks for the help but I got it to work, here is what I had to do;
Code:

IcastPid = Shell("E:\Program Files\Icecast2 Win32\icecast2.exe E:\Program Files\Icecast2 Win32\icecast.xml")

When I did that then I got an error about could not find the log path and errorlog path so I had to change the config file to this;
Code:

<!-- Note that if <chroot> is turned on below, these paths must both
             be relative to the new root, not the original root -->
        <logdir>E:\Program Files\Icecast2 Win32\logs</logdir>
        <webroot>E:\Program Files\Icecast2 Win32\web</webroot>
        <adminroot>E:\Program Files\Icecast2 Win32\admin</adminroot>
        <!-- <pidfile>E:\Program Files\Icecast2 Win32\icecast.pid</pidfile> -->

Then it all worked just fine.

Thanks for the help,
Tommy
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber