- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Proc to list directory sizes
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
тАО07-15-2003 08:56 AM
тАО07-15-2003 08:56 AM
Proc to list directory sizes
I have a "TREE" executable which is handy, but it only produces a display of the directory structure, and I don't have the source for it to possibly go in and hack it for size calculations.
I would appreciate if you could share it.
Thanks in advance,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2003 10:40 PM
тАО07-15-2003 10:40 PM
Re: Proc to list directory sizes
I don't know any commad procedure to do this.
I use a old DIR command as following:
DIRECTORY/SIZE/PAGE/TOTAL device
where device is your disk to examine.
You can add /PAGE do display one page at time and /OUT=filename to redirect to a file.
Bye
Antoniov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2003 11:07 PM
тАО07-15-2003 11:07 PM
Re: Proc to list directory sizes
reading my post I see command is wrong written
Correct by:
DIRECTORY/SIZE/TOTAL device:[000000...]
i.e.
DIRECTORY/SIZE7TOTAL SYS$SYSDEVICE:[000000...]
Bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2003 05:31 AM
тАО07-16-2003 05:31 AM
Re: Proc to list directory sizes
disk:[dir.subdir1.subdir2] it would come back and give file size totals:
disk:[dir] xx blocks
disk:[dir.subdir1] has xxx blocks
disk:[dir.subdir1.subdir2] has xxxx blocks
without listing all the files. I have a 180GB array with "many" subdirectories and a "tidy" listing of space consumption is what I'm after.
I guess I better get busy writing my own!
Thanks,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2003 05:46 AM
тАО07-16-2003 05:46 AM
Re: Proc to list directory sizes
DIR/TOT don't display the content of a dir but only the total.
You can use /SIZE=ALLOC to calcolate allocated blocks or /SIZE=USE to calcolate used block.
Tyep HELP DIR for furthemore information.
HTH
Antoniov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2003 12:05 PM
тАО07-16-2003 12:05 PM
Re: Proc to list directory sizes
Long time since I used vms but if I remember well
the following command is the one I used
$ spa/nowait dir/size=used/total/out=disk_usage.dat disk$whatever:[000000...]*
the result can be type/viewed from disk_usage.dat once the command is finished executing.
I dont have a vms to read the help from but I thing it is correct
Have a read at Help dir I am sure it could be made to meet your need,s
Whatever keep us informed ... tell me if my memory as faded..
Jean-Pierre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2003 12:47 PM
тАО07-16-2003 12:47 PM
Re: Proc to list directory sizes
I do agree dir/tot is the closest you gonna get directly. You either need to wrap some DCL around it to get a one-line output like the Unix du.
If you do want to use a compiled langunage
Nope (simulated purge) should be a good start that only requires minor tweaks to turn it into a du clone.
Greetings, Martin
P.S. Nope is at http://www.decus.de:8080/www/vms/sw/nope.htmlx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2003 10:58 PM
тАО07-16-2003 10:58 PM
Re: Proc to list directory sizes
Unix command du display as following
________________________________
nnnn /dir1
nnnn /dir1/dir2
________________________________
Vms DIR/TOT display as following
________________________________
DISK:[DIR1]
Total of xx files, nnnn blocks
DISK:[DIR1.DIR2]
Total of xx files, nnnn blocks
________________________________
It is very simble with a command procedure compact an output file.
Bye Antoniov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2003 04:12 PM
тАО07-17-2003 04:12 PM
Re: Proc to list directory sizes
It defaults to the disk you are on, otherwise specify the disk you want as a param (with the colon)
eg: $ @ds dsa2:
$!
$ set nover
$ set noon
$ pipe dir 'p1'[000000...]/tot/siz | sea sys$input dir,tot/out=sys$login:ds.tmp
$ open/read/err=noop TMP sys$login:ds.tmp
$ loop:
$ read/error=eof tmp line
$ line1=line
$ read/error=eof tmp line
$ write sys$output line1+" "+line
$ goto loop
$!
$ eof:
$! Uncomment next line if you want the grand total as well
$! write sys$output line1
$ close tmp
$ delete sys$login:ds.tmp;*
$ exit
$!
$ noop:
$ write sys$output "Can not open temp file.."
$ exit %X10018292