grateful thanks for the response. What this seems to do, is verify that executing the process 'nmblookup' was indeed successful and not the fact that the result of the nmblookup was a failure. I've tried many permutations of where to capture the exit status but the only time i get anything other than 0, is if i try something that Perl doesn't like and the code itself fails.