Sponsored Content
Full Discussion: Screen output to a file
Top Forums UNIX for Beginners Questions & Answers Screen output to a file Post 303037205 by amar1208 on Thursday 25th of July 2019 03:48:36 PM
Old 07-25-2019
anyone please help
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

screen output

I need to put the following in a script: echo $CCPDB will give me the db name on the screen. I need to use this name to tar cvfEh <newtarname> <dbname.exp>. I am not sure how to use the output that display on the screen in a script. I tried this echo $CCPDB > file didn't work Gundu (1 Reply)
Discussion started by: gundu
1 Replies

2. UNIX for Dummies Questions & Answers

no screen output

I'm a newbie. I'm having a problem at work with a script. What i'm trying to do is connect to a cisco switch from a sun station. After i run the script and telnet into the switch i don't get any output on the "xterm window" and all my commands from the script don't show up on the screen or on... (0 Replies)
Discussion started by: wisher115
0 Replies

3. Shell Programming and Scripting

Putting screen output in a log file

I want to output screen messages to a logfile when executing an automated script. I have tried the script and command to do this but with no luck. Thanks, Nicole (5 Replies)
Discussion started by: nsutti
5 Replies

4. Shell Programming and Scripting

Screen output

Is it possible to split the screen and show, lets say a local directory listing on the left and a remote directory listing on the right with shell scripting? I know it's usually done with curses/ncurses, but I'd really like to keep it simple as possible. I guess 'dialog' command could do it... (1 Reply)
Discussion started by: lochraven
1 Replies

5. UNIX Desktop Questions & Answers

Output terminal sessions to screen and log file

I would like to use a terminal session to ssh to switches and routers. I need to capture data while logged into switches to a file I can email for troubleshooting. I use termial to log into Cisco switch, run the sh tech command, and then sent the output to cisco. Is there a way to run a... (4 Replies)
Discussion started by: tdelliott
4 Replies

6. UNIX for Dummies Questions & Answers

how to print script output to screen and file

Hi all, I have a script that bulk loads thousands of lines of data. I need to log the output during the execution of the script. I know I can redirect (">") the output to a file; however, I want the output going to both the screen and the log file. I thought I could use pipe to pipe the... (10 Replies)
Discussion started by: orahi001
10 Replies

7. Shell Programming and Scripting

Complete Screen Output to Log File

Hi, I would need to log the whole screen ouput to a log file. All Inputs from the Agent, all echo´s and DBMS Outputs from the PL/SQL. Basicly everything what I can see during the run on the screen. I tried it already with #exec 2>$BASELOG/RUN.log #exec 1>$BASELOG/RUN.log #exec >... (1 Reply)
Discussion started by: enjoy
1 Replies

8. Shell Programming and Scripting

Redirect the output in a file and on screen

I am trying to get following result from the scipt I have. First time it generates the o/p in correct format. However if I run it again it appends to the existing file. I would like to see o/p on screen as well as save it in file. Everytime it should create new file. ## I/P file 0174 0175... (3 Replies)
Discussion started by: dynamax
3 Replies

9. Shell Programming and Scripting

Need output of script on screen and file with correct return status of the called script.

Hi, I am trying to capture logs of the script in the file as well as on the screen. I have used exec and tee command for this. While using exec command I am getting the correct output in the file but, script output is not getting displayed on the screen as it get executed. Below is my sample... (14 Replies)
Discussion started by: Prathmesh
14 Replies

10. Programming

No output screen when run from file manager

So I have ported a C++ program from windows to linux and when I run it from terminal all is well. However when executed from file manager there is no screen output. The program runs and does what it should, just the problem of not knowing if there are errors or if its even complete. Is there a... (12 Replies)
Discussion started by: pinbot
12 Replies
BlackPixelOfScreen(3)						  XLIB FUNCTIONS					     BlackPixelOfScreen(3)

NAME
BlackPixelOfScreen, WhitePixelOfScreen, CellsOfScreen, DefaultColormapOfScreen, DefaultDepthOfScreen, DefaultGCOfScreen, DefaultVisualOf- Screen, DoesBackingStore, DoesSaveUnders, DisplayOfScreen, XScreenNumberOfScreen, EventMaskOfScreen, HeightOfScreen, HeightMMOfScreen, Max- CmapsOfScreen, MinCmapsOfScreen, PlanesOfScreen, RootWindowOfScreen, WidthOfScreen, WidthMMOfScreen - screen information functions and macros SYNTAX
unsigned long BlackPixelOfScreen(Screen *screen); unsigned long WhitePixelOfScreen(Screen *screen); int CellsOfScreen(Screen *screen); Colormap DefaultColormapOfScreen(Screen *screen); int DefaultDepthOfScreen(Screen *screen); GC DefaultGCOfScreen(Screen *screen); Visual *DefaultVisualOfScreen(Screen *screen); int DoesBackingStore(Screen *screen); Bool DoesSaveUnders(Screen *screen); Display *DisplayOfScreen(Screen *screen); int XScreenNumberOfScreen(Screen *screen); long EventMaskOfScreen(Screen *screen); int HeightOfScreen(Screen *screen); int HeightMMOfScreen(Screen *screen); int MaxCmapsOfScreen(Screen *screen); int MinCmapsOfScreen(Screen *screen); int PlanesOfScreen(Screen *screen); Window RootWindowOfScreen(Screen *screen); int WidthOfScreen(Screen *screen); int WidthMMOfScreen(Screen *screen); ARGUMENTS
screen Specifies the appropriate Screen structure. DESCRIPTION
The BlackPixelOfScreen macro returns the black pixel value of the specified screen. The WhitePixelOfScreen macro returns the white pixel value of the specified screen. The CellsOfScreen macro returns the number of colormap cells in the default colormap of the specified screen. The DefaultColormapOfScreen macro returns the default colormap of the specified screen. The DefaultDepthOfScreen macro returns the default depth of the root window of the specified screen. The DefaultGCOfScreen macro returns the default GC of the specified screen, which has the same depth as the root window of the screen. The DefaultVisualOfScreen macro returns the default visual of the specified screen. The DoesBackingStore macro returns WhenMapped, NotUseful, or Always, which indicate whether the screen supports backing stores. The DoesSaveUnders macro returns a Boolean value indicating whether the screen supports save unders. The DisplayOfScreen macro returns the display of the specified screen. The XScreenNumberOfScreen function returns the screen index number of the specified screen. The EventMaskOfScreen macro returns the root event mask of the root window for the specified screen at connection setup. The HeightOfScreen macro returns the height of the specified screen. The HeightMMOfScreen macro returns the height of the specified screen in millimeters. The MaxCmapsOfScreen macro returns the maximum number of installed colormaps supported by the specified screen. The MinCmapsOfScreen macro returns the minimum number of installed colormaps supported by the specified screen. The PlanesOfScreen macro returns the number of planes in the root window of the specified screen. The RootWindowOfScreen macro returns the root window of the specified screen. The WidthOfScreen macro returns the width of the specified screen. The WidthMMOfScreen macro returns the width of the specified screen in millimeters. SEE ALSO
AllPlanes(3), ImageByteOrder(3), IsCursorKey(3) Xlib - C Language X Interface X Version 11 libX11 1.6.0 BlackPixelOfScreen(3)
All times are GMT -4. The time now is 10:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy