Index: trunk/ippScripts/scripts/sc_remote_exec.pl
===================================================================
--- trunk/ippScripts/scripts/sc_remote_exec.pl	(revision 38180)
+++ trunk/ippScripts/scripts/sc_remote_exec.pl	(revision 38186)
@@ -171,5 +171,15 @@
 # Run real command
 my (undef,$remote_command) = &uri_convert($uri_command);
-my $ssh_exec_stdout = &ssh_exec_command("msub -V $remote_command");
+my $ssh_exec_stdout;
+
+if ($remote_recipe{SCHEDULER} eq 'MOAB') {
+    $ssh_exec_stdout = &ssh_exec_command("msub -V $remote_command");
+}
+elsif ($remote_recipe{SCHEDULER} eq 'SLURM') {
+    $ssh_exec_stdout = &ssh_exec_command("sbatch $remote_command");
+}
+else {
+    &my_die("No scheduler defined", $remote_id, 0, 'pending');
+}
 if ($#{ $ssh_exec_stdout } != -1) { # Parse the output
     $job_id = ${ $ssh_exec_stdout }[0];
