in reply to Question on system function

If I understand your question correctly, and assuming you're using *nix, you should probably change
system "abc -add $file";

to

system "abc -add $file >abc.out 2>abc.err";

You should see the messages in one file or the other.