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 

Executing IceS command via php script

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients
View previous topic :: View next topic  
Author Message
musicDevel



Joined: 21 Jul 2011
Posts: 10

PostPosted: Thu Aug 04, 2011 4:59 pm    Post subject: Executing IceS command via php script Reply with quote

Hi,

I'm attempting to execute the ices command - to start a new ices stream via php shell_exec() - but it's not working.

I am able to execute and get back correct data for a variety of common shell commands, like cd, ls, pwd, but ices just returns null.

Also, ping -V returns expected output, however ices -V returns null - when rung via shell_exec() - but does give expected output when run in shell as the same user.

What I've tried to no avail:
cd / then run ices
I've checked to make sure ices can run under the script user - runs fine from prompt after su
tried running as daemon

Is there something here that I'm missing?

Any and all help greatly appreciated.
Back to top
View user's profile Send private message
musicDevel



Joined: 21 Jul 2011
Posts: 10

PostPosted: Thu Aug 04, 2011 8:00 pm    Post subject: Solution: Duh! Reply with quote

Solution: for some reason, the system couldn't find ices, so I just gave the full path instead of just 'ices' for the command - and boom it worked.

fyi - if you need to find the path use
# which ices
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients 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