Always use variable substition for command

Can't do a sudo inside an expect so we run the expect inside the sudo.
This commit is contained in:
Philip Prindeville 2023-08-25 13:39:50 -06:00 committed by Olof Hagsand
parent 5919ba6c6a
commit 62401b72d0
5 changed files with 18 additions and 11 deletions

View file

@ -14,6 +14,9 @@ set stty_init "rows 20 cols 128"
send_user "\nTest State paginate cli scrolling\n"
# grab $clixon_cli from environment
set clixon_cli $::env(clixon_cli)
set cfg [lindex $argv 0]
set xpath [lindex $argv 1]
set line1 [lindex $argv 2]
@ -21,7 +24,7 @@ set line2 [lindex $argv 3]
set timeout 15
spawn clixon_cli -f $cfg
spawn $clixon_cli -f $cfg
send "show pagination xpath $xpath cli\n"