Yes it does successfully create the output file, and I have carefully checked it to see that the content is correct.
I am just running the app with a very simple command line string "./appName -i inputFile -o outputFile".
It'd help if you answered some of my questions too...
If I understand you, you want things in outputFile to also appear in the terminal as it goes?
If ros is an output file, and only an output file, I wouldn't have ever expected its output to go anywhere but the output file -- not even in Windows. Things going to stderr should still appear in the terminal of course, and if they're not, please tell me so.
I think something external to the application was following the file and printing its output to terminal. You can print a file being written to to terminal with tail -f by doing something like this:
If you can convince your application to print to standard output, this becomes far simpler:
Hi
I want both standard output and standard error of my command cmd to go to the same file log.txt. please let me know the best commandline to do this.
Thanks (2 Replies)
Hello,
I am very new in writing low level programming in C. I am trying to get an output in Linux 2.6.17.6 gentoo platform, but I don't get any output.
I am trying to do the following:
I am trying to scan a word and print its content at the standard output by using sscanf and printf.
I... (6 Replies)
Hello all
Im using CC: Sun C++ 5.6 2004/07/15 and using the -library=stlport4 when linkning im getting
The fallowing error :
Undefined first referenced
symbol in file
std::ostream &std::ostream::operator<<(std::ios_base&(*)(std::ios_base&))... (0 Replies)
hey guys, I have two files both with two columns, I have already created an
awk code to ignore certain lines (e.g lines that start with 963) as they wou
ld begin with a certain string, however, the rest I have added together and
calculated the average.
At the moment the code also displays... (3 Replies)
Hi all,
I implemented a C++ program and successfully compiled and ran on my laptop. However when I copy my code to another machine (school's sun machine), it didn't run properly. I can compile and run, but cout does not print everything. I used cout in a loop where it iterates no more than 20... (5 Replies)
Hello Friends,
Can some one help me how to redirect output of a file to both a file and std output? All the help would be greatly appreciated.
Regards
Sridhar (1 Reply)
Hi all,
I have a script that bulk loads thousands of lines of data. I need to log the output during the execution of the script.
I know I can redirect (">") the output to a file; however, I want the output going to both the screen and the log file.
I thought I could use pipe to pipe the... (10 Replies)
Hi guys, i have a new problem, even in scripting on KSH.
Given a string by standard INPUT (keyboard), i need to replace each character i print with this one '#' .
It's to camouflage password while digiting on command line.
For example:
----------------------------------
prompt$ ... (3 Replies)
Hi !
I have this input:
12{11}{11110}{80}3456
{123}15{60}9876{8083}34
I try to work on individual numbers between braces.
3 possible cases (here I used colours to be clearer only):
- there is no "0" among the characters between braces: so we don't touch anything.
- there is a "0" among... (4 Replies)
Discussion started by: beca123456
4 Replies
LEARN ABOUT OPENSOLARIS
enhance
enhance(1) User Commands enhance(1)NAME
enhance - enhanced command-line editing facilities
SYNOPSIS
enhance command [argument]...
DESCRIPTION
The enhance program provides enhanced command-line editing facilities to users of third party applications, to which one doesn't have any
source code. It does this by placing a pseudo-terminal between the application and the real terminal. It uses the tecla command-line edit-
ing library to read input from the real terminal, then forwards each just completed input line to the application via the pseudo-terminal.
All output from the application is forwarded back unchanged to the real terminal.
Whenever the application stops generating output for more than a tenth of a second, the enhance program treats the latest incomplete output
line as the prompt, and re-displays any incompleted input line that the user has typed after it. The small delay, which is imperceptible to
the user, isn't necessary for correct operation of the program. It is just an optimization, designed to stop the input line from being re-
displayed so often that it slows down output.
The user-level command-line editing facilities provided by the Tecla library are documented in the tecla(5) man page
DEFICIENCIES
The one major problem that hasn't been solved yet, is how to deal with applications that change whether typed input is echo'd by their con-
trolling terminal. For example, programs that ask for a password, such as ftp and telnet, temporarily tell their controlling terminal not
to echo what the user types. Since this request goes to the application side of the pseudo terminal, the enhance program has no way of
knowing that this has happened, and continues to echo typed input to its controlling terminal, while the user types their password.
Furthermore, before executing the host application, the enhance program initially sets the pseudo terminal to noecho mode, so that every-
thing that it sends to the program doesn't get redundantly echoed. If a program that switches to noecho mode explicitly restores echoing
afterwards, rather than restoring the terminal modes that were previously in force, then subsequently, every time that you enter a new
input line, a duplicate copy will be displayed on the next line.
FILES
/usr/lib/libtecla.so tecla library
~/.teclarc tecla personal customization file.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWesu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO libtecla(3LIB), attributes(5), tecla(5)SunOS 5.11 18 May 2004 enhance(1)