csshx icon indicating copy to clipboard operation
csshx copied to clipboard

option to delay execution of ssh

Open GoogleCodeExporter opened this issue 11 years ago • 4 comments

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 [email protected] on 9 Aug 2011 at 10:00

GoogleCodeExporter avatar Mar 03 '15 22:03 GoogleCodeExporter

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 avatar Mar 03 '15 22:03 GoogleCodeExporter

[deleted comment]

GoogleCodeExporter avatar Mar 03 '15 22:03 GoogleCodeExporter

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 [email protected] on 16 Aug 2011 at 9:42

GoogleCodeExporter avatar Mar 03 '15 22:03 GoogleCodeExporter

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

horknfbr avatar Mar 04 '15 15:03 horknfbr