Date: Sun, 22 Feb 2004 01:59:46 -0000 From: "Steven Hartland" <killing@multiplay.co.uk> To: <freebsd-hackers@freebsd.org>, <screen@uni-erlangen.de> Subject: screen -X hardcopy fails on never attached instance Message-ID: <014701c3f8e7$8bd1eb70$b3db87d4@multiplay.co.uk>
next in thread | raw e-mail | index | archive | help
If you start a screen session detached to run a command in then run screen -X hardcopy -h /var/tmp/capture.txt The size of the capture is always 0. I've done some digging with a debug build and this is due to it failing to find the window "Running command on display 0 window 0 (-1)" If however you attach to the command session first and then detach all is fine. It seems like screen -m -d <command> is missing some initialisation somewhere but I cant find where. **Never attached*** Knock - knock! Ha, there was someone knocking on my fifo?? secopen(/tmp/screens/S-root/25144.my screen, 0x4, 0000) Deq event fd 4 type 1 queued 1 New event fd 4 type 1 queued 0 *** RecMsg: type 8 tty /dev/ttyp2 display: /dev/ttyp2 display not found FindUserPtr root found, id 0 FindNiceWindow -1 NULL Running command on display 0 window 0 (-1) WriteFile(3) /usr/ports/misc/screen/work/screen-4.0.1/test2.capture Writefile: usercontext + hit ev fd 0 type 3! serv_select_fn called waiting for events: - fd 6 type 1 pri 0 - fd 6 type 2 pri 0 - fd 4 type 1 pri 0 - fd 0 type 3 pri -10 - cond ev fd 6 type 2 failed readfds: 4 6 writefds: **Previously attached*** Knock - knock! Ha, there was someone knocking on my fifo?? secopen(/tmp/screens/S-root/25144.my screen, 0x4, 0000) Deq event fd 4 type 1 queued 1 New event fd 4 type 1 queued 0 *** RecMsg: type 8 tty /dev/ttyp2 display: /dev/ttyp2 display not found FindUserPtr root found, id 0 FindNiceWindow 0 NULL Running command on display 0 window 80b7000 (0) WriteFile(3) /usr/ports/misc/screen/work/screen-4.0.1/test2.capture Writefile: usercontext + hit ev fd 0 type 3! serv_select_fn called waiting for events: - fd 6 type 1 pri 0 - fd 6 type 2 pri 0 - fd 4 type 1 pri 0 - fd 0 type 3 pri -10 - cond ev fd 6 type 2 failed readfds: 4 6 writefds: Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?014701c3f8e7$8bd1eb70$b3db87d4>