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 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-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 logically,

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 gives nothing

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 | grep ID_LENGTH |

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

[PHP] shell_exec with pipes

2003-11-11 Thread Mario Ohnewald
Hello List! I have tried to get this command working with php for about 2Weeks now, and i would like you to try to get this thing working. This shell command: /usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null| grep ID_LENGTH | cut -d = -f 2 gives me the result 16 back, the

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/null|

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/mplayer -identify

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 escaping the