HP3000-L Archives

May 2004, Week 3

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:
"Vance, Jeff H (Cupertino)" <[log in to unmask]>
Reply To:
Vance, Jeff H (Cupertino)
Date:
Fri, 21 May 2004 10:36:32 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (32 lines)
Steve,

finfo() does not accept any wildcards for the filename. So, if you were
hoping to do:
  if finfo('/dir/log5-20-04.####', 'exists') then

it won't work -- too bad because it would be useful.  However, if this
is what you wanted to do, you can use LISTFILE and test the HPCIERR
result.  For example:
  setvar hpcierr 0
  continue
  listfile /dir/log5-20-04.#### >$null
  if hpcierr = 0 then
     # one or more files exist matching the pattern
  else
     # -9043, CIWARN 9043, is returned by LISTFILE if a pattern is
supplied and no files match.
  endif

>    I'm trying to write a command file to test for a posix 
> file and that looks like log5-20-04.1234, with the 1234 being 
> a random number.  I haven't been able to get FINFO to return 
> a positive response to the file EXISTSance.  Can FINFO 
> recognize a variable named file and if so what is the syntax 
> for the command and if not are there any other options?
 
HTH,
 Jeff Vance, vCSY

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2