def_Constant(PID);
def_Constant(QUEUE);
def_Constant(STATE);
- def_Constant(USER);
def_Constant(WORKDIR);
def_Constant(HOMEDIR);
def_Constant(EXCLUSIVE);
decl_extern_Constant(PID);
decl_extern_Constant(QUEUE);
decl_extern_Constant(STATE);
- decl_extern_Constant(USER);
decl_extern_Constant(WORKDIR);
decl_extern_Constant(HOMEDIR);
decl_extern_Constant(EXCLUSIVE);
addParameter("PID", LONG, 1);
addParameter("QUEUE", STRING, 1);
addParameter("STATE", STRING, 1);
- addParameter("USER", STRING, 1);
addParameter("WORKDIR", STRING, 1);
addParameter("HOMEDIR", STRING, 1);
addParameter("EXCLUSIVE", BOOL, 1);
}
}
- string user;
- Parametre::const_iterator it = param.find(USER);
- if (it != param.end()) {
- user = string(it->second);
- }
-
- return _protocol.getExecCommandArgs(exec_sub_cmd.str(), _hostname, user);
+ return _protocol.getExecCommandArgs(exec_sub_cmd.str(), _hostname, _username);
}
p[INFILE] = Couple("seta.sh", workdir + "/copied-seta.sh");
p[INFILE] += Couple("setb.sh", workdir + "/copied-setb.sh");
p[OUTFILE] = Couple("result.txt", workdir + "/orig-result.txt");
- p[USER] = user;
job.setParametre(p);
// ... and its environment
Environnement e;
p[INFILE] = Couple("seta.sh", workdir + "/copied-seta.sh");
p[INFILE] += Couple("setb.sh", workdir + "/copied-setb.sh");
p[OUTFILE] = Couple("result.txt", workdir + "/orig-result.txt");
- p[USER] = user;
job.setParametre(p);
// ... and its environment (SSH_AUTH_SOCK env var is important for ssh agent authentication)
Environnement e;