Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Calling system() if certain text appears on the screen. Post 303033220 by bakunin on Monday 1st of April 2019 05:48:12 PM
Old 04-01-2019
Quote:
Originally Posted by ignatius
I'm wondering if it is possible to execute system(), if a certain string of text appears on the screen or not?
I want to be able to run system("rz -Z") based on if "B00000000000000" appears on the screen.
I don't see why not. "appears on screen" means basically it is part of the output stream of your tty device - intercept that and you will be able to notice when the string appears there. You will also have to find out which terminal you are attached to.

I hope this helps.

bakunin
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

screen resolution for a SPARC system

I have installed Solaris 10 on SPARC system (Ultra 5) And I'm using Acer AL1715 LCD monitor. The screen resolution is not just right. How to change the resolution Thanks in advance. (1 Reply)
Discussion started by: chaandana
1 Replies

2. Solaris

A strange user appears in my quotas and I can't find it in my system

Hello, I am running a Solaris 8 system. I Have encountered that each time I ask the system to report to me the users who have or are about to exceed their quota limit for disk usage, a strange number appears in a user name, it does not appear in my /etc/group or in my /etc/passwd files The user... (13 Replies)
Discussion started by: lzcool
13 Replies

3. Shell Programming and Scripting

Help supressing spool output from screen when calling sqlplus from script

I'm calling an embedded sql from my shell script file. This sql does simple task of spooling out the contents of the table (see below my sample code) into a spool file that I specify. So far so good, but the problem is that the output is also displayed on screen which I do NOT want. How can I... (3 Replies)
Discussion started by: MxC
3 Replies

4. Shell Programming and Scripting

Shell program to check if the same text appears twice in an XML file

Hi All, I am very new to this forum and beginner to shell scripting. I need a shell script to: Search for a text in XML file à if the same text appears twice in an XML file à output file name Script should loop thru every xml file of a given folder. Please help me writing this script. ... (1 Reply)
Discussion started by: amardeep001
1 Replies

5. Solaris

Solaris 8, you boot the system but does not have anything on the screen (not started)

Greetings to all. I have two computers, Sun Blade 150. the first, had the Solaris 8 system, and that system needed to clone the "second" to start it with the same settings. Use a program to clone the drive, and then have cloned, had the error: Can't read disk label. Can't open disk... (4 Replies)
Discussion started by: feliz-58
4 Replies

6. Shell Programming and Scripting

Print Terminal Output Exactly how it Appears in the Terminal to a New Text File

Hello All, I have a text file containing output from a command that contains lots of escape/control characters that when viewed using vi or view, looks like jibberish. But when viewed using the cat command the output is formatted properly. Is there any way to take the output from the cat... (7 Replies)
Discussion started by: mrm5102
7 Replies
pm(4)							     Kernel Interfaces Manual							     pm(4)

Name
       pm - monochrome/color bitmap graphics

Syntax
       device	 pm0  at ibus?	vector pmvint

Description
       The video subsystem provides a half page or full page, user-accessible bitmap display for graphics.  The subsystem consists of a 256 Kbytes
       (monochrome) or a 1 Mbyte (color) block of dual port RAM, a mouse or tablet, a keyboard, and a video monitor.

       The subsystem device driver supports a hybrid terminal with three minor devices.  The first minor device emulates a glass tty with a screen
       that  appears  as  an 80-column by 56-row page that scrolls from the bottom.  This device is capable of being configured as the system con-
       sole.

       The second minor device is reserved for the mouse.  This device is a source of mouse state changes.  (A state change is defined as  an  X/Y
       axis mouse movement or button change.)  When opened, the driver couples movements of the mouse with the cursor.	Mouse position changes are
       filtered and translated into cursor position changes in an exponential manner.  Rapid movements result in large	cursor	position  changes.
       All cursor positions are range checked to ensure that the cursor remains on the display.

       The  third  minor  device  provides  an access path for console output that does not disturb the graphics display.  The caller can open the
       device When this device is open, the graphics driver redirects console device output to the input buffer of this  device.   This  mechanism
       disables console output on the screen and saves the output for later display. This preserves the graphic display integrity.

       Input and output on the first and third minor devices are processed by the standard line disciplines.

       The Hold Screen key is supported. The graphics driver treats this key as if CTRL/S or CTRL/Q had been pressed. Pressing the Hold Screen key
       suspends the output (if it is not already suspended). To resume the output, press the Hold Screen key again.

Files
       Console terminal or graphics device

       Mouse or tablet graphics device

       Console message window for workstation

See Also
       console(4), devio(4), tty(4), ttys(5), MAKEDEV(8)

								       RISC								     pm(4)
All times are GMT -4. The time now is 07:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy