I haven't seen the syntax that you have in the 'if' command before (namely the 'a' before the command, and the 'Y'). What does it do?
Is the code snippet meant to check the output of the newlogfile command, and see if it returns 'Y'?
If so, the following code should work:
Code:
if( `/usr/well561/bin/newlogfile 1` eq "Y\n"){
print "True\n";
} else {
print "False\n";
}
(or if newlogfile doesn't output a newline as well, then change "Y\n" to "Y")
Hope this helps,