LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-26-2011, 01:59 AM   #1
trusktr
LQ Newbie
 
Registered: Feb 2010
Posts: 12

Rep: Reputation: 0
How to take a screenshot of a tty without actually being in that tty?


If I'm in tty1, is it possible to take a screenshot of tty2?

If I'm in tty1, can I take a screenshot of tty7 (which has xorg running in it)?
 
Old 04-26-2011, 02:08 AM   #2
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
I don't think you can. But why not just redirect the >output to a file.
 
Old 04-26-2011, 02:29 AM   #3
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,458

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
Actually you can take a snapshot of a running X server from a virtual console using an application that let you specify the DISPLAY, as in this tip. Unfortunately using the same method you can't capture a virtual console, since it does not run X.

Anyway, if you're interested only to the text written in the console, you can access it directly by means of the special devices /dev/vcs1.../dev/vcs7, but they require root's privileges, e.g.
Code:
# cat /dev/vcs1 | some parsing and reformatting code here > tty1.txt
 
Old 04-27-2011, 12:46 AM   #4
trusktr
LQ Newbie
 
Registered: Feb 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Cool, nice tips guys!
 
  


Reply

Tags
screenshots, terminal, tty, xorg


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
Problem returning to TTY7 from any TTY. (Best explained with a screenshot) masmddr Linux - Newbie 4 11-05-2010 08:39 AM
How to reset/restart a tty from another tty? armandino Linux - General 4 02-25-2009 03:09 AM
can a tty execute command on another tty? BeacoN Linux - Desktop 3 11-08-2008 09:39 AM
I it possible to kill a tty or find which tty is being using by which process? geletine Linux - Software 2 01-15-2006 08:40 AM
change tty => system crashes (ati driver/tty resolution) mosca Debian 6 08-05-2004 07:37 AM


All times are GMT -5. The time now is 04:00 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration