09-21-2006 02:03 AM
For example, In xwindow, when i ran a program, i found many erros . But i don't know how to copy them into a file.
Solved! Go to Solution.
09-21-2006 02:10 AM
To save Image,highlight the window which you want then alt-print screen and open Windows word and paste so that you would get the active screen.
09-21-2006 02:11 AM
in xwindows you can use the windows print screen(Shift + PrtSc) and then insert into word document. This takes an exact graphics copy of your screen.
Or select text etc. with mouse and then Edit-> Copy.
If you have access to your error producing program, perhaps you can redirect the output ?
./executable > x.log 2>&1
09-21-2006 02:13 AM
Good morning everybody :)
No points plzzz)
09-21-2006 06:42 PM
You can capture the error and everything from the screen by pressing "PrtSc" button , and then open a Mspaint window and press "ctrl+v" to paste the screen shot, and save it as jpeg.
Perhaps saving text may not work in all xwindow, but you can try ctl+v , Ctrl+c,
09-25-2006 08:22 PM
We assumed that you have connected to the X-window using a windows PC.
09-25-2006 08:51 PM
first - thanks god that there's no mspaint under hp-ux :-))
In hp-ux 10.20 I got a software 'screencapture', with this you can make a screenshot of your screen or a window or a part of it. The output is a TIFF file, that you can view - under hp-ux there's for example a sw 'imageview'.
To copy a text to a file - open two windows one with the text you want, in the other use the vi-editor - vi
09-25-2006 09:00 PM
1. To capture text use:
# command 2>&1 output_file.txt
( This will redicrect standard error and standrard output to the output_file.txt
2. To capture image of xwindow , use "Xwd Capture" , i.e Xwindow Dump,
a) Click on the bottom icon ( 3rd icon from right hand side.), Application Manager --> desktop Tools ---> Click on "Xwd capture" --> Enter the file name you want to save the output.
b) You can view the file using any image viewere with xwd support .
* ) You can also use the command :
# xwd -out output_fil.xwd , And then click on the desired window.
(Viewer example: http://www.accessoryware.com/PictView.htm
NOTE: If you are connecting Xwindow from a Windows system , you can very well use the "PrtSc" to capture and can paste in any word document or mspaint application and can save as jpeg.
Hope this will help.
09-25-2006 11:23 PM
The reason is that Xwindows was designed for Unix workstations, not PCs. Your PC is pretending to be the graphic console on a workstation through the use of special software. Indeed, the character mode window (xterm, dtterem, hpterm) is actually resident on the HP-UX box -- you're just redisplaying the image on your PC.
One way to capture the text is simply use your mouse to highlight the text and copy the desired area. Then open a copy of Notepad (*not* Word or some other word processor) and paste the text into Notepad. Notepad is a pure ASCII program and text will now be portable.
However, it is much, much simpler to bypass all the Xwindow junk and simply use telnet, either the PC's built-in telnet command in the DOS command window, or a separate emulator like Hyperterminal. Now your screen is local to your PC and all the normal File -> Print choices will work.
09-25-2006 11:31 PM
09-26-2006 12:25 AM