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 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 Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users