Sponsored Content
Full Discussion: reading from a screen
Top Forums UNIX for Dummies Questions & Answers reading from a screen Post 50398 by satyanarayang on Friday 23rd of April 2004 06:38:20 AM
Old 04-23-2004
reading from a screen

Hi

There is a program running which displays output on the screen
I have to grep a particular string from that screen how do i do this

My problem is i'm running this program from a script which executes after every fifteen mins but sometimes it's happen that there is an error in the program which my script cannot recognise i wan't to trap this error in basic from the screen.

Pls help
 

10 More Discussions You Might Find Interesting

1. Programming

How to clear screen

I searched the post and someone said to clear the screen in C, use printf("\033[2J"); ?? However, this doesn't work...typo or no. What is an equivalent command to 'CLS' in DOS/'clear' in UNIX to clear the screen and go to top of screen?? Thank you. (2 Replies)
Discussion started by: giannicello
2 Replies

2. Programming

clear screen

what is the syntax for clearing the screen in c ? when i tried "Clrscr()" the CC complier does not reconise it. please do tell me more about this. thanking you imma (6 Replies)
Discussion started by: immanuelgangte
6 Replies

3. UNIX for Dummies Questions & Answers

Help with screen

Hello everyone! I'm trying to figure out how to send commands from one screen to another. For example i wish to send a simple "ls -all" from screen #1 to screen #2, can it be done, and how? :confused: Thank you! (12 Replies)
Discussion started by: Gurth
12 Replies

4. Programming

reading reading data from webpage

hi iam reading data from web page using request socket and curl socket. now my problem is some the web page containg data as a image so how can i read the data from a image. thank,inadvance. sree (3 Replies)
Discussion started by: phani_sree
3 Replies

5. OS X (Apple)

Virtual screen accessed by Screen Sharing

Hi, I'm trying to create a virtual screen, (maybe xvfb? or any other virtual screen buffer) and be able to use Screen Sharing to connect to it. The setup is that I have a Mac Mini connected to the TV. But when my girlfriend is using Front Row, I can't use Screen Sharing at the same time from... (0 Replies)
Discussion started by: linge
0 Replies

6. Solaris

Screen ultility help

Solaris 8/9/10: Pls tell me how to create a screen session with read/write/execute access to me (owner) and read access to other user to see what I am doing, Also tell me how can I transfer my ownership to some other user for read/write/execute access. (0 Replies)
Discussion started by: harpreetrekhi
0 Replies

7. UNIX for Dummies Questions & Answers

Reading from Screen/Standard Output

Is it possible to read from the screen or standard output? If so, may I know how I can do this? For example, I have an application running which prints out the following on the screen: Starting tools from .image-tools... imagecontrol_1: SECS/GEM-capable version is running done cindy@pgunix... (2 Replies)
Discussion started by: sippingsoda
2 Replies

8. Red Hat

command line tool to disable screen lock and/or screen saver

Hi, I have a simple question : how to disable screen lock and/or sreen saver with command line with RHEL5.4 ? (1 Reply)
Discussion started by: albator1932
1 Replies

9. UNIX for Dummies Questions & Answers

Accidentally made a screen within a screen - how to move it up one level?

I made a screen within a screen. Is there a way to move the inner screen up one level so that it is at the same level as the first screen running from the shell? (2 Replies)
Discussion started by: phpchick
2 Replies

10. Shell Programming and Scripting

O/P same as on screen

#Random Scripts 4 #Desc: clear echo "1. To see all processes currently running on the system" echo "2. To kill any given process" echo "Choose between the two" read x case $x in "1")print `ps aux`;; "2") echo "Choose a process to be killed" read y check=`ps ax | grep... (1 Reply)
Discussion started by: targetshell
1 Replies
XHPGetServerMode(3X)													      XHPGetServerMode(3X)

NAME
XHPGetServerMode - Get the mode of the specified screen. SYNOPSIS
int XHPGetServerMode (display, screen) Display *display; int screen; ARGUMENTS
display Specifies the connection to the X server. screen Specifies the number of the screen whose mode is requested. DESCRIPTION
This request enables a client program to determine the mode of a screen. The mode returned is an integer that can be compared against one of the predefined modes. The following modes are defined: XHPOVERLAY_MODE The X server is running in the overlay planes. XHPIMAGE_MODE The X server is running in the image planes. XHPSTACKED_SCREENS_MODE The X server is running with the overlay and image planes on different screens. XHPCOMBINED_MODE The X server is running in both the overlay and image planes. These constants can be obtained by including the file /usr/include/X11/XHPproto.h. If an invalid screen number is used, a -1 will be returned by this request. DIAGNOSTICS
The return value indicates success or failure. RETURN VALUE
This request returns the display mode if the request is successful, and a -1 if an invalid screen id is used. FILES
/usr/include/X11/XHPproto.h ORIGIN
Hewlett-Packard Company X Version 11 Release 5 XHPGetServerMode(3X)
All times are GMT -4. The time now is 09:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy