I'd like to capture the output of shell commands in the Stata log. For example I tried:
Code:
log using foo,text replace
! echo hello
and the "hello" appears on the console, but is omitted from the log. Is there a reasonable way to get it into the log? Preferrably that works in Linux, MacOS and Windows. My actual need is for error message from an application to get to the log. I can divert them from standard error to standard out, that didn't turn out to be enough.