From 2edfa688d51080305a7c300bc10e4649bc5f484e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 31 Dec 2015 23:45:15 +0100 Subject: preserve working directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- doc/man/sat.1 | 12 ++++++++++-- doc/man/satq.1 | 6 ++++++ 2 files changed, 16 insertions(+), 2 deletions(-) (limited to 'doc/man') diff --git a/doc/man/sat.1 b/doc/man/sat.1 index 77b1d77..93854b6 100644 --- a/doc/man/sat.1 +++ b/doc/man/sat.1 @@ -22,9 +22,17 @@ unless it is already running, and queue a specified to be executed at a selected .IR TIME . The job shall be executed with the same environment -variables as +variables and the same working directory (by +pathname) as .BR sat (1) -had when the job was queued. +had when the job was queued. However, if there is no +directory will the pathname matching the working +directory, when the job executes, the working directory +will be /, or whatever the working directory of +.BR satd (1) +(if +.BR satd (1) +is running in the foreground.) .PP The .I TIME diff --git a/doc/man/satq.1 b/doc/man/satq.1 index 630b5a2..082a7ac 100644 --- a/doc/man/satq.1 +++ b/doc/man/satq.1 @@ -17,6 +17,7 @@ indented. The output for each job is formatted .nf job: \fIJOB-ID\fP clock: \fICLOCK\fP argc: \fIARGC\fP remaining: \fIREM\fP argv[0]: \fIARGV0\fP time: \fITIME\fP + wdir: \fIWDIR\fP argv: \fIARGV\fP envp: \fIENVP\fP .fi @@ -75,6 +76,11 @@ it is formatted .IB YEAR - MM - DD \ HH : MM : SS in 24-hour clock, local time. .TP +.I WDIR +is the working directory the job will have. However, +if that directory one longer exists, its working +directory will be /. +.TP .I ARGV is all arguments in the job's command line, including .IR ARGV0 . -- cgit v1.2.3-70-g09d2