From e8b65da9156f70d2919a61185f444db06d736873 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 30 Oct 2007 14:33:52 +0000 Subject: [PATCH] make psh display reasonable output even if command being ran doesn't add a newline git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@21 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client-2.0/usr/bin/psh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-client-2.0/usr/bin/psh b/xCAT-client-2.0/usr/bin/psh index feffbf476..1648b0f56 100755 --- a/xCAT-client-2.0/usr/bin/psh +++ b/xCAT-client-2.0/usr/bin/psh @@ -95,7 +95,8 @@ sub processoutput { #This way, one arbiter handles output, no interrupting close($readyh); next; } - print $nodehdl{$readyh}.": ".$line; + chomp($line); + print $nodehdl{$readyh}.": ".$line."\n"; } return $rc; }