Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Using Terminal to Take Screenshots Post 302578901 by TranscendArcus on Friday 2nd of December 2011 09:41:37 PM
Old 12-02-2011
Using Terminal to Take Screenshots

So I sometimes use the Terminal to take many screenshots in rapid succession. Since I have an interest in animation, I sometimes use this to capture and examine how other animators have drawn certain movements. To take my screenshots, I made a script (at least I think it's a script) with the following code:

Code:
screencapture -T .04 ~/Desktop/screenshot0.jpg;
screencapture -T .04 ~/Desktop/screenshot1.jpg;
screencapture -T .04 ~/Desktop/screenshot2.jpg;
screencapture -T .04 ~/Desktop/screenshot3.jpg;
screencapture -T .04 ~/Desktop/screenshot4.jpg;
screencapture -T .04 ~/Desktop/screenshot4.jpg;
screencapture -T .04 ~/Desktop/screenshot4.jpg;
screencapture -T .04 ~/Desktop/screenshot5.jpg;
screencapture -T .04 ~/Desktop/screenshot6.jpg;
screencapture -T .04 ~/Desktop/screenshot7.jpg;
screencapture -T .04 ~/Desktop/screenshot8.jpg;
screencapture -T .04 ~/Desktop/screenshot9.jpg;
screencapture -T .04 ~/Desktop/screenshot10.jpg;
screencapture -T .04 ~/Desktop/screenshot11.jpg;
screencapture -T .04 ~/Desktop/screenshot12.jpg;
screencapture -T .04 ~/Desktop/screenshot13.jpg;
screencapture -T .04 ~/Desktop/screenshot14.jpg;
screencapture -T .04 ~/Desktop/screenshot15.jpg;
screencapture -T .04 ~/Desktop/screenshot16.jpg;
screencapture -T .04 ~/Desktop/screenshot17.jpg;
screencapture -T .04 ~/Desktop/screenshot18.jpg;
screencapture -T .04 ~/Desktop/screenshot19.jpg;
screencapture -T .04 ~/Desktop/screenshot20.jpg;
screencapture -T .04 ~/Desktop/screenshot21.jpg;
screencapture -T .04 ~/Desktop/screenshot22.jpg;
screencapture -T .04 ~/Desktop/screenshot23.jpg;
screencapture -T .04 ~/Desktop/screenshot24.jpg;
screencapture -T .04 ~/Desktop/screenshot25.jpg;
screencapture -T .04 ~/Desktop/screenshot26.jpg;
screencapture -T .04 ~/Desktop/screenshot27.jpg;
screencapture -T .04 ~/Desktop/screenshot28.jpg;
screencapture -T .04 ~/Desktop/screenshot29.jpg;
screencapture -T .04 ~/Desktop/screenshot30.jpg

This should, in theory, take 30 screenshots in 1.5 seconds. In practice, my computer can't handle this either a) because it simply to much of a burden to capture so many images in 1.5 seconds, or b) because I haven't actually effectively told my computer what I want it to do. Right now, my computer takes the thirty screenshots over the course of about 5 or 6 seconds. For the purposes of capturing an animated movement, this is too slow.

Can anyone help me get my computer to do what I want it to do?

Last edited by vbe; 12-09-2011 at 02:00 PM.. Reason: reformat to be able to read it...
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

GUI Screenshots - HP-UX

How do I capture screenshots on HP-UX and how do I name the files so I can move them to microsoft? (2 Replies)
Discussion started by: jay_mow
2 Replies

2. UNIX for Dummies Questions & Answers

Taking Screenshots in Unix

Hello, I am trying to take screenshots of various windows and dialog boxes in Unix. I am primarily a Windows user and am wondering if Unix has the capability of taking screenshots similar to using "Print Screen" and "Alt+Print Screen" in Windows? If not, then could anyone please suggest a method... (3 Replies)
Discussion started by: Skybum105
3 Replies

3. UNIX for Dummies Questions & Answers

Taking Screenshots With the Terminal

Hi, So this is kind of a bizarre request: Is there a way I can get the Terminal to take 30 successive screenshot images over the course of 2 seconds? I figure you can do almost anything through the terminal, so I'm hoping this is possible, too. Truthfully, I don't know that much about Unix,... (1 Reply)
Discussion started by: TranscendArcus
1 Replies

4. What is on Your Mind?

Post Geeky Screenshots - Just for Fun

Hello All, I have been sitting idle (as usual -- what are scripts for!!) and just thought why can't we have a colorful thread full of screnshots of terminal emulators (PuTTY for example) of admins doing their work. It could be geeky enough and inspiring to those new to UNIX/Linux world. ... (1 Reply)
Discussion started by: admin_xor
1 Replies

5. Shell Programming and Scripting

Cannot get terminal application to launch with a graphical launcher when successful in terminal

I have been having an extremely annoying problem. For the record, I am relatively new at this. I've only been working with unix-based OS's for roughly two years, mostly Xubuntu and some Kali. I am pretty familiar with the BASH language, as that's the default shell for debian. Now, I've made this... (16 Replies)
Discussion started by: Huitzilopochtli
16 Replies

6. Shell Programming and Scripting

Print Terminal Output Exactly how it Appears in the Terminal to a New Text File

Hello All, I have a text file containing output from a command that contains lots of escape/control characters that when viewed using vi or view, looks like jibberish. But when viewed using the cat command the output is formatted properly. Is there any way to take the output from the cat... (7 Replies)
Discussion started by: mrm5102
7 Replies

7. Shell Programming and Scripting

How to get notified when screenshots are taken?

Hi, I use third-party softwares but like to get notified when screenshots, if any, are taken. Any hints on how to achieve it? Thanks, Riku Linux 3.19.0-56-generic #62~14.04.1-Ubuntu SMP Fri Mar 11 11:03:15 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Ubuntu 14.04.3 LTS (3 Replies)
Discussion started by: rikuito
3 Replies

8. Shell Programming and Scripting

How to login and screenshots?

Dear All, Is that possible to open a url in chrome and then login with credentials and then click on particular link there ,then taking screenshot of that page via shell script ? I need to open an website like XXXXX.XXXX.XXX.XX:1235 ..there will be two fields for login Username and Password ... (2 Replies)
Discussion started by: onenessboy
2 Replies
SCREENCAPTURE(1)					    BSD General Commands Manual 					  SCREENCAPTURE(1)

NAME
screencapture -- capture images from the screen and save them to a file or the clipboard SYNOPSIS
screencapture [-SWCTMPcimswxto] file DESCRIPTION
The screencapture utility is not very well documented to date. A list of options follows. -c Force screen capture to go to the clipboard. -C Capture the cursor as well as the screen. Only allowed in non-interactive modes. -i Capture screen interactively, by selection or window. The control key will cause the screen shot to go to the clipboard. The space key will toggle between mouse selection and window selection modes. The escape key will cancel the interactive screen shot. -m Only capture the main monitor, undefined if -i is set. -M Open the taken picture in a new Mail message. -o In window capture mode, do not capture the shadow of the window. -P Open the taken picture in a Preview window. -s Only allow mouse selection mode. -S In window capture mode, capture the screen instead of the window. -t <format> Image format to create, default is png (other options include pdf, jpg, tiff and other formats). -T <seconds> Take the picture after a delay of <seconds>, default is 5. -w Only allow window selection mode. -W Start interaction in window selection mode. -x Do not play sounds. -a Do not capture attached windows. -r Do not add screen dpi meta data to captured file. files where to save the screen capture, 1 file per screen BUGS
Better documentation is needed for this utility. SECURITY CONSIDERATIONS
To capture screen content while logged in via ssh, you must launch screencapture in the same mach bootstrap hierarchy as loginwindow: PID=pid of loginwindow sudo launchctl bsexec $PID screencapture [options] HISTORY
A screencapture utility first appeared in Mac OS X v10.2. Mac OS June 16, 2004 Mac OS
All times are GMT -4. The time now is 02:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy