IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 24, 2015, 6:31:45 PM (11 years ago)
Author:
watersc1
Message:

I forgot the schedulers are different

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/sc_remote_exec.pl

    r38180 r38186  
    171171# Run real command
    172172my (undef,$remote_command) = &uri_convert($uri_command);
    173 my $ssh_exec_stdout = &ssh_exec_command("msub -V $remote_command");
     173my $ssh_exec_stdout;
     174
     175if ($remote_recipe{SCHEDULER} eq 'MOAB') {
     176    $ssh_exec_stdout = &ssh_exec_command("msub -V $remote_command");
     177}
     178elsif ($remote_recipe{SCHEDULER} eq 'SLURM') {
     179    $ssh_exec_stdout = &ssh_exec_command("sbatch $remote_command");
     180}
     181else {
     182    &my_die("No scheduler defined", $remote_id, 0, 'pending');
     183}
    174184if ($#{ $ssh_exec_stdout } != -1) { # Parse the output
    175185    $job_id = ${ $ssh_exec_stdout }[0];
Note: See TracChangeset for help on using the changeset viewer.