This article is from a FAQ concerning SCO operating systems. While some of the information may be applicable to any OS, or any Unix or Linux OS, it may be specific to SCO Xenix, Open Desktop or Openserver.

There is lots of Linux, Mac OS X and general Unix info elsewhere on this site: Search this site is the best way to find anything.

Unix, Xenix and ODT General FAQ

How do I capture program screens to a file or print them?

To capture text output, use "script". By default, the file will be called "typescript", but "script myfile" will use that name instead. Press CTRL-D when you are finished recording.


Hate these ads?

To capture X screens, the "xwd" program is simple to use. Open an xterm, type "xwd > file" and (after pressing ENTER), just click on the window you want to capture. The resulting file can be printed using "xpr" or manipulated by graphic programs like "Gimp" and others if you need to save it as .gif or some other format.

Tom Melvin contributed this:

No idea where I got this from, it's pretty old (Xenix days). Works only on the console.



:
# Shell script to screen dump
# This will only work at present on the  main console



oldstty=`stty -g`
stty -echo ixon ixoff -ixany
/bin/echo '\033[2i\c'
head -25 > /tmp/screen.$$
stty $oldstty








# Ok now output the file to the printer
echo "\f" >>/tmp/screen.$$
lp /tmp/screen.$$
rm /tmp/screen.$$


Or get Chip Rosenthal's prtscrn from ftp.jpr.com

Jean Pierre Radley points out:



W/r to Melvin's comment about the escape sequence, man screen and see:



   MC (Media Copy)                         CSI p1 i   ps        mc0
   Causes all or part of the screen to
   be sent to the pass-through printer.
   Parameter p1 indicates how much of
   the screen to send to the printer.
   Currently, only p1=2 is supported,
   which sends the entire screen
   contents. Future versions of scoansi
   may support other values.


 


LOD Communications, Inc.


        








Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner


M3IP inc.

Views for this page
Today This Week This Month This Year  Overall
132861,268 1,441

/SCOFAQ/FAQ_screenshot.html copyright 1997-2003 (various) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

More:
       - FAQ




Unix/Linux Consultants

Your ad here - $48.00 yearly!

UBB Computer Services Support for Openserver, Unixware and Linux. Windows integration with Unix/Linux servers. Hardware, Backup and Networking issues. Located near Sacramento CA, we provide onsite support throughout Northern CA and Nationwide via remote access. We are a SCO Authorized Partner and a Microlite BackupEdge Certified Reseller.


http://www.cleverminds.net Need expert advice? Want a second opinion? CleverMinds is a one-stop-shop for a wide range of technology solutions. We support Unix, Linux, SCO as well as CMS, ecom, blogs, podcasts, search engines consulting and more. Contact us at web2.0@cleverminds.net 0r (617) 894-1282


http://www.schewanick.com SCO Unix, Solaris, Linx (various), PHP, MySQL, Apache, uniBasic, dL4, Perl, System Administration and more....



Twitter
  • Nov 21 07:55
    @loudmouthman: correct, but how do you prove ANYTHING like that is accurate? You can't. A text file is no better or worse than anything.
  • Nov 21 07:40
    @loudmouthman: well, a digital signature could prove it hadn't been altered. Text is no more insecure than anything else in that sense.









Change Congress


Related Posts