Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to delay execution of ssh #42

Open
GoogleCodeExporter opened this issue Mar 3, 2015 · 4 comments
Open

option to delay execution of ssh #42

GoogleCodeExporter opened this issue Mar 3, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

I couldn't see an easy way to do this so i figured i would request it as an 
enhancement...

It would be great to have an option to delay execution of ssh until the windows 
are tiled.

I run an expect script to jump through multiple hosts to get to my clusters, 
the issue is that if the expect script is executed during the window resize, it 
kills the expect trap on window resize and can cause some very un-expected 
behavior from expect...  my current solution is to have a wrapper script with a 
sleep statement in it..  but i have to adjust the sleep interval depending on 
how many hosts i am opening up.

Original issue reported on code.google.com by sco...@horknfbr.com on 9 Aug 2011 at 10:00

@GoogleCodeExporter
Copy link
Author

This is also a little tricky on the csshX side since the window resizing is 
triggered from the master process, and the child processes have no knowledge of 
this.

Are you using the actual program "expect", or an expect module in another 
language?

I'm guessing you are getting a SIGWINCH signal. Maybe you can trap it? 
Something like http://ubuntuforums.org/showpost.php?p=5432825&postcount=4

Original comment by gavin.brock on 16 Aug 2011 at 7:32

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

the script is pure expect...  and i am using SIGWINCH, it seem that if the 
window resizes before the script is complete, then it spits out an error and 
some how causes a hiccup in the execution of the script (obviously a bug in 
expect).  would it be possible to have a switch via config or cli that allows 
the child windows to open untiled?  then the tilling could just be done via the 
ctl-a commands after the login script is complete.

Original comment by sco...@horknfbr.com on 16 Aug 2011 at 9:42

@horknfbr
Copy link

horknfbr commented Mar 4, 2015

i was able to somwhat fix this issue by having sigwinch much further down in my code.. closer to the ssh spawn... once the windows open and tile, i foce a retile and sigwinch is updated correctly in all the slaves

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants