<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">We&#39;re currently beta testing MOSH integration with our Android SSH client, JuiceSSH, of which the progress can be followed in our <a href="https://plus.google.com/u/0/communities/110428419162168502506" target="_blank">G+ community</a>.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">One issue that has been raised so far is battery usage. Currently when JuiceSSH has any active connections, there is a service running which holds a device wake lock and polls the connections for failures. Seeing as Mosh sessions should always be resumable, and as Keith pointed out, this shouldn&#39;t be necessary in the case of Mosh.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Keith implied that he may be able to help us save the state of a mosh-client process, allowing for it to be resumed in the future.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I&#39;ve planned the majority of how to exclude Mosh sessions from wake locks and connection polling, and I&#39;m confident that we&#39;ll be able to catch the point that the state should be saved and then finally I know how we could implement an &quot;if-process-not-running-attempt-resume&quot;-esque session.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">But the bit I&#39;m not sure about is how to get the state, what form it will be in, and then how to reuse it.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Having looked through the research paper and checking out the presentation, it would appear that this functionality is not yet in place. If so, and this functionality is new, then one solution I can think of would be the ability to run &quot;mosh-client &lt;IP&gt; &lt;Port&gt; --resume-from-state [&lt;State-Related-Params&gt;|&lt;State-File&gt;]&quot; to resume the process and perhaps a certain kill signal could result in mosh-client printing it&#39;s state just before it finishes.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Any thoughts or help would be really appreciated. We&#39;re both very excited here about how convenient and nice this tool will be. As a couple of SysAdmins that wrote JuiceSSH mostly during our commutes on trains, we certainly appreciate the benefits!</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Thanks and regards,</div><div style="font-family:arial,sans-serif;font-size:13px">Tom</div><div><div dir="ltr">
<div style="color:rgb(136,136,136)"><font face="verdana, sans-serif" size="4"><br></font></div><div style="color:rgb(136,136,136)"><font face="verdana, sans-serif" size="4">Tom Maddox</font></div><div style="color:rgb(136,136,136)">
<font size="1"><b>Co-founder, Sonelli Ltd</b></font></div><div style="color:rgb(136,136,136)"><font size="1"><a href="mailto:tom@sonelli.com" style="color:rgb(17,85,204)" target="_blank">tom@sonelli.com</a> | <a href="https://sonelli.com/" style="color:rgb(17,85,204)" target="_blank">https://sonelli.com</a></font></div>
<div style="color:rgb(136,136,136)"><font face="verdana, sans-serif"><a href="https://play.google.com/store/apps/details?id=com.sonelli.juicessh" style="color:rgb(17,85,204)" target="_blank">JuiceSSH - Free SSH client for Android</a></font></div>
</div></div>
</div>