This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: Cygwin is SLOW.
- From: "Bernard A Badger" <bab at vx dot com>
- To: "cygwin" <cygwin at cygwin dot com>
- Date: Tue, 16 Jul 2002 10:13:10 -0400
- Subject: RE: Cygwin is SLOW.
Hmm. My Perl book (TYP21days) says that chmod needs write permission on
the ***file***, but I changed the script and it works anyway.
One last time, chm.pl:
$file = "test.file";
chmod ( 0000, ($file) ) || die "chmod ( 0000, (\"$file\") ): $!";
#-w $file || die "perl chmod will fail w/o write permission on $file\n";
$t = time;
while( $t == time ) {}
$t = time;
$secs = 5;
$stop = $t + $secs;
while( time < $stop ) {
chmod (0777, ($file) ) == 1 or die "blah, $!";
$n++;
}
print $n / $secs, " chmods per sec\n";
-w $file || die "test.file is not writeable: $!";
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/