09-19-2003
Standard output not redirected from /bin/sh
I have an application which has a lot of cout & cerr statements.
This application also opens a log file (for eg a.log).
When this application is run from the inittab file as follows
/bin/sh -c " . /etc/timezone; exec /test"
all the cout & cerr statements are printed in the log file (a.log).
This is happening even though I have not explicity re-directed
the output to a.log file.
Please clarify.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
When I run a third parties program from the command line (this program basically list's a whole load of stuff) and write the output to a file it splits the output, i.e. in the middle of the file appears the exit command.
If I don't redirect the output and write it to tty then the output is... (3 Replies)
Discussion started by: dbrundrett
3 Replies
2. Shell Programming and Scripting
Hello Everyone,
I have an option for users in my shell script to create log file. So if user saying “yes” on it, I'm redirecting all output to log file by doing this: > /output.log. However I would like the output being displayed on the screen at the same time. Is it possible? If yes, does anybody... (2 Replies)
Discussion started by: slavam
2 Replies
3. UNIX for Dummies Questions & Answers
I have to confirm that an engine was not able to run. In the output below you see that it indeed got errors, but it didn't send those messages to the output file. When I run the same thing with a different executable it works. So does this mean something in the executable could cause it not to... (7 Replies)
Discussion started by: brdholman
7 Replies
4. Shell Programming and Scripting
I want to execute a command something like:
find / -name "jni.h"
and I want to direct the output of that command to some type of
filter that will leave out all the lines reporting inaccessible
directories (permission unavailable). Is this a pipe or a redirect?
For example, output like... (1 Reply)
Discussion started by: downplay
1 Replies
5. Shell Programming and Scripting
Hi all,
I would like to store the output of a command in a variable and output it to the console at the same time. This is working fine using the following construct
var=`command | tee /dev/tty`
I use this in some scripts to display the output of the command on the console and, at the same... (2 Replies)
Discussion started by: script_man
2 Replies
6. UNIX for Dummies Questions & Answers
Hey, I'm completely new at this and I was wondering if there is a way that I would be able to redirect the log files in a directories standard output and standard error into and excel spreadsheet in anyway?
Please remember don't use too advanced of terminology as I just started using shell... (6 Replies)
Discussion started by: killaram
6 Replies
7. UNIX and Linux Applications
Hi,
Pls check that '|' and '+' present in Step-1 are not copied to log file in Step-3.
Pls suggest how to get the exact output from Step-1 (i.e. with out losing '|' and '+') in to a log file
~Thanks
Step-1: Execute command
> mysql -utest -ptest -htesthost testdb -e "select * from... (3 Replies)
Discussion started by: newbielgn
3 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
Please could anyone advise what the purpose of the dot syntax in the following command means:
tar -cvf ${WORKING_BACKUP_ROOT}/${TAR_ARCHIVE_FILE} . >/${BACKUP_ROOT}/${ARCHIVE_LOG}
Many thanks (2 Replies)
Discussion started by: daveu7
2 Replies
9. Red Hat
I ran the following command.
cat abc.c > abc.c
I got message the following message from command cat:
cat: abc.c : input file is same as the output file
How the command came to know of the destination file name as the command is sending output to standard file. (3 Replies)
Discussion started by: ravisingh
3 Replies
10. Shell Programming and Scripting
Bit of a strange one.
Have a script called rapidclone_test.sh which calls Oracle rapidclone using su -c as an oracle osuser. However, if I control+c out to the calling shell anything entered is not displayed on the terminal. Any command executes successfully though.
Why is the standard... (1 Reply)
Discussion started by: u20sr
1 Replies
LEARN ABOUT DEBIAN
tnat64
TNAT64(1) General Commands Manual TNAT64(1)
NAME
tnat64 - Shell wrapper to simplify the use of the tnat64(8) library to transparently allow an application to connect to IPv4 hosts via
NAT64 on IPv6-only systems when the application doesn't support IPv6 itself.
SYNOPSIS
tnat64 [application [application's arguments]]
or tnat64 [on|off]
or tnat64
DESCRIPTION
tnat64 is a wrapper between the tnat64 library and the application what you would like to run through NAT64.
OPTIONS
[application [application's arguments]]
run the application as specified with the environment (LD_PRELOAD) set such that tnat64(8) will transparently forward all connec-
tions to the NAT64 via IPv6
[on|off]
this option adds or removes tnat64(8) from the LD_PRELOAD environment variable. When tnat64(8) is in this variable all executed
applications are automatically NAT64-ed. If you want to use this function, you HAVE to source the shell script from yours, like
this: "source /usr/bin/tnat64" or ". /usr/bin/tnat64"
Example:
". tnat64 on" -- add the tnat64 lib to LD_PRELOAD
". tnat64 off" -- remove the tnat64 lib from LD_PRELOAD
[show|sh]
show the current value of the LD_PRELOAD variable
<without any argument>
create a new shell with LD_PRELOAD including tnat64(8).
AUTHOR
This script was created by Tamas SZERB <toma@rulez.org> for the Debian package of tsocks. It (along with this manual page) have since been
adapted into the main tsocks project and modified, and then modified to be used with tnat64.
TNAT64 TNAT64(1)