exec & shell_exec not working with vlc -I rc command

I wish to do recording of the live http streaming on the server side. I am able to do the recording on server via ssh and then writting the vlc -I rc command But when i write the same command in the exec function like :- exec("vlc -I rc REST_OF_THE_COMMAND"); IT doesnt works , But exec("ls -l") & exec("pwd") works

So my problem is that vlc command line is not working with the exec or shell_exec function.

Answers


Please check this answer (relates to executing commands from PHP). Once you know the exact problem, then it is easier to find a solution.

Executing wkhtmltopdf from PHP fails


Need Your Help

How to center items in a Java combobox

java swing jcombobox renderer

Is there a method for a combobox in Java that will center the items in the combobox? I tried this but it didn't work: