Commit 7b206b84 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add -n option to batchexp to set the idleignore bit (do not send idle email).

Use this option from boss-install when creating the initial experiments.

This option should not be exported via the XMLRPC server.
parent ca15ca82
......@@ -889,7 +889,7 @@ Phase "experiments", "Setting up system experiments", sub {
PhaseSkip("Experiment Created")
if (-d "/proj/$pid/exp/$eid");
ExecQuietFatal("$SUDO -u elabman $WAP $BATCHEXP ".
" -q -i -w -f -S 'System Experiment' ".
" -q -i -w -f -n -S 'System Experiment' ".
" -L 'System Experiment' ".
" -E '$desc - DO NOT DELETE' ".
" -p $pid -e $eid");
......
......@@ -30,7 +30,7 @@ use POSIX qw(strftime);
sub usage()
{
print(STDERR
"Usage: batchexp [-q] [-i [-w]] [-f] [-E description] [-g gid]\n".
"Usage: batchexp [-q] [-i [-w]] [-n] [-f] [-E description] [-g gid]\n".
" [-S reason] [-L reason] [-a <time>] [-l <time>]\n".
" -p <pid> -e <eid> <nsfile>\n".
"switches and arguments:\n".
......@@ -40,6 +40,7 @@ sub usage()
"-q - be less chatty\n".
"-S <str> - Experiment cannot be swapped; must provide reason\n".
"-L <str> - Experiment cannot be IDLE swapped; must provide reason\n".
"-n - Do not send idle email (internal option only)\n".
"-a <nnn> - Auto swapout nnn minutes after experiment is swapped in\n".
"-l <nnn> - Auto swapout nnn minutes after experiment goes idle\n".
"-E <str> - A pithy sentence describing your experiment\n".
......@@ -50,7 +51,7 @@ sub usage()
exit(-1);
}
my $optlist = "iE:g:e:p:S:L:a:l:fwqt:";
my $optlist = "iE:g:e:p:S:L:a:l:fwqt:n";
my $batchmode= 1;
my $frontend = 0;
my $waitmode = 0;
......@@ -883,6 +884,10 @@ sub ParseArgs()
if (defined($options{"q"})) {
$quiet = 1;
}
# This option should not be exported via the XMLRPC server.
if (defined($options{"n"})) {
$idleignore = 1;
}
#
# pid,eid,gid get passed along as shell commands args; must taint check.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment