@filecont = $telnet->cmd("grep -i '$contcheck' $directory/$checkfile"); if (@filecont) { $status = 'FAIL'; } else { $status ='PASS'; }