- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- dir/by_owner of files NOT by a particular user?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2008 12:26 PM
тАО03-14-2008 12:26 PM
dir/by_owner of files NOT by a particular user?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2008 12:52 PM
тАО03-14-2008 12:52 PM
Re: dir/by_owner of files NOT by a particular user?
As for options, you could...
PIPE DIRECT /WIDTH=... ddcu:[...]this.that /NOHEAD /NOTRAIL /COLUM=1 | SEARCH SYS$PIPE target /MATCH=NOT, or such.
Set the width appropriately to allow the pipe to pass the filename and the ownership all on the same line. (If it wraps onto the next line, this won't work.)
or use the classic solution here. A DCL command procedure with f$search in a loop, and using f$file to pull the ownership (items GRP and MEM, or such) for testing with an IF statement. This is the traditional scheme, and there are examples of this loop around.
http://h71000.www7.hp.com/wizard/wiz_4986.html
Or you could use find and grep, but you probably don't have those tools installed.
Stephen Hoffman
HoffmanLabs LLC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2008 12:57 PM
тАО03-14-2008 12:57 PM
Re: dir/by_owner of files NOT by a particular user?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2008 01:23 PM
тАО03-14-2008 01:23 PM
Re: dir/by_owner of files NOT by a particular user?
Or you fetch something -- like grep -- that does have regex capabilities, and use that.
It feels rather weird referring to SEARCH syntax as arcane and comparatively primitive, but -- once you're used to using something built with regex capabilities -- it does seem that way.
DCL and the various lexical functions are the usual solution, as you've found.
Current versions of the Freeware DFU package might also help here, see the SEARCH /NOOWNER mechanism.
I do not know that anyone here passes any suggestions posted here along to OpenVMS Engineering, in any event.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2008 01:46 PM
тАО03-14-2008 01:46 PM
Re: dir/by_owner of files NOT by a particular user?
>>>
I do not know that anyone here passes any suggestions posted here along to OpenVMS Engineering, in any event.
<<
Well, not currently.
Guy ( "mr DCL" ) was a moderator as well, and that worked great.
But, as per his suggestion, an email tp
DCL@HP.COM
and that would do the trick as well.
Maybe, add a pointer to this thread, and any "AYES"'s could be added here.
Count me as one!
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2008 01:50 PM
тАО03-14-2008 01:50 PM
Re: dir/by_owner of files NOT by a particular user?
from your Forum Profile:
I have assigned points to 46 of 132 responses to my questions.
Some date back to 2005.
Maybe you can find some time to do some assigning?
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
Mind, I do NOT say you necessarily need to give lots of points. It is fully up to _YOU_ to decide how many. If you consider an answer is not deserving any points, you can also assign 0 ( = zero ) points, and then that answer will no longer be counted as unassigned.
Consider, that every poster took at least the trouble of posting for you!
To easily find your streams with unassigned points, click your own name somewhere.
This will bring up your profile.
Near the bottom of that page, under the caption "My Question(s)" you will find "questions or topics with unassigned points " Clicking that will give all, and only, your questions that still have unassigned postings.
If you have closed some of those streams, you must "Reopen" them to "Submit points". (After which you can "Close" again)
Do not forget to explicitly activate "Submit points", or your effort gets lost again!!
Thanks on behalf of your Forum colleagues.
PS. - nothing personal in this. I try to post it to everyone with this kind of assignment ratio in this forum. If you have received a posting like this before - please do not take offence - none is intended!
PPS. - Zero points for this.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2008 03:39 AM
тАО03-17-2008 03:39 AM
Re: dir/by_owner of files NOT by a particular user?
If you are trying to ensure that the files in a directory are owned by the same user as the directory then you may be interested in this
http://vms.process.com/scripts/fileserv/fileserv_search.exe?package=claim
Purely Personal Opinion