pike.git / NT / tools / lib.pike

version» Context lines:

pike.git/NT/tools/lib.pike:55:    ret+=s;    }    if(filter) filter(ret);    destruct(f);    return proc->wait();    }       case 0:    case "sprsh":    case "SPRSH": +  if(string tmp=getenv("REMOTE_VARIABLES")) +  { +  array vars=({}); +  foreach(tmp/"\n",string var) +  if(search(var,"=")!=-1) +  vars+=({var}); +  cmd=vars+cmd; +  }    string tmp=getcwd();    string mnt=getenv("NTMOUNT");    if(mnt && strlen(mnt)) tmp=replace(tmp,mnt,"");    cmd=({getenv("NTDRIVE")+replace(tmp,"/","\\")})+cmd;    if(!f->connect(getenv("NTHOST"),(int)getenv("NTPORT")))    {    werror("Failed to connect "+strerror(errno())+".\n");    exit(1);    }