Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Calling system() if certain text appears on the screen. Post 303033214 by ignatius on Monday 1st of April 2019 04:44:10 PM
Old 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

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
TRAD(1) 						      General Commands Manual							   TRAD(1)

NAME
trad - graphical user interface to Radiance rad(1) program SYNOPSIS
trad [ rfile ] DESCRIPTION
Trad is a graphical user interface to rad(1), which controls the operation of the basic Radiance scene compiling, rendering and picture filtering programs. Trad also includes links to a few utilities for displaying and converting results, but most of what it does can be done by editing a small text file, called the "rad input file". Scene creation still requires the use of a text or graphical editor, or translation from some external CAD format. Trad is based on the Tcl/Tk wish(1) "windowing shell" written by John Ousterhout. (See below for instructions on installing this package if you do not have it already.) The trad interface divides the rendering problem into seven screens: File, Scene, Zone, Views, Options, Action and Results. The File screen is used to load and save rad input files (a.k.a. project files). The Scene screen is used to name the Radiance input files associ- ated with a particular project. The Zone screen is used to assign rad variables specific to the section of the model being rendered. The Views screen is used to define specific views to be rendered and set the picture file names and dimensions. The Options screen is used to adjust rendering quality and other parameters. The Action screen is used to initiate interactive and batch renderings. The Results screen is used to display, convert and print the rendered Radiance pictures. If trad is called with no rad input file name on the command line, it will start with the File screen and you must enter a valid project file before you will be allowed to continue. If rfile is given, then trad attempts to open this file. If no such file exists, trad assumes you are creating a new file by this name and goes to the Scene screen so you may identify the appropriate Radiance input files. If the file exists but not all renderings have been finished, trad goes first to the Action screen, assuming you will want to do something. If the file exists and all renderings have completed and are up-to-date, trad goes to the Results screen so that you may examine the final pictures. Trad includes an extensive help facility, which may be accessed either by pressing the "HELP" button and searching through the category and topic menus, or by holding the Control key and pressing the left mouse button on the mysterious widget (i.e. the button, entry window, or list box you are curious about). INSTALLING TCL
/TK The Tcl/Tk package is available by anonymous ftp from ftp.smli.com (204.153.12.45) in the /pub/tcl directory. (Tcl stands for "Tool Com- mand Language," and is pronounced "tickle".) Trad is based on Tk release 4.0, which in turn is based on Tcl release 7.4. Although trad uses only the wish program from this package, wish itself depends on additional Tcl and Tk libraries, and the two toolkits must be compiled one after the other. To compile the Tcl/Tk package, download the files "tcl7.4.tar.Z" and "tk4.0.tar.Z" and uncompress and untar them. Then, follow the instructions in the README file in the tcl7.4/ directory to configure the Makefile for your system and install the software. (Usually, it is best to do this as root or have it done by your system administrator if you do not have root privileges.) Then, do the same in the tk4.0/ directory. Trad should run without modification once this is done correctly. AUTHOR
Greg Ward wish and Tcl/Tk language by John Ousterhout SEE ALSO
oconv(1), pfilt(1), rad(1), rpict(1), rvu(1), wish(1), ximage(1) RADIANCE
1/24/96 TRAD(1)
All times are GMT -4. The time now is 08:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy