Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

"Screen" | 22 comments | Create New Account
Click here to return to the '"Screen"' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Authored by: XSage on Mar 11, '03 11:54:45AM

A while back Macosxhints ran a write-up on screen, which allows a command to run in the background even with a terminal detached. To use screen to take a screenshot of the login window, use the following command:

screen -m -d bash -c "sleep 120; screencapture ~/Pictures/picture.pdf"

That will give two minutes to log out so that screencapture can take a shot of the login stuff. To change the time just change 120 to however long you like :-)

[ Reply to This | # ]
Authored by: kirkmc on Mar 11, '03 12:36:02PM

I just tried this and it didn't work for me...


[ Reply to This | # ]
Authored by: ashill on Mar 11, '03 12:54:29PM
Worked for me when prefixed with sudo, but not when executed as myself. i.e.
sudo screen -m -d bash -c "sleep 120; screencapture /Users/username/Desktop/loginscreen.pdf"
(I don't know if ~ will work as a substitute for /Users/username; it might, but entering the path explicitely is certain to work.)

[ Reply to This | # ]
Authored by: XSage on Mar 11, '03 01:23:20PM

Ashill is right: t needs to be a sudo process to work. You probably need a full path too. Sorry about that...

[ Reply to This | # ]
"Screen" - didn't work in 10.3.3
Authored by: soosy on May 06, '04 11:34:06AM

Just tried in 10.3.3... I successfully get a file, but it is only 4k and of course comes up blank in Preview. I have 2 monitors attached....

[ Reply to This | # ]