From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653723422143.tru64-unix-managers.marc@archive.invalid> From: Tru unix user Date: Thu, 31 Jan 2002 16:26:26 +0000 To: tru64-unix-managers Subject: VFS trap. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653723422143 Hi All, I have a programming query. I need to trap 'ls' command, so that it should always display files from a specified directory, rather than from the default current directory. In other words.. # pwd # / # ls Here issuing 'ls' command should not give me the contents from the current directory, but from the other directory say "/usr/users/user1". I don't want to issue "ls /usr/users/user1" command to get this list. Is it some thing to do with VFS. How do I do it? Which system calls I need to use to do this? /sap __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com