Redirect output in processing

Dan McCabe fp at mccabes.us
Sun Jan 13 15:12:52 PST 2013


Wally,

I'm porting my files and menus from UNIX to Windows (not my idea).   I have
menu scripts that delete the key and data in a temporary file before
running reports.  I have always redirected the stdout to /dev/null.  In
processing, I am using IUA processing to create report based on user input.
 When I run a system command to copy records to my temp file, I direct
stdout to /dev/null and that way the user doesn't see the reading records,
selecting records part.

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 ">"

Dan

On Sun, Jan 13, 2013 at 5:36 PM, Wally Turnbull <wally at tbull.com> wrote:

> Dan,
>
> Use "> nul" (with just one L) for Windows console (DOS) to redirect to
> /dev/null
>
> I've not followed this thread but Del fp$$*.bat and fp*.bat are
> essentially the same and will delete any bat script files starting with fp.
>
> Wally
>
>
> On Jan 13, 2013, at 2:22 PM, Dan McCabe wrote:
>
> > Richard,
> >
> > Do I need the first part "Del fp$$*.bat". To be more specific,  I've been
> > using a system command to copy records from inside a non standard input
> > processing (using -z on a clerk command line).  The command line
> generated
> > is "dreport file -flags > /dev/null".    How do I format that for
> Windows?
> >
> > Dan
> >
> > On Sun, Jan 13, 2013 at 2:12 PM, Richard Kreiss <rkreiss at verizon.net>
> wrote:
> >
> >> Try command something like this:
> >>
> >> Del fp$$*.bat > NULL
> >>
> >> Richard Kreiss
> >> GCC Consulting
> >>
> >>> -----Original Message-----
> >>> From: filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com
> >>> [mailto:filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com]
> On
> >>> Behalf Of Dan McCabe
> >>> Sent: Sunday, January 13, 2013 1:32 PM
> >>> To: FilePro Mailing List
> >>> Subject: Redirect output in processing
> >>>
> >>> I'm trying to tweak my processing from UNIX to Windows.  I have several
> >>> system commands that redirect screen output to /dev/null.  In Windows,
> >> I've
> >>> tried changing it to \device\null and just NUL.  Both produce a bad
> >> command
> >>> line error.  My process works if I take it all out, but then my screen
> >> starts
> >>> displaying things I don't want the end user to see.  What am I missing?
> >>>
> >>> Thanks,
> >>>
> >>> Dan
> >>> -------------- next part --------------
> >>> An HTML attachment was scrubbed...
> >>> URL: http://mailman.celestial.com/pipermail/filepro-
> >>> list/attachments/20130113/a20f3bfe/attachment.html
> >>> _______________________________________________
> >>> Filepro-list mailing list
> >>> Filepro-list at lists.celestial.com
> >>> Subscribe/Unsubscribe/Subscription Changes
> >>> http://mailman.celestial.com/mailman/listinfo/filepro-list
> >>
> >>
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL:
> http://mailman.celestial.com/pipermail/filepro-list/attachments/20130113/a844ff6f/attachment.html
> > _______________________________________________
> > Filepro-list mailing list
> > Filepro-list at lists.celestial.com
> > Subscribe/Unsubscribe/Subscription Changes
> > http://mailman.celestial.com/mailman/listinfo/filepro-list
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20130113/5db538b6/attachment.html 


More information about the Filepro-list mailing list