On 07-Sep-10 08:53:26, Simon Ransome wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 07/09/2010 09:22, Mark Rogers wrote:
I have a file open on my desktop PC at home, which I want to read now I'm at work.
It's just some notes I started writing in a new document in gedit, it's not been saved (I don't think, anyway).
I have SSH and NX access to my home desktop. If I connect with NX I get access to my home desktop GUI but not to the session I have currently open with the document in it.
If you know or remember where you created the document in the first place, then maybe your editor has created an auto-backup/shadow file, which you could open remotely. At least that approach works in Vi[m]: for any open file, Vi creates .file.swp, which it periodically updates without user intervention (unless that feature has been disabled) - this can be easily read with "vi -r .file.swp", even though the original editor session is still attached. this is probably trickier if the file does not yet have a name, but I think it then creates a backup with a random filename in the interim.
Not much help with gedit, probably, but it's a suggestion nevertheless :-)
Simon
I had a similar thought (vim user too, me)! However, some experimentation drew a blank. I started 'gedit temp.txt'. With ls -latr there was no new file in the directory where the gedit session was opened (though I had typed stuff into the gedit window); and all I could find in /tmp was a socket: srwxr-xr-x 1 ted ted 0 2010-09-07 09:59 gedit.ted.3678969524
I might be that if I waited long enough then gedit might (as Simon describes for vim) automatically save something. I'll leave the session up, and if anything happens I'll let you know!
Also, sending SIGINT or SIGHUP to the gedit process simply closed it, without anything being saved that I could find.
Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 07-Sep-10 Time: 10:17:05 ------------------------------ XFMail ------------------------------