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

NAME
forder - convert file data order SYNOPSIS
[file ...] DESCRIPTION
The text orientation (mode) of a file can be right-to-left (non-Latin) or left-to-right (Latin). This text orientation can affect the way data is arranged in the file. The data arrangements that result are called screen order and keyboard order. converts the order of charac- ters in the file from screen order to keyboard order or vice versa. reads the concatenation of input files (or standard input if none are given) and produces on standard output a converted version of its input. If appears as an input file name, reads standard input at that point (use to delimit the end of options in such instances). converts input files for all languages that are read from right-to-left. Unless the option is used, the command merely copies input files to standard output for languages that are read from left-to-right. Options recognizes the following options: Convert file data order for languages read from left-to-right. Identify the file as having been created in Latin mode. Identify the file as having been created in non-Latin mode. EXTERNAL INFLUENCES
Environment Variables The environment variable determines the mode and order of the file. The syntax of is: [mode] [_order] where mode describes the mode of a file: represents Latin mode, and represents non-Latin mode. Non-Latin mode is assumed for values other than and The order describes the data order of a file: is keyboard, and is screen. Keyboard order is assumed for values other than and Mode information in can be overridden from the command line. The environment variable determines the direction of a language (left-to-right or right-to-left). The environment variable determines whether a language has alternative numbers. The environment variable determines the language in which messages are displayed. International Code Set Support Single-byte character code sets are supported. EXAMPLES
The following command begins with file1, which exists in screen order, converts it to keyboard order, sorts the keyboard-ordered output, converts it back to screen order, and redirects the output to file2. Note that is given to inform that file1 was created in non-Latin mode. WARNINGS
It is the user's responsibility to ensure that the environment variable accurately reflects the status of the file. If present, alternative numbers always have a left-to-right orientation. The command is HP proprietary, not portable to other vendors' systems, and will not be provided in future HP-UX releases. AUTHOR
was developed by HP. SEE ALSO
environ(5), strord(3C), nljust(1). forder(1)
All times are GMT -4. The time now is 11:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy