SEENGS1@MACALSTR.BITNET (02/17/88)
Hello there. I have a small problem using the f$search lexical. Given the following directory listing: $ dir [...]foo.* Directory DUA1:[EENGSTRO.PUBLIC] FOO.DIR;1 1/1 11-FEB-1988 10:58 (RWE,RWE,,RE) Directory DUA1:[EENGSTRO.PUBLIC.FOO] FOO.COM;1 25/25 11-FEB-1988 13:47 (RE,RWED,,RE) FOO.DAT;1 17/17 11-FEB-1988 13:47 (RE,RWED,,RE) If I 'execute' the following code: $ SearchSpec = "DUA1:[EENGSTRO.PUBLIC...]FOO.*;" $ Num = 0 $Search: Num = Num + 1 $ SearchItem'Num' = f$search(SearchSpec,1) $ if SearchItem'Num' .eqs. "" then $ EXIT $ Write sys$output " ''Num') ",SearchItem'Num' $ goto Search I get the following output: 1) DUA1:[EENGSTROM.PUBLIC]FOO.DIR;1 2) DUA1:[EENGSTROM.PUBLIC.FOO]FOO.COM;1 3) DUA1:[EENGSTROM.PUBLIC.FOO]FOO.DAT;1 While, someone else 'executing' the same code gets only this: 1) DUA1:[EENGSTROM.PUBLIC]FOO.DIR;1 Could someone enlighten me on why this is so? Also, this is on a VAX 11/780 under VMS 4.7. Many thanks, Eric Engstrom - Bitnet: SEENGS1@Macalstr 1600 Grand Avenue Macalester College St. Paul, Minnesota 55105-1899, U.S.A. [ Profanity is the one language all programmers know best. ]
scjones@sdrc.UUCP (Larry Jones) (02/22/88)
In article <8802210237.AA27516@ucbvax.Berkeley.EDU>, SEENGS1@MACALSTR.BITNET writes: > [he gets more files when doing f$search() that someone else does] Could it be file protection? If the other people don't have read permission on the directory they can't search it to find the other files. ---- Larry Jones UUCP: uunet!sdrc!scjones SDRC MAIL: 2000 Eastman Dr., Milford, OH 45150 AT&T: (513) 576-2070 "When all else fails, read the directions."