I'd like to execute an external program (under LINUX) from within a Basic script, and I would like to obtain it's stdout, stderr and it's return value. I know that I could do it for example as follows (untested):
1. Shell( _ "/bin/bash -c 'some_program >/tmp/out 2>&1; echo $? >/tmp/retval'") 2. Read the files "/tmp/out" and "/tmp/retval". But, is there a simpler way? Is there an alternative to "shell"? -- Dipl.-Phys. Felix E. Klee Email: [EMAIL PROTECTED] (work), [EMAIL PROTECTED] (home) Tel: +49 721 8307937, Fax: +49 721 8307936 Linuxburg, Goethestr. 15A, 76135 Karlsruhe, Germany --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]