Its probably a permissions issue with the device then as you suspected. you may also have to give www-data permission to write to /var/www for testing which is not recommended, but it that works you can first 'cd' to a directory where www-data does have permission to create a directory -or- see if there is a command line option to change the location that the command uses for temporary files. the error logs should shed some lite on what is tripping it up. exec ('cd /tmp/'); exec("cvlc dvb:// :dvb-adapter=1 :no-video --sout ... On Tue, Feb 14, 2012 at 9:53 PM, Raymond Norton <admin at lctn.org> wrote: > It finds cvlc fine, but there are other considerations to take in account > because of the way it is being launched. I have gotten 1 version of the > script to run, using ./dev./video0 as the source, but not the dvb adapter. > One caveat I ran into by running it as www-data is that vlc expects to > create a .local folder in /var/www. Maybe a question for the PHP group. > > > On 2/14/2012 4:29 PM, Tom Penney wrote: >> >> it could also be that the php can not find the command "cvlc". when >> you are on a command line there are environmental variables that >> define where to look for commands >> >> from the command line type "which cvlc" this should return a full path >> to the command. something like >> "/user/bin/something/cvlc" >> >> then in your script replace the command with the full path. >> >> exec("/user/bin/something/cvlc dvb:// :dvb-adapter=1 :no-video --sout >> '#standard{access=http,mux=asf,dst=10.10.1.53:8181}'"); >> >> >> >> > _______________________________________________ > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota > tclug-list at mn-linux.org > http://mailman.mn-linux.org/mailman/listinfo/tclug-list -- Tom Penney 612.208.2568