LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-02-2006, 04:33 AM   #1
shydra
Member
 
Registered: Nov 2005
Posts: 31

Rep: Reputation: 15
Taking a snapshot of a program using a command?


Hi all.
I have to take a snapshot of a program via a command. The distro is Red HAt 7.3, with very simple instalation. No KDE and Gnome. only Motif.There is no ksnapshot available.
Can i run the program but the gui have to be forwarded to a gif,jpg,png file?

I tried to run the program on Gentoo linux but the program is compiled with very old libraries - zinc.

I only want to take a snapshots of this program.
Thanks in advance if anybody help me.
 
Old 03-02-2006, 04:36 AM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,349

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
If you mean a screenshot then 'import pic.gif' or 'import pic.jpg' will do it, if you have imagemagick installed.
 
Old 03-02-2006, 05:04 AM   #3
shydra
Member
 
Registered: Nov 2005
Posts: 31

Original Poster
Rep: Reputation: 15
No, there is no imagemagick installed.
Any ideas?
 
Old 03-02-2006, 05:20 AM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,349

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
I only know that and the kde programs but Imagemagick is quite small so I would suggest installing it.
 
Old 03-02-2006, 05:23 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
xwd -out file -id xxx
xwud -in file
you can use convert to convert it
 
Old 03-02-2006, 05:56 AM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
The convert utility is part of ImageMagick.

The only two really console tools for this that I can think of are script and setterm.
For example:

Type the command: script
The ouput is saved in a file called typescript
Use ctrl d to end the capture


setterm -dump 2-NR-CONSOLES
cat screen.dump > /dev/lp0
 
Old 03-02-2006, 06:12 AM   #7
shydra
Member
 
Registered: Nov 2005
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks to everybody, I used a xwd.
The images are all green but the important thing is the information.
Thaks a lot to everybody.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Program that determines which files/directories are taking up the most space kaplan71 Linux - Software 1 02-09-2006 07:21 AM
I wonder why a program I made with streams is taking so much memory eantoranz Programming 5 04-30-2004 07:37 PM
backup program for backing up only modified files | 'snapshot' ibm5_25 Linux - Software 2 01-10-2004 12:28 AM
code for taking snapshot with a webcam orso08 Programming 2 12-05-2003 02:45 AM
route command taking a long time tpatwood Linux - Networking 1 07-01-2003 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration