Current Path : /home/usr.opt/mysql57/mysql-test/include/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/include/show_file_size.inc |
# Print the size of the given file in bytes. The file name # is given in the environment variable FILE_TO_CHECK. The # file name FILE_TO_CHECK is given relative to the data directory. # # Usage: # # let MYSQLD_DATADIR=`SELECT @@datadir`; # let FILE_TO_CHECK=test/t1.ibd; # --source include/show_file_size.inc # perl; my $file = $ENV{'MYSQLD_DATADIR'}.$ENV{'FILE_TO_CHECK'}; my $size = -s "$file"; print "The size of file '" . $ENV{FILE_TO_CHECK} . "' is $size bytes.\n"; EOF