scopey has asked for the wisdom of the Perl Monks concerning the following question:
Size seems the only file attribute that always changes and stops changing when the output file is complete. But there must be a better way than this...?? Thank you.my $outputf = 'C:\temp\output_log.txt'; # The following is here just for a reminder: my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime, +$blksize,$blocks) = (0,1,2,3,4,5,6,7,8,9,10,11,12); while (1) { my @stat = stat $outputf; print "\n"; for (@stat) {print "$_\t"} sleep 1; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: automated file move
by pc88mxer (Vicar) on Dec 17, 2007 at 21:01 UTC | |
Re: automated file move
by RaduH (Scribe) on Dec 17, 2007 at 21:19 UTC | |
Re: automated file move
by pfaut (Priest) on Dec 18, 2007 at 00:33 UTC | |
Re: automated file move
by aquarium (Curate) on Dec 17, 2007 at 23:21 UTC | |
Re: automated file move
by megaurav2002 (Monk) on Dec 18, 2007 at 00:14 UTC | |
Re: automated file move
by poolpi (Hermit) on Dec 18, 2007 at 10:05 UTC | |
Re: automated file move
by scopey (Novice) on Dec 20, 2007 at 21:24 UTC |