Skip to content

Running ./hammerdbcli auto <tcl-file> in AWS Lambda function #319

Answered by sm-shaw
joshuajin asked this question in Q&A
Discussion options

You must be logged in to vote

I've not seen these before, however it looks like the issue is that the system does not have a home environment variable set. This is expected on both Linux and Windows e.g.

Linux

$echo $HOME
/home/steve
$ tclsh
% puts $::env(HOME)
/home/steve

Windows

C:\Users\Steve>tclsh
% puts $::env(HOME)
C:\Users\Steve
%

It will then create a .tclline_history file in this home location to store the previous commands for recall.

As a first step either see if a HOME environment variable can be set to a writable location or look in modules directory for the file tclreadline-1.2.tm and comment out where it uses $::env(HOME)

#variable HISTFILE $::env(HOME)/.tclline_history
#variable  RCFILE $::env(HOME)/…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sm-shaw
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants