probably the input is too fast - su will flush input before reading
if you are using tmux 1.8, perhaps try:
send-keys 'su^M'\; run 'sleep 0.5'\; send-keys 'pass^M'
On Mon, May 13, 2013 at 10:28:11AM +0530, Sinbad wrote:
>i want to have a binding to enter into sudo mode.
>so i added the
i want to have a binding to enter into sudo mode.
so i added the following binding. but it is not working
what's the right way to do it.
bind-key 0 send-keys "su^Mpass^M"
--
Learn Graph Databases - Download FREE O'Reilly