You could send "stty -echo" before and "stty echo" after. Or send "clear; tmux clear-history" after.
On Wed, 17 Aug 2022, 08:30 Erol KAHRAMAN, <erol.kahra...@gmail.com> wrote: > Hi, > I created a script which connect to my switches by sending password with > sshpass. > tmux send "sshpass -p PASSWORD ssh USER@SWITCH_IP" C-m > > It is working as i expected. However when the command is executed at the > top of the pane, i am able to see my password clearly. At the pane; > > sshpass -p MyPassword ssh USER@SWITCH_IP > > Is it possible to hide or make invisible the command sended to the tmux. > > Thx. > > -- > You received this message because you are subscribed to the Google Groups > "tmux-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to tmux-users+unsubscr...@googlegroups.com. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/tmux-users/CAFcnfZa1jEco3tf3qRzHY_t2eOzUHW-7-T%2BE2x2tNdpKR6G-1Q%40mail.gmail.com > <https://groups.google.com/d/msgid/tmux-users/CAFcnfZa1jEco3tf3qRzHY_t2eOzUHW-7-T%2BE2x2tNdpKR6G-1Q%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "tmux-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/CAEdLfcEpB28dEiVqBnzzTcYSHbGcubpwQae4vAqGKans83x18w%40mail.gmail.com.