# the usual solution would be to add descriptors to # redirect STDERR to STDOUT system("$command 2>&1");