Changeset 38186 for trunk/ippScripts/scripts/sc_remote_exec.pl
- Timestamp:
- Apr 24, 2015, 6:31:45 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/sc_remote_exec.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/sc_remote_exec.pl
r38180 r38186 171 171 # Run real command 172 172 my (undef,$remote_command) = &uri_convert($uri_command); 173 my $ssh_exec_stdout = &ssh_exec_command("msub -V $remote_command"); 173 my $ssh_exec_stdout; 174 175 if ($remote_recipe{SCHEDULER} eq 'MOAB') { 176 $ssh_exec_stdout = &ssh_exec_command("msub -V $remote_command"); 177 } 178 elsif ($remote_recipe{SCHEDULER} eq 'SLURM') { 179 $ssh_exec_stdout = &ssh_exec_command("sbatch $remote_command"); 180 } 181 else { 182 &my_die("No scheduler defined", $remote_id, 0, 'pending'); 183 } 174 184 if ($#{ $ssh_exec_stdout } != -1) { # Parse the output 175 185 $job_id = ${ $ssh_exec_stdout }[0];
Note:
See TracChangeset
for help on using the changeset viewer.
