Difference between pages "Forkpty failed" and "ReCordMyDeskTop"

From Linuxintro
(Difference between pages)
imported>ThorstenStaerk
(Created page with "shellinabox gives me forkpty failed as error message. Ok, let's strace it: <pre> # ps -A| grep shellin 132 ? 00:00:00 shellinaboxd 154 ? 00:00:00 ...")
 
imported>ThorstenStaerk
 
Line 1: Line 1:
[[shellinabox]] gives me
+
recordmydesktop is a program that allows you to [[take a video from your desktop]]. In practice, you often want to record a window only. To do this, start recordmydesktop like this:
forkpty failed
+
  recordmydesktop --windowid $(xwininfo | grep "Window id" | awk '{print $4;}')
as error message. Ok, let's [[strace]] it:
+
 
<pre>
+
A cross will appear. Aim it at the window you want to record and click. Then the recording will start.
# ps -A| grep shellin
 
  132 ?        00:00:00 shellinaboxd
 
  154 ?        00:00:00 shellinaboxd
 
# strace -p 132 -p 154
 
[...]
 
[pid  154] chown("/dev/pts/1", 65534, 5) = -1 EPERM (Operation not permitted)
 
[pid  154] clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fd0c22959d0) = 10036
 
[pid  154] wait4(10036,  <unfinished ...>
 
[pid  132] <... write resumed> )      = 173
 
[pid  132] recvmsg(3,  <unfinished ...>
 
[pid  154] <... wait4 resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 4}], 0, NULL) = 10036
 
[pid  154] --- SIGCHLD (Child exited) @ 0 (0) ---
 
[pid  154] rt_sigreturn(0x11)          = 10036
 
[pid  154] close(3)                    = 0
 
[pid  154] pipe([3, 5])                = 0
 
[pid  154] write(5, "forkpty() failed\r\n", 18) = 18
 
</pre>
 

Revision as of 13:23, 6 November 2015

recordmydesktop is a program that allows you to take a video from your desktop. In practice, you often want to record a window only. To do this, start recordmydesktop like this:

recordmydesktop --windowid $(xwininfo | grep "Window id" | awk '{print $4;}')

A cross will appear. Aim it at the window you want to record and click. Then the recording will start.