Redirect output in processing
Dan McCabe
fp at mccabes.us
Mon Jan 14 10:15:11 PST 2013
On Mon, Jan 14, 2013 at 12:43 PM, Kenneth Brody <kenbrody at spamcop.net>wrote:
> On 1/13/2013 6:12 PM, Dan McCabe wrote:
> [...]
>
> When I change ">/dev/null" in my menu script or my processing to >nul or
>>
>>> \device\null, I get a filePro error telling me I have a bad command on
>>> the
>>>
>> command line. The error always points to the ">"
>>
> [...]
>
> That makes no sense, since I have never seen Windows ever give an
> indicator as to where it thinks the error is.
> But, since you are saying that it's a filePro error, I am going to go out
> on a limb and ass/u/me that this is a SYSTEM command within processing, and
> not a menu command line, and that filePro is complaining about a syntax
> error in your processing, totally unrelated to the command you're trying to
> execute.
>
Ken, your assumption is correct. I knew what I meant, but didn't
articulate it properly. The filePro error is the result of a system
command. The menu script doesn't produce a filePro error.
>
> If my assumption is correct, please show us the actual prc line you're
> using.
>
> ::show popup ("5","-1") "TEMPORARY FILE COMPLETED, PROCESSING
REPORT":
:ry eq "P":ha = cd <"Rtime -m rpt -v paysel -f pay -y payauto
-r \"reg\" -rw \""{we{"\" -a -u" <hz:
:ry eq "D":ha = cd <"Rtime -m rpt -v paysel -f pay -y payauto
-r \"reg\" -rw \""{we{"\" -a -u -pv" <hz:
:ry eq "P":system ha < "> nul":
:ry eq "D":system ha
::gosub cleanup:
RY is a user input field; cd is the path to run rreport. WE is the week
ending date the user selected.
> However, the point is moot, as redirecting stdout on Windows won't cause
> filePro's output to disappear. (The Windows console API won't allow
> redirection to a file. Nor will it work with redirecting stdin from a
> file.)
I did not know that. That explains why it isn't working.
> Have you considered using "start /min" to run the command in a minimized
> window?
I haven't because I have never heard of that, this is my first foray into
any programming on Windows, I've been using filePro on UNIX for 25 years.
Is that possible from within processing?
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20130114/053b28bb/attachment.html
More information about the Filepro-list
mailing list