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 Share&Dbms Volume Serial Number is C45E-045F
Direct
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 into
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 f
the "<" altogether
>
> George
>
>
>> -Original Message-
>> From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
>> boun...@listserver.u2ug.org] On Behalf Of Norman Bauer
>> Sent: Friday, October 23, 2009 8:02 AM
>> To: U2 Users Li
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.
>
>
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
wrote:
>
> Hi All,
>
> I am trying to capture the output from an EXECUTE statement on a command
> line program but nothing is being captured, even thou
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