pike.git / lib / modules / Process.pmod

version» Context lines:

pike.git/lib/modules/Process.pmod:541:   //! Process.run( "ls -l" );   //! Process.run( "awk -F: '{print $2}'", ([ "stdin":"foo:2\nbar:17\n" ]) );   mapping run(string|array(string) cmd, void|mapping modifiers)   {    string gotstdout="", gotstderr="", stdin_str;    int exitcode;       if(!modifiers)    modifiers = ([]);    -  if((modifiers->stdout && !functionp(modifiers->stdout)) -  || (modifiers->stderr && !functionp(modifiers->stderr))) +  if((modifiers->stdout && !ccallablep(modifiers->stdout)) +  || (modifiers->stderr && !callablep(modifiers->stderr)))    throw( ({ "Can not redirect stdout or stderr in Process.run, "    "please use Process.Process instead.", backtrace() }) );       Stdio.File mystdout = Stdio.File();    Stdio.File mystderr = Stdio.File();    Stdio.File mystdin;       object p;    if(stringp(modifiers->stdin))    {