title: Recover Python script from memory, I screwed up
body: <p>Help, I screwed up.</p>
  
  <p>I have a somewhat complex python script that is currently running in a putty window to a Ubuntu server.</p>
  
  <p>I accidentally overwrote the script using another putty window, so the copy on the hard drive is now gone, but the script is still running from memory in the first window.</p>
  
  <p>This happened before I had a chance to run my backups for this folder.</p>
  
  <p>Is there a way I can get the script, (that is currently running) from the memory in the first putty window?</p>
  
  <p>I haven't stopped the script, my guess is once I stop it it will be gone forever.</p>
  
  <p>Can I send it to a background process somehow (some hot key,) then glean the script from a memory dump or something. I assume something like this would have to happen from the actual window from which the script is running.</p>
  
  <p>It would be nice if I could get the .py back, I heard Python compiles the script before running, if that is the case, the human readable part may be gone.</p>
  
  <p>Sigh, it has been a stressful day.</p>
  
  <p>Thanks for any help, Mark.using</p>