echo command inside expect script
Hi
I am trying to use echo command inside a expect script Code:
#/usr/bin/expect Can anybody tell me how to use echo command with quotes inside a expect script. Code:
#./1.txt |
That seems to be doing it the hard way and insecurely since your expect script will contain your password in clear text.
Why not: 1) Set an ssh trust to the remote machine user from the one where you're running the expect script so it logs in without a password? 2) Set the .bashrc or .bashprofile for the target user to set the title whenever you login? |
Hi Mensa,
Thanks for your suggestion about using ssh keys. I just wanted to set the Title temporarily, for that session only. I have managed to set the title using the gnome-terminal option "--title=Title". I have called the expect script from a bash script. Code:
# cat 1.txt Code:
# cat 2.txt |
All times are GMT -5. The time now is 10:26 PM. |