Skip to content
Snippets Groups Projects
Commit f8644b8a authored by Danny Auble's avatar Danny Auble
Browse files

bsub - add cwd option

parent 37db1074
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,7 @@ use Switch; ...@@ -51,6 +51,7 @@ use Switch;
my (#$start_time, my (#$start_time,
#$account, #$account,
#$array, #$array,
$workdir,
$err_path, $err_path,
#$export_env, #$export_env,
$exclusive, $exclusive,
...@@ -78,6 +79,7 @@ my $srun = "${FindBin::Bin}/srun"; ...@@ -78,6 +79,7 @@ my $srun = "${FindBin::Bin}/srun";
GetOptions(#'a=s' => \$start_time, GetOptions(#'a=s' => \$start_time,
#'A=s' => \$account, #'A=s' => \$account,
'cwd=s' => \$workdir,
'e=s' => \$err_path, 'e=s' => \$err_path,
#'h' => \$hold, #'h' => \$hold,
'I' => \$interactive, 'I' => \$interactive,
...@@ -159,6 +161,8 @@ if (_check_script($ARGV[0])) { ...@@ -159,6 +161,8 @@ if (_check_script($ARGV[0])) {
$command .= " -e $err_path" if $err_path; $command .= " -e $err_path" if $err_path;
$command .= " -o $out_path" if $out_path; $command .= " -o $out_path" if $out_path;
$command .= " -D $workdir" if $workdir;
#print " command = $command\n"; #print " command = $command\n";
...@@ -332,6 +336,7 @@ B<bsub> - submit a batch job in a familiar OpenLava format ...@@ -332,6 +336,7 @@ B<bsub> - submit a batch job in a familiar OpenLava format
=head1 SYNOPSIS =head1 SYNOPSIS
bsub bsub
[-cwd Working Directory Path]
[-e Error Path] [-e Error Path]
[-I Interactive Mode] [-I Interactive Mode]
[-m Node List] [-m Node List]
...@@ -352,6 +357,10 @@ The B<bsub> submits batch jobs. It is aimed to be feature-compatible with OpenLa ...@@ -352,6 +357,10 @@ The B<bsub> submits batch jobs. It is aimed to be feature-compatible with OpenLa
=over 4 =over 4
=item B<-cwd Working Directory Path>
Specify the working directory path for the job.
=item B<-e Error Path> =item B<-e Error Path>
Specify a new path to receive the standard error output for the job. Specify a new path to receive the standard error output for the job.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment