On Fri, May 11, 2012 at 11:16:54AM +0530, Sinbad wrote: > ---------- Forwarded message ---------- > From: Sinbad <sinbad.sin...@gmail.com> > Date: Fri, May 11, 2012 at 9:24 AM > Subject: Re: scripting support for tmux > To: Nicholas Marriott <nicholas.marri...@gmail.com> > > > On Wed, May 9, 2012 at 12:03 PM, Nicholas Marriott < > nicholas.marri...@gmail.com> wrote: > > > No, no plans, although you could be more specific on what you want to > > do. > > > > > > On Wed, May 09, 2012 at 11:33:44AM +0530, Sinbad wrote: > > > is there a plan to add scripting support for tmux. > > > i am specifically looking for 'expect' kind of support. > > > it will be helpful when a program is not being run from > > > a shell. most of my work will rely on logging into remote > > > hardware deivces like network switches and doing some stuff > > > there, where i have minimal support from the shell. if tmux > > > can provide such support it'll be great. > > > > > > > ------------------------------------------------------------------------------ > > > Live Security Virtual Conference > > > Exclusive live event will cover all the ways today's security and > > > threat landscape has changed and how IT managers can respond. Discussions > > > will include endpoint security, mobile security and the latest in malware > > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > _______________________________________________ > > > tmux-users mailing list > > > tmux-users@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/tmux-users > > > > > may be i'm alone in this, but most of the times i will log into > a switch, where i will have to configure loads of things. > like 100 interfaces, in which each interface configuration > will take "three configuration steps", so for 100 interfaces > it's 300 cli commands. this is just one case, there are > several others like this. I know, i can store the configuration > somewhere in the text file and copy paste the stuff, but that > might become tedious if i want to change certain values in the > configuration. Instead if i have script support, i can write > a function which takes these values and configure the > commands for me. I hope you get the idea. >
why not calling a script with something like command-promp 'option? ' "run-shell /path/to/script '%%'" in in the script, you can use the current pane identifier, to send some text/commands with send-keys or load-buffer/paste-buffer... ? > cheers > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users