Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix calling HammerDB added to PATH #601

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion agent/agent
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/bin/sh
########################################################################
# \
cd "$(dirname "$0")"
# \
export LD_LIBRARY_PATH=.././lib:.././lib64:$LD_LIBRARY_PATH
# \
export PATH=.././bin:$PATH
# \
exec .././bin/tclsh8.6 $0 ${1+"$@"}
exec .././bin/tclsh8.6 ${0##*/} ${1+"$@"}
# \
exit
########################################################################
Expand Down
1 change: 1 addition & 0 deletions agent/agent.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@echo off
cd /D "%~dp0"
set path=..\.\bin;%PATH%
START tclsh86t .\agent
1 change: 1 addition & 0 deletions agent/mpstat.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
::if 0 {--*-tcl-*--
@echo off
cd /D "%~dp0"
set path=..\.\bin;%PATH%
if "%OS%" == "Windows_NT" goto WinNT
tclsh86t "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9
Expand Down
2 changes: 2 additions & 0 deletions hammerdb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh
########################################################################
# \
cd "$(dirname "$0")"
# \
export LD_LIBRARY_PATH="./lib:$LD_LIBRARY_PATH"
# \
export PATH="./bin:$PATH"
Expand Down
1 change: 1 addition & 0 deletions hammerdb.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@echo off
cd /D "%~dp0"
set path=.\bin;%PATH%
START wish86t -file .\hammerdb %1 %2
exit
2 changes: 2 additions & 0 deletions hammerdbcli
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh
#########################################################################
## \
cd "$(dirname "$0")"
## \
export LD_LIBRARY_PATH="./lib:$LD_LIBRARY_PATH"
## \
export PATH="./bin:$PATH"
Expand Down
1 change: 1 addition & 0 deletions hammerdbcli.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@echo off
COLOR 07
cd /D "%~dp0"
set path=.\bin;%PATH%
CALL tclsh86t hammerdbcli %1 %2 %3 %4
exit
2 changes: 2 additions & 0 deletions hammerdbws
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh
#########################################################################
## \
cd "$(dirname "$0")"
## \
export LD_LIBRARY_PATH="./lib:$LD_LIBRARY_PATH"
## \
export PATH="./bin:$PATH"
Expand Down
1 change: 1 addition & 0 deletions hammerdbws.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@echo off
COLOR 07
cd /D "%~dp0"
set path=.\bin;%PATH%
CALL tclsh86t hammerdbws %1 %2
exit