Execute command in Mobaxterm from tcl/tk script

Viewed 20

I use the following script(in tcl/tk) to login to the SSH in Mobaxterm.

button $a.b1 -text "Connect-Check" -command \
{exec "C:/Program Files (x86)/Mobatek/MobaXterm/MobaXterm.exe" -exec "ssh <username@domain>"} -font {times 12}
place $a.b1 -x 40 -y 20 -width 250 -height 30

after log in how can I send commands to Mobaxterm SSH terminal. This should be also be done using the script.

It could either be a shell script or python script or tcl/tk script.

Thanks in advance!

0 Answers
Related