diff --git a/xCAT-server/bin/replaycons b/xCAT-server/bin/replaycons index 043d972c0..d79328a0d 100755 --- a/xCAT-server/bin/replaycons +++ b/xCAT-server/bin/replaycons @@ -72,7 +72,7 @@ if ($hmtab) { my $file = "/var/log/consoles/$node"; #use confluent if it is there -if ((-x "/opt/confluent/bin/confetty") || (-x "/usr/bin/confetty")) { +if (((-x "/opt/confluent/bin/confetty") || (-x "/usr/bin/confetty")) && -f "/var/log/confluent/consoles/$node") { $file = "/var/log/confluent/consoles/$node"; }