Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Tomp was likely talking about the Mac “reopen running apps after reboot” which works very well in terms of putting your state back the way it was. Terminals aren’t fully restored (what would it mean to/how could you restore an ssh connection anyway?), but most apps for most people are.


>Terminals aren’t fully restored (what would it mean to/how could you restore an ssh connection anyway?), but most apps for most people are.

See my post about NeWS ~/.startup.ps event recording and playback above. You could record keyboard events to set up your terminal windows and emacs buffers and shells, and mouse events to open and position windows, pop up and select from menus, press buttons and drag sliders, etc.

https://news.ycombinator.com/item?id=28640529

Back in the 80's we used unencrypted rlogin with .rhosts files to avoid typing passwords, but now you can restore encrypted shell connections using ssh keys.

The nice thing is that it was WYDIWYG (What You Did Is What You Get), no writing scripts in various shell and emacs scripting languages, just record and playback, like keyboard macros for the window system.


No, I never reboot my Mac. (For reasonable values of "never", e.g. "once every 3 months".)

ssh connections fail even with just sleep though, obviously.


I don't rely on it, but I often notice a ssh connection still working after a night with the computer being suspended.

It requires two things:

- the network does not have a short timeout after which it closes the connection

- no side of the connection is trying to do I/O on this connection while one of the computers is sleeping.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: