IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38199


Ignore:
Timestamp:
Apr 27, 2015, 2:07:50 PM (11 years ago)
Author:
watersc1
Message:

Merge of job_id fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20150329/ippScripts/scripts/sc_remote_exec.pl

    r38187 r38199  
    184184}
    185185if ($#{ $ssh_exec_stdout } != -1) { # Parse the output
    186     $job_id = ${ $ssh_exec_stdout }[0];
    187     chomp($job_id);
     186    my $line = ${ $ssh_exec_stdout }[0];
     187    chomp($line);
     188    my @line_split = split /\s+/, $line;
     189    $job_id = $line_split[-1];
    188190    $job_id =~ s/\s+//g;
    189191}
    190192
    191193unless(defined($job_id)) { # If we don't have a job_id from this command, it didn't run correctly.
    192     &my_die("No job_id returned.  Sorry.", $remote_id, $PS_EXIT_PROG_ERROR);
     194    &my_die("No job_id returned.  Sorry.", $remote_id, $PS_EXIT_PROG_ERROR, "exec_fail");
    193195}
    194196
Note: See TracChangeset for help on using the changeset viewer.