Re: [PHP] shell_exec with pipes

2003-11-16 Thread Jason Wong
On Thursday 13 November 2003 16:51, Mario Ohnewald wrote: [snip] > == > Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit... > AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int > AF_pre:

Re: [PHP] shell_exec with pipes

2003-11-13 Thread Mario Ohnewald
Hello! I think we are almost there yet :) > On Wednesday 12 November 2003 21:48, Mario Ohnewald wrote: > > > ok, i am running the script like this now: > > [snip] > > This seems to suggest that shell_exec() does not like your command and is > not > executing it, so: > > Try tackling it logica

Re: [PHP] shell_exec with pipes

2003-11-13 Thread Jason Wong
On Wednesday 12 November 2003 21:48, Mario Ohnewald wrote: > ok, i am running the script like this now: [snip] This seems to suggest that shell_exec() does not like your command and is not executing it, so: Try tackling it logically, step-by-step: > > Have you: > > > > 1) Turned on full error

Re: [PHP] shell_exec with pipes

2003-11-12 Thread Mario Ohnewald
ok, i am running the script like this now: START - $var=shell_exec("/home/lansinplayer/server/apache/htdocs/lansinplayer/getfilelength.sh /tmp/pitstop.mpeg"); echo "--$var--"; STOP - Where echo returns nothing. I did a chmod 777 on the getfileleng

Re: [PHP] shell_exec with pipes

2003-11-12 Thread Jason Wong
On Wednesday 12 November 2003 17:21, Mario Ohnewald wrote: > > $var=shell_exec("/usr/local/bin/mplayer -identify -frames 0 > > /tmp/pitstop.mpeg 2>/dev/null | grep ID_LENGTH | cut -d \"=\" -f 2"); > > $var=shell_exec("/usr/local/bin/mplayer -identify -frames 0 > /tmp/pitstop.mpeg 2>/dev/null | gre

RE: [PHP] shell_exec with pipes

2003-11-12 Thread Mario Ohnewald
Hi, > $var=shell_exec("/usr/local/bin/mplayer -identify -frames 0 > /tmp/pitstop.mpeg 2>/dev/null | grep ID_LENGTH | cut -d \"=\" -f 2"); $var=shell_exec("/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2>/dev/null | grep ID_LENGTH | cut -d \"=\" -f 2"); echo "Output: $var"; Still g

RE: [PHP] shell_exec with pipes

2003-11-11 Thread Jay Blanchard
[snip] > $var=shell_exec("/usr/local/bin/mplayer -identify -frames 0 > /tmp/pitstop.mpeg 2>/dev/null\| grep ID_LENGTH \| cut -d \"=\" -f 2"); [/snip] $var=shell_exec("/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2>/dev/null | grep ID_LENGTH | cut -d \"=\" -f 2"); Try just escapin

Re: [PHP] shell_exec with pipes

2003-11-11 Thread Mario Ohnewald
> Have you tried escaping the pipes and quotes? Try this: > > $var=shell_exec("/usr/local/bin/mplayer -identify -frames 0 > /tmp/pitstop.mpeg 2>/dev/null\| grep ID_LENGTH \| cut -d \"=\" -f 2"); nope, still get nothing back. > > Mario Ohnewald wrote: > > > $var=shell_exec("/usr/local/bin/mpl

Re: [PHP] shell_exec with pipes

2003-11-11 Thread Aaron Gould
Have you tried escaping the pipes and quotes? Try this: $var=shell_exec("/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2>/dev/null\| grep ID_LENGTH \| cut -d \"=\" -f 2"); Mario Ohnewald wrote: $var=shell_exec("/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2>/dev/