pike.git / lib / modules / Process.pmod

version» Context lines:

pike.git/lib/modules/Process.pmod:170:   //! @note   //! As the entire output of stderr and stdout is stored in the   //! returned mapping it could potentially grow until memory runs out.   //! It is therefor adviceable to set up rlimits if the output has a   //! potientially be very large.   //!   //! @example   //! Process.run( ({ "ls", "-l" }) );   //! Process.run( ({ "ls -l" }) );   //! Process.run( ({ "ls", "-l" }), ([ "cwd":"/etc" ]) ); -  +    mapping run(string|array(string) cmd, void|mapping modifiers)   {    string gotstdout="", gotstderr="";    int exitcode;       if(!modifiers)    modifiers = ([]);       if(modifiers->stdout || modifiers->stderr)    throw( ({ "Can not redirect stdout or stderr in run_process, "