From 4ff4c5049a09f5a28d575b19940edd6ad6d6ac6d Mon Sep 17 00:00:00 2001 From: jwindley <jwindley@unknown> Date: Wed, 24 Sep 2003 16:51:13 +0000 Subject: [PATCH] Fix documentation for srun --chdir --- doc/man/man1/srun.1 | 4 ++-- src/srun/opt.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/man/man1/srun.1 b/doc/man/man1/srun.1 index dfe60c1bb59..3ac2dba8690 100644 --- a/doc/man/man1/srun.1 +++ b/doc/man/man1/srun.1 @@ -73,7 +73,7 @@ time limit. When the time limit is reached, the job's processes are sent SIGTERM followed by SIGKILL. The interval between signals is specified by the SLURM configuration parameter \fBKillWait\fR. .TP -\fB\-\-cddir\fR=\fIpath\fR +\fB\-\-chdir\fR=\fIpath\fR have the remote processes do a chdir to \fIpath\fR before beginning execution. The default is to chdir to the current working directory of the \fBsrun\fR process. @@ -300,7 +300,7 @@ will terminate if resources are not immediately available. When initiating remote processes .B srun will propagate the current working directory, unless -\fB\-\-cddir\fR=\fIpath\fR is specified, in which case \fIpath\fR will +\fB\-\-chdir\fR=\fIpath\fR is specified, in which case \fIpath\fR will become the working directory for the remote processes. .PP The \fB-n\fB, \fB-c\fR, and \fB-N\fR options control how CPUs and diff --git a/src/srun/opt.c b/src/srun/opt.c index 0e4d8ed3d77..2ab38ac2a39 100644 --- a/src/srun/opt.c +++ b/src/srun/opt.c @@ -98,7 +98,7 @@ #define OPT_VERSION 0x12 #define OPT_JOIN 0x13 #define OPT_STEAL 0x14 -#define OPT_CDDIR 0x15 +#define OPT_CHDIR 0x15 #define OPT_BATCH 0x16 #define OPT_TIME 0x17 #define OPT_THREADS 0x18 @@ -196,7 +196,7 @@ struct poptOption runTable[] = { {"time", 't', POPT_ARG_INT, &opt.time_limit, OPT_TIME, "time limit", "minutes"}, - {"chdir", 'D', POPT_ARG_STRING, NULL, OPT_CDDIR, + {"chdir", 'D', POPT_ARG_STRING, NULL, OPT_CHDIR, "change current working directory of remote procs", "path"}, {"immediate", 'I', POPT_ARG_NONE, &opt.immediate, 0, @@ -882,7 +882,7 @@ static void _opt_args(int ac, char **av) } break; - case OPT_CDDIR: + case OPT_CHDIR: xfree(opt.cwd); opt.cwd = xstrdup(arg); break; -- GitLab