<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Proc to list directory sizes in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/proc-to-list-directory-sizes/m-p/3024439#M60898</link>
    <description>Hello&lt;BR /&gt;&lt;BR /&gt;Long time since I used vms but if I remember well&lt;BR /&gt;&lt;BR /&gt;the following command is the one I used &lt;BR /&gt;&lt;BR /&gt;$ spa/nowait dir/size=used/total/out=disk_usage.dat disk$whatever:[000000...]*&lt;BR /&gt;&lt;BR /&gt;the result can be type/viewed from disk_usage.dat once the command is finished executing.&lt;BR /&gt;&lt;BR /&gt;I dont have a vms to read the help from but I thing it is correct &lt;BR /&gt;&lt;BR /&gt;Have a read at Help dir I am sure it could be made to meet your need,s&lt;BR /&gt;&lt;BR /&gt;Whatever keep us informed ... tell me if my memory as faded..&lt;BR /&gt;&lt;BR /&gt;Jean-Pierre</description>
    <pubDate>Wed, 16 Jul 2003 19:05:27 GMT</pubDate>
    <dc:creator>Huc_1</dc:creator>
    <dc:date>2003-07-16T19:05:27Z</dc:date>
    <item>
      <title>Proc to list directory sizes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/proc-to-list-directory-sizes/m-p/3024434#M60893</link>
      <description>Does anyone have a command procedure (or was it an executable), that would traverse a directory structure and report space consumption subtotals for all subdirectories on a given disk?  I had one from ~4 or 5 years ago and I didn't write it.  I seem to recall it was called DIRSPACE or something to that effect.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;I would appreciate if you could share it.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Art</description>
      <pubDate>Tue, 15 Jul 2003 15:56:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/proc-to-list-directory-sizes/m-p/3024434#M60893</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2003-07-15T15:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc to list directory sizes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/proc-to-list-directory-sizes/m-p/3024435#M60894</link>
      <description>Hi Art,&lt;BR /&gt;I don't know any commad procedure to do this.&lt;BR /&gt;I use a old DIR command as following:&lt;BR /&gt;DIRECTORY/SIZE/PAGE/TOTAL device&lt;BR /&gt;where device is your disk to examine.&lt;BR /&gt;You can add /PAGE do display one page at time and /OUT=filename to redirect to a file.&lt;BR /&gt;&lt;BR /&gt;Bye&lt;BR /&gt;Antoniov&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Jul 2003 05:40:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/proc-to-list-directory-sizes/m-p/3024435#M60894</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-07-16T05:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc to list directory sizes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/proc-to-list-directory-sizes/m-p/3024436#M60895</link>
      <description>Excuse me Art,&lt;BR /&gt;reading my post I see command is wrong written&lt;BR /&gt;Correct by:&lt;BR /&gt;DIRECTORY/SIZE/TOTAL device:[000000...]&lt;BR /&gt;i.e. &lt;BR /&gt;DIRECTORY/SIZE7TOTAL SYS$SYSDEVICE:[000000...]&lt;BR /&gt;&lt;BR /&gt;Bye&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Jul 2003 06:07:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/proc-to-list-directory-sizes/m-p/3024436#M60895</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-07-16T06:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc to list directory sizes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/proc-to-list-directory-sizes/m-p/3024437#M60896</link>
      <description>I understand that, but what I'm referring to was a procedure that would give totals for each subdirectory - eg. say you had&lt;BR /&gt;disk:[dir.subdir1.subdir2] it would come back and give file size totals:&lt;BR /&gt;&lt;BR /&gt;disk:[dir] xx blocks&lt;BR /&gt;disk:[dir.subdir1] has xxx blocks&lt;BR /&gt;disk:[dir.subdir1.subdir2] has xxxx blocks&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;I guess I better get busy writing my own!&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Art</description>
      <pubDate>Wed, 16 Jul 2003 12:31:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/proc-to-list-directory-sizes/m-p/3024437#M60896</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2003-07-16T12:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc to list directory sizes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/proc-to-list-directory-sizes/m-p/3024438#M60897</link>
      <description>Hi Art&lt;BR /&gt;DIR/TOT don't display the content of a dir but only the total.&lt;BR /&gt;You can use /SIZE=ALLOC to calcolate allocated blocks or /SIZE=USE to calcolate used block.&lt;BR /&gt;Tyep HELP DIR for furthemore information.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Antoniov&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Jul 2003 12:46:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/proc-to-list-directory-sizes/m-p/3024438#M60897</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-07-16T12:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc to list directory sizes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/proc-to-list-directory-sizes/m-p/3024439#M60898</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;Long time since I used vms but if I remember well&lt;BR /&gt;&lt;BR /&gt;the following command is the one I used &lt;BR /&gt;&lt;BR /&gt;$ spa/nowait dir/size=used/total/out=disk_usage.dat disk$whatever:[000000...]*&lt;BR /&gt;&lt;BR /&gt;the result can be type/viewed from disk_usage.dat once the command is finished executing.&lt;BR /&gt;&lt;BR /&gt;I dont have a vms to read the help from but I thing it is correct &lt;BR /&gt;&lt;BR /&gt;Have a read at Help dir I am sure it could be made to meet your need,s&lt;BR /&gt;&lt;BR /&gt;Whatever keep us informed ... tell me if my memory as faded..&lt;BR /&gt;&lt;BR /&gt;Jean-Pierre</description>
      <pubDate>Wed, 16 Jul 2003 19:05:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/proc-to-list-directory-sizes/m-p/3024439#M60898</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2003-07-16T19:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc to list directory sizes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/proc-to-list-directory-sizes/m-p/3024440#M60899</link>
      <description>Hello Art,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;If you do want to use a compiled langunage &lt;BR /&gt;Nope (simulated purge) should be a good start that only requires minor tweaks to turn it into a du clone.&lt;BR /&gt;&lt;BR /&gt;Greetings, Martin&lt;BR /&gt;&lt;BR /&gt;P.S. Nope is at &lt;A href="http://www.decus.de:8080/www/vms/sw/nope.htmlx" target="_blank"&gt;http://www.decus.de:8080/www/vms/sw/nope.htmlx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Jul 2003 19:47:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/proc-to-list-directory-sizes/m-p/3024440#M60899</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2003-07-16T19:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc to list directory sizes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/proc-to-list-directory-sizes/m-p/3024441#M60900</link>
      <description>Hi Art,&lt;BR /&gt;Unix command du display as following&lt;BR /&gt;________________________________&lt;BR /&gt;nnnn /dir1&lt;BR /&gt;nnnn /dir1/dir2&lt;BR /&gt;________________________________&lt;BR /&gt;&lt;BR /&gt;Vms DIR/TOT display as following&lt;BR /&gt;________________________________&lt;BR /&gt;DISK:[DIR1]&lt;BR /&gt;&lt;BR /&gt;Total of xx files,  nnnn blocks&lt;BR /&gt;&lt;BR /&gt;DISK:[DIR1.DIR2]&lt;BR /&gt;&lt;BR /&gt;Total of xx files,  nnnn blocks&lt;BR /&gt;________________________________&lt;BR /&gt;It is very simble with a command procedure compact an output file.&lt;BR /&gt;&lt;BR /&gt;Bye Antoniov&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jul 2003 05:58:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/proc-to-list-directory-sizes/m-p/3024441#M60900</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-07-17T05:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc to list directory sizes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/proc-to-list-directory-sizes/m-p/3024442#M60901</link>
      <description>Ok, This should give you what you want...&lt;BR /&gt;&lt;BR /&gt;It defaults to the disk you are on, otherwise specify the disk you want as a param (with the colon)&lt;BR /&gt;&lt;BR /&gt;eg: $ @ds dsa2:&lt;BR /&gt;&lt;BR /&gt;$!&lt;BR /&gt;$ set nover&lt;BR /&gt;$ set noon&lt;BR /&gt;$ pipe dir 'p1'[000000...]/tot/siz | sea sys$input dir,tot/out=sys$login:ds.tmp&lt;BR /&gt;$ open/read/err=noop TMP sys$login:ds.tmp&lt;BR /&gt;$ loop:&lt;BR /&gt;$ read/error=eof tmp line&lt;BR /&gt;$ line1=line&lt;BR /&gt;$ read/error=eof tmp line&lt;BR /&gt;$ write sys$output line1+" "+line&lt;BR /&gt;$ goto loop&lt;BR /&gt;$!&lt;BR /&gt;$ eof:&lt;BR /&gt;$! Uncomment next line if you want the grand total as well&lt;BR /&gt;$! write sys$output line1&lt;BR /&gt;$ close tmp&lt;BR /&gt;$ delete sys$login:ds.tmp;*&lt;BR /&gt;$ exit&lt;BR /&gt;$!&lt;BR /&gt;$ noop:&lt;BR /&gt;$ write sys$output "Can not open temp file.."&lt;BR /&gt;$ exit %X10018292</description>
      <pubDate>Thu, 17 Jul 2003 23:12:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/proc-to-list-directory-sizes/m-p/3024442#M60901</guid>
      <dc:creator>Alex  Daniels</dc:creator>
      <dc:date>2003-07-17T23:12:12Z</dc:date>
    </item>
  </channel>
</rss>

