Change the to , currently you are directing the output of your
command back to your command.
On Fri, Oct 23, 2009 at 1:56 AM, Richard Blackman
richard.black...@itvision.com.au wrote:
Hi All,
I am trying to capture the output from an EXECUTE statement on a command
line program but nothing is
] Capturing output from a Command line program?
Change the to , currently you are directing the output of your
command back to your command.
On Fri, Oct 23, 2009 at 1:56 AM, Richard Blackman
richard.black...@itvision.com.au wrote:
Hi All,
I am trying to capture the output from
-users-
boun...@listserver.u2ug.org] On Behalf Of Norman Bauer
Sent: Friday, October 23, 2009 8:02 AM
To: U2 Users List
Subject: Re: [U2] Capturing output from a Command line program?
Change the to , currently you are directing the output of your
command back to your command.
On Fri, Oct 23
In *nix I've used cat. Not sure what the syntax would be in Windows.
Here's an attempt:
CMD = 'cat ':EMAIL.TEMPFILE:' | C:\usr\lib\sendmail -t'
CMD = 'C:\usr\lib\sendmail -t ':EMAIL.TEMPFILE:' -'
another option might be to see if sendmail has an option to take
it's input from a file,
Richard,
When Universe shells down via the DOS command, it (Universe) doesn't
reliably handle standard output and/or error. The result is that DOS
output isn't always captured when EXECUTE'd (it seems to depend on the
command).
A more reliable strategy is to redirect the command output
I thought I'd try this on UniData v7.2 (Windows 2K3). Here's what I get:
4 Dev (0)- BPTEST EXECUTE \!dir\ CAPTURING OUTPUT ; CRT OUTPUT
Compiling Unibasic: SAVEDLISTS\BpTest_383842951 in mode 'p'.
compilation finished
Volume in drive E is ShareDbms Volume Serial Number is C45E-045F
Hi All,
I am trying to capture the output from an EXECUTE statement on a command
line program but nothing is being captured, even though I know there is some
output.
Here is the command
CMD = 'C:\usr\lib\sendmail -t ':EMAIL.TEMPFILE:''
EXECUTE DOS /c:CMD CAPTURING TRASH