HP3000-L Archives

September 2000, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Tad Bochan <[log in to unmask]>
Reply To:
Tad Bochan <[log in to unmask]>
Date:
Fri, 22 Sep 2000 23:28:33 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
Hi,
What you need to do is

      setvar hperrstolist false
      setvar hpmsgfence 1
      listfile  (!fileset),6 > afileset
      setvar hperrstolist true
      setvar hpmsgfence 0

       If there are no qualifying files, afileset will have an eof of zero,
       and there are no warning messages displayed.
       The hperrstolist variable controls whether or not the CI
       displays command errors to the stdlist or stderror,
       so setting it false means that you only get filenames
       in 'afileset'.
       The hpmsgfence set to 1 means that warning messages
        do not get displayed at all.
        So thats two ways of suppressing unwanted output in your
        file, but using the hperrstolist is the better one.

Try it.

Rgds, Tad.

ps. You can reduce no of lines in the above with :-
setvar hperrstolist setvar(hpmsgfence,1)=0
listfile (!fileset),6 > afileset
setvar hperrstolist setvar(hpmsgfence,0)=0

ATOM RSS1 RSS2