If you're on a Unix-like system you might be able to tell the program to write to "/dev/stdout", then capture the standard output of the program with backticks as you already show.
-- Chip Salzenberg, Free-Floating Agent of Chaos
Comment on Re: Redirect file write from external program to STDOUT