Re: grab the complete commandline used ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2008-08-29 at 04:48 +0200, Jochem Maas wrote:
> Micah Gersten schreef:
> > I suggest creating a shell wrapper for PHP that will write the command
> > to a file for you and then call PHP with the appropriate arguments.  PHP
> > won't even see most of the command that you originally posted.
> 
> which wouldn't catch the pipe to grep now would it. nevermind, I don't think
> you ge what I was looking for, not worry I can hack together a 'solution'
> using exec() ... by grepping the output of ps.

I doubt it. The ps command sees what the script sees. If I do mplayer
*.avi, ps shows me the expanded file list that was given to mplayer.
Remember, shell gets first dibs before anything happens. BTW your
subject line does not imply that you wanted the EXACT command line
used :)

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux