diff --git a/doc/man/man1/salloc.1 b/doc/man/man1/salloc.1 index ac36cf4cf3d28466e94d0197d9b2bd1831501d90..fa1e640debb681d4d47d2bad04279362821cb429 100644 --- a/doc/man/man1/salloc.1 +++ b/doc/man/man1/salloc.1 @@ -36,6 +36,11 @@ settings and is designed to be executed in the foreground. If you need to execute salloc in the background, set its standard input to some file, for example: "salloc \-n16 a.out </dev/null &" +.SH "RETURN VALUE" +If salloc is unable to execute the user script, it will +return 1 and print errors to stderr. Else if success or if killed by signals +HUP, INT, KILL, or QUIT: it will return 0. + .SH "OPTIONS" .LP diff --git a/doc/man/man1/sbatch.1 b/doc/man/man1/sbatch.1 index 8a5d2b6aa1990bb4826f5ad48bb369cb94aaae61..dd93cfcf9c5f6d11431ab493b77ab1e2208ee971 100644 --- a/doc/man/man1/sbatch.1 +++ b/doc/man/man1/sbatch.1 @@ -36,6 +36,9 @@ allocation of cpus to jobs and tasks. .br https://slurm.schedmd.com/cpu_management.html +.SH "RETURN VALUE" +sbatch will return 0 on success or error code on failure. + .SH "OPTIONS" .LP