From: Martin Mares Date: Thu, 16 Feb 2012 15:45:51 +0000 (+0100) Subject: run: make ssh allocate a PTY X-Git-Tag: v3.0~8 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=685f3f6c6c7851b7f63b04cd22b70b21a7d34a2d;p=bex.git run: make ssh allocate a PTY --- diff --git a/lib/bin/bex-run b/lib/bin/bex-run index 66b9efc..270c0ce 100755 --- a/lib/bin/bex-run +++ b/lib/bin/bex-run @@ -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 {