04-01-2019
Calling system() if certain text appears on the screen.
Hi.
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.
rz is a program to recieve files via Zmodem protocol. Is this possible? In C, of course.
Any help and/or input is greatly appreciated.
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
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
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
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
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
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
LEARN ABOUT REDHAT
gltext
XScreenSaver(1) General Commands Manual XScreenSaver(1)
NAME
gltext - draws text spinning around in 3D
SYNOPSIS
gltext [-display host:display.screen] [-window] [-root] [-visual visual] [-delay microseconds] [-fps] [-text string] [-wander] [-no-wander]
[-spin axes] [-no-spin]
DESCRIPTION
The gltext program draws some text spinning around in 3D, using a font that appears to be made of solid tubes.
OPTIONS
gltext accepts the following options:
-window Draw on a newly-created window. This is the default.
-root Draw on the root window.
-install
Install a private colormap for the window.
-visual visual
Specify which visual to use. Legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual.
-text string
The text to display. This may contain newlines, but it shouldn't be very long. The default is to display the machine name and OS
version.
This may also be a format string acceptable to date(1) and strftime(3), in which case, it will be updated once a second. So to
make this program display a spinning digital clock, you could do this:
gltext -text "%A%n%d %b %Y%n%l:%M:%S %p"
To include a literal `%', you must double it: `%%'.
See the man page for strftime(3) for more details.
-fps Display a running tally of how many frames per second are being rendered. In conjunction with -delay 0, this can be a useful
benchmark of your GL performance.
-wander Move the text around the screen. This is the default.
-no-wander
Keep the text centered on the screen.
-spin Which axes around which the text should spin. The default is "XYZ", meaning rotate it freely in space. "-spin Z" would rotate the
text in the plane of the screen while not rotating it into or out of the screen; etc.
-no-spin
Don't spin the text at all: the same as -spin "".
ENVIRONMENT
DISPLAY to get the default host and display number.
XENVIRONMENT
to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property.
SEE ALSO
X(1), xscreensaver(1)
COPYRIGHT
Copyright (C) 2001 by Jamie Zawinski. Permission to use, copy, modify, distribute, and sell this software and its documentation for any
purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice
and this permission notice appear in supporting documentation. No representations are made about the suitability of this software for any
purpose. It is provided "as is" without express or implied warranty.
AUTHOR
Jamie Zawinski <jwz@jwz.org>
X Version 11 25-Jul-98 XScreenSaver(1)