swestrup: (Default)
[personal profile] swestrup
I'm halfway through making a backup, and my remote terminal window was closed due to a network error (damn windows!)

PS says my backup process is still running, and is waiting for input from me, but I have no idea how to reattach to it, so that I can tell it to continue. Any ideas?

Date: 2005-12-06 03:10 pm (UTC)
ext_290181: (Default)
From: [identity profile] dcoombs.livejournal.com
At the very least, you can "strace -p pidnumber" to see what file descriptor it's waiting on.

You might then be able to echo something > /proc/pidnumber/fd/fdnumber, but I don't actually know if that'll work.

Date: 2005-12-06 08:55 pm (UTC)
From: [identity profile] sps.livejournal.com
Incredibly, this works:

[stephen@gabriel stephen]$ cat &
[1] 2275
[stephen@gabriel stephen]$ sudo bash -c "echo foo >/proc/2275/fd/0"
foo

So apparently *provided you are root* you can write directly to /proc//fd/0.

Of course, it would have been better to have been using screen(1) or vncserver(1).

January 2017

S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 15th, 2025 06:59 am
Powered by Dreamwidth Studios