Subject: | |
From: | |
Reply To: | Vance, Jeff H (Cupertino) |
Date: | Fri, 21 May 2004 10:36:32 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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 *
|
|
|