Re: How to calculate a directory size?
On Thu, 09 Oct 2008 13:07:22 +0000, viza wrote:
On Thu, 09 Oct 2008 03:19:22 -0700, db2 wrote:
Otherwise du is as fast as you can ever get - think about it - if perl
could do what du does faster than du, then du would be implemented in
perl (and that would be stupid).
Performance isn't the only consideration. Perl is a pretty heavy-duty
pre-req for a simple command like du.
As a matter of fact, du itself is sometimes too much of a resource hog.
Research the busybox command which is used to reduce the overall footprint
by implementing simple versions of many of these system utility commands
in a single, small, executable.
Remember, unix-like software often runs in small embedded devices with
little memory and/or disk space.
BUT -- it is unlikely that there could be any substantial improvement on
the performance of the du command. Depending on how critical this and
other filesystem performance is, the original poster could investigete
which harware, filesystem, and/or operating system best meets his needs.
- Re: Wait for background processes to complete
... To be able to execute commands in the background and wait for their ... The documentation I am referring to is http://perldoc.perl.org/. ... You can run a command in the background with: ... There is a general problem with perl documentation: ...
- Re: Perl For Amateur Computer Programmers
... >professional computer programmers could use with the same ease as Basic. ... >Perl For Amateur Computer Programmers ... Also, taking into account that you're appealing to "scientists", it ... Also, as a side note, you seem to use the noun "command" in a naive ...
- Obtaining complete Unix command line that evoked script as string
... If there is a more appropriate list for this, let me know; the other perl lists I've seen seem to specialised for this. ... Note this is not just the arguments of the call to the script, but everything including pipes and redirects, etc., e.g. ... Ideally the perl interpreter would grab the complete command line as its evoked and I'd access this via a variable. ...
- Re: CLOSING Re: Obtaining complete Unix command line that evoked script as string
... > To: Grant Jacobs; beginners perl ... > perl and less, much less passing that information along to either ... Only shell that launched them is keeping track of the I/O ... > command is executed. ...
- Thanks for the comments Jan. 25, 2006
... "shadow" operating system which is running behind Windows. ... Perl can then collect data from that program and do ... that by sending longer strings etc. to the Windows clipboard and then having ... SendKeysuse a Ctrl V command to paste the information to the text editor ...