regarding mctr_cli [message #1803081] |
Thu, 21 February 2019 19:12  |
Eclipse User |
|
|
|
Hi Elemer,
I have a query regarding the ttcn3_start executable. The command works perfectly find in an ubuntu server, if we login and start it from the server directly.
But when i tried to remote login via SSH command and tried giving the same command it did not work saying that TTCN3_DIR environment variable is not set and it gave an error pointing to Line:190 of TTCN3_start script.
The code at this place seems to be like below:# Checking TTCN3_DIR environment variable and setting mctr_cli
if {[info exists env(TTCN3_DIR)]} {
set mctr $env(TTCN3_DIR)/bin/mctr_cli
} else {
puts "ttcn3_start: warning: TTCN3_DIR environment variable is not set"
set mctr mctr_cli
}
Here it fails on the first check and tries to enter the else part and fails saying that "mctr_cli" is not available. When i give the full path like /opt/TTCN3/bin/mctr_cli in the else part it starts working.
I am not sure what is the difference between the If part and the else part if we end up doing the same thing on both?
Can you clarify?
Thanks
Mohan Raj
|
|
|
|
Powered by
FUDForum. Page generated in 0.03448 seconds