Re: [PHP] grab the complete commandline used ...



2008/8/28 Jochem Maas <jochem@xxxxxxxxxxxxx>:

I have a feeling I'm out of luck - probably security issues that keep
you from doing such a thing as well.

I did have the idea of grabbing the PID and then grepping the output of
ps via exec() ... that would do it, but I reckon it smells. :-)

That won't work.

Quote the entire command as a string. Pass it to a shell script that
sets an environment variable to that string, then executes the string.

--

http://www.otton.org/
.



Relevant Pages

  • Re: [PHP] grab the complete commandline used ...
    ... I did have the idea of grabbing the PID and then grepping the output of ... sets an environment variable to that string, ...
    (php.general)
  • What is wrong with this simple command?
    ... grepping this text file for a string via exec works fine. ...
    (comp.lang.tcl)
  • Re: Multi-line "Srchfor" Utility?
    ... specified on the command. ... for each EXEC CICS command, that literal is a bit string (arg 0 in the ... EXEC CICS GETMAIN, but beyond that I'd need to refer to the CICS Data ...
    (bit.listserv.ibm-main)
  • Re: Winter Madness - Passing Python objects as Strings
    ... "seldom" here is like once a day for a few minutes. ... name as a string and mucking around with exec or eval - ... for the exec to work. ... precious cycles in an extra unpacking stage. ...
    (comp.lang.python)
  • Re: how can I execute a function string
    ... > I have some code that generates a function on the fly in a string. ... exec generate_func ... A *slightly* better approach is to make a code object, using compile(). ... def gen_func: ...
    (comp.lang.python)