diff options
Diffstat (limited to 'sql-bench/copy-db.sh')
-rw-r--r-- | sql-bench/copy-db.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql-bench/copy-db.sh b/sql-bench/copy-db.sh index f5394b09923..3d2f418280c 100644 --- a/sql-bench/copy-db.sh +++ b/sql-bench/copy-db.sh @@ -22,12 +22,13 @@ $VER = "1.0"; use Getopt::Long; +use Cwd; use DBI; $max_row_length=500000; # Don't create bigger SQL rows that this $opt_lock=1; # lock tables -chomp($pwd = `pwd`); $pwd = "." if ($pwd eq ''); +$pwd = cwd(); $pwd = "." if ($pwd eq ''); require "$pwd/server-cfg" || die "Can't read Configuration file: $!\n"; |