]> mj.ucw.cz Git - bex.git/commitdiff
run: make ssh allocate a PTY
authorMartin Mares <mares@kam.mff.cuni.cz>
Thu, 16 Feb 2012 15:45:51 +0000 (16:45 +0100)
committerroot <root@kam.mff.cuni.cz>
Thu, 16 Feb 2012 15:45:51 +0000 (16:45 +0100)
lib/bin/bex-run

index 66b9efc89ed0f829041ae92b9bb5400b4d315e79..270c0ce9b66d23baa25700a93e75439d4ca3d903 100755 (executable)
@@ -131,7 +131,7 @@ sub run_job_body($$$) {
 
        update_status($mach, $jid, 'RUN', $queue);
        my $lf = $queue->log_file($mach, $jid);
-       system 'bash', '-o', 'pipefail', '-c', "$BEX::Config::ssh_command $host '$rtmp ; e=\$? ; rm -f $rtmp ; exit \$e' 2>&1 | tee -a $lf";
+       system 'bash', '-o', 'pipefail', '-c', "$BEX::Config::ssh_command -t $host '$rtmp ; e=\$? ; rm -f $rtmp ; exit \$e' 2>&1 | tee -a $lf";
        if ($?) {
                return ('FAILED', 'Job failed ' . exit_status($?));
        } else {