nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

How can I take a screenshot from an X TERMINAL?

This is a discussion on How can I take a screenshot from an X TERMINAL? within the Shell scripting forums, part of the Development/Scripting category; I wrote shell script for help desk application; in this script I need to take a screen shot from script ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 06-06-2005, 12:44 PM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
My distro: Suse, RHEL, Vista
Posts: 154
Rep Power: 4
sweta will become famous soon enough
Default How can I take a screenshot from an X TERMINAL?

I wrote shell script for help desk application; in this script I
need to take a screen shot from script (i.e. shell command ) which can
do this job for me. My application runs under X windows on Debian Linux
or Red Hat Linux

Thx. in advance
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-06-2005, 06:39 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

Use the command called import which is use to capture some or all of an X server screen and save the image to a file.

import abc.jpg
import -window abc.jpg

Read the man page of import to get more infomration. Also see
ImageMagick home site : http://www.imagemagick.org/script/index.php
It has many cool features... since you are playing with images ...
Reply With Quote
  #3 (permalink)  
Old 06-07-2005, 06:18 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

You can also use (only for command vc:
Code:
cat /dev/vcs4 > myscreen
Also chekout http://www.linuxdevcenter.com/pub/a/...re_movies.html it has good info
Reply With Quote
  #4 (permalink)  
Old 06-07-2005, 06:26 PM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
My distro: Suse, RHEL, Vista
Posts: 154
Rep Power: 4
sweta will become famous soon enough
Default

Thanks everyone
Reply With Quote
  #5 (permalink)  
Old 07-20-2006, 08:51 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 4
tom is on a distinguished road
Default

Use ksnapshot program which is KDE Screen Capture Program. Type following command from GUI terminal:

Code:
$ ksnapshot &
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
how to open an pdf file(.pdf) in terminal chandrasekar Getting started tutorials 1 03-27-2008 01:41 AM
How to save history of a hung terminal ricc Linux software 2 06-20-2006 01:21 AM


All times are GMT +5.5. The time now is 07:58 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36