HP3000-L Archives

January 1997, Week 5

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:
Reply To:
Date:
Thu, 30 Jan 1997 16:18:50 -0500
Content-Type:
text/plain
Parts/Attachments:
Re: (35 lines)
On Jan 30, 10:17am, Dr. Ferenc Nagy wrote:
> Subject: Stop echo of error messages
> Hi Roy:
> Look at the folowing UDC. IF I invoke it with an existing file then I
> get no echo, as I want If I invoke it with an non-existing file then I
> get two lines on the screen but I need only the JCW setting withot
echo.
> How can I suppress these two lines?
>  :help exists
>  USER DEFINED COMMAND
>  exists file,jc=exists
>  option nolist,help
>  setjcw cierror=0
>  continue
>  listf !file;$null
>  if cierror=907 then
>     setjcw !jc=0
>  else
>     setjcw !jc=1
>  endif
>
>  :exists nonexfil
>  LISTF NONEXFIL;$NULL
>  NON-EXISTENT FILE.  (CIERR 907)
>....

You need to set the HPMSGFENCE variable to 2 to supress the printing of
error messages.

Steve Fulton                         [log in to unmask]
ISL International Surveys Ltd.
Willowdale, Ont., Canada

"Things are never so bad that they can't get worse."

ATOM RSS1 RSS2