Re: what is similar to shell `du' in perl

2004-03-04 Thread Harry Putnam
Ralf Schaa <[EMAIL PROTECTED]> writes: > hi there, > > i helped myself with : $volsize = `du -ms $item` > with the backticks-operator (``) the system-own function is used and > output is written in the variable $volsize - check backtick-operator. > > works also on windows when the unxutils are in

Re: what is similar to shell `du' in perl

2004-03-04 Thread Harry Putnam
Steve Mayer <[EMAIL PROTECTED]> writes: > Harry, > > Here's an implementation of du written in Perl. > > http://www.perl.com/language/ppt/src/du/du.hewgill Nice ... thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: what is similar to shell `du' in perl

2004-03-04 Thread Ralf Schaa
hi there, i helped myself with : $volsize = `du -ms $item` with the backticks-operator (``) the system-own function is used and output is written in the variable $volsize - check backtick-operator. works also on windows when the unxutils are installed (sourceforge.net) cheers, -ralf Harry Putna

Re: what is similar to shell `du' in perl

2004-03-04 Thread zsdc
Harry Putnam wrote: I'm spending lots of time looking thru perl functions but not finding something to give me a quick reading on the size of a directory. How is that task handled in perl? First of all, you can use du: $output = `du -sk /etc`; ($kilobytes) = $output =~/^(\d+)/ or die; There's als

Re: what is similar to shell `du' in perl

2004-03-04 Thread Steve Mayer
Harry, Here's an implementation of du written in Perl. http://www.perl.com/language/ppt/src/du/du.hewgill Steve On Thu, Mar 04, 2004 at 10:07:05AM -0600, Harry Putnam wrote: > I'm spending lots of time looking thru perl functions but not finding > something to give me a quick reading on th