Re: Recursive proc/check file size
- From: Ralf Fassel <ralfixx@xxxxxx>
- Date: Mon, 19 May 2008 10:34:06 +0200
* Neil Madden <nem@xxxxxxxxxxxxx>
| proc checksize {myfile {prevsize 0}} {
| set filesize [file size $myfile]
| puts $filesize
| if {$filesize > 0 && $filesize == $prevsize} {
| puts "all done"
On a loaded machine, or due to flushing behaviour, the 'all done'
might not be true.
While the approach of using 'prevsize' as an additional argument
instead of a global variable is good advice, I would not recommend the
whole procedure as a solution the original problem. AF has posted a
different solution in the other thread using a redirected pipe which
seems better suited here (
Message-ID: <9e7c1925-e58c-48d1-b189-324132abb57d@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
).
R'
.
- Follow-Ups:
- Re: Recursive proc/check file size
- From: Neil Madden
- Re: Recursive proc/check file size
- References:
- Recursive proc/check file size
- From: Kevin Walzer
- Re: Recursive proc/check file size
- From: Neil Madden
- Recursive proc/check file size
- Prev by Date: Re: keyed list with dot operation
- Next by Date: Re: How to get path?
- Previous by thread: Re: Recursive proc/check file size
- Next by thread: Re: Recursive proc/check file size
- Index(es):
Relevant Pages
|