02-01-2013
Usually the log is merged for coherency, so stderr and stdout are logged contemporaneously in the same log, give or take some stdout buffering. Use redirection ">log_file 2>&1". You are making stderr become stdout and go to the outer log, and stdout goes to the three inner logs. Try that order on all your lines.
This User Gave Thanks to DGPickett For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is this possible? I am attempting to display a new xterm window and tail -f the log file within that new window. I am currently working on a solaris 8 machine if that has any different meaning than the other platforms. As you can see, I am a newbie to this forum and to UNIX. Any help would be... (2 Replies)
Discussion started by: douknownam
2 Replies
2. UNIX for Dummies Questions & Answers
Hello All,
I am newbie to unix.I am trying to use NOHUP command in shell script it works fine with only "nohup test.sh 10 &" and "/opt/user/nohup test.sh 10 &" gives an error saying "ksh: /opt/user/nohup : not found".
Can anybody please guide me to make it work.
Thanks
Blazix (9 Replies)
Discussion started by: blazix
9 Replies
3. UNIX for Dummies Questions & Answers
Hi!
Letīs say I want copy dump-files to a location.
These dump-files vary between 80 and 280MB and will be produced in about 1min or less.
I have a cronjob which (not only) copies those.
So how can I find out whether a file is currently produced or not?
Because if my script works with these... (2 Replies)
Discussion started by: cypher82
2 Replies
4. UNIX for Dummies Questions & Answers
Hi..
Can anybody tell me, what exactly the nohup command does & when is it used?
Your help is appreciated. (3 Replies)
Discussion started by: Amol21
3 Replies
5. Programming
Is it possible that I get all the syslog messages from /var/log/messages redirected to some FIFO as and when any new messages comes.
In exact, I need to duplicate the messages to a FIFO, the moment a new message is logged; from where another process reads and does some processing without... (12 Replies)
Discussion started by: Praveen_218
12 Replies
6. Solaris
# whoami 2>/dev/null
whoami: not found
#
Why the error message not getting redirected to /dev/null ...
The shell is
# echo $SHELL
/sbin/sh
For other commands it is working
# ls aaa 2>/dev/null
#
Is there any other way to redirect the err msg from whoami Thank you for your... (7 Replies)
Discussion started by: Anu_1
7 Replies
7. AIX
I'm trying to run a compress script in the background, but I even though the script is running in the background I get "Sending nohup output to nohup.out." and the screen just stays there. How can I make the script run in background and make my command prompt come back.
I was using:
nohup... (2 Replies)
Discussion started by: NycUnxer
2 Replies
8. UNIX for Dummies Questions & Answers
Suppose executable X produces files A and B from nothing, Y produces C from A, Z produces D from B, and my final goal is to produce C and D. I wrote the following makefile:
.PHONY: all
all: C D
C: A
Y A
D: B
Z B
A B:
X
This makefile seems to reflect all dependencies, as it should... (2 Replies)
Discussion started by: ybelenky
2 Replies
9. 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
10. 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
GRC(1) General Commands Manual GRC(1)
NAME
grc - frontend for generic colouriser grcat(1)
SYNOPSIS
grc [options] command [args]
DESCRIPTION
grc will execute command command with optional parameters [args] piping its stdout or stderr into grcat, with apropriate configuration
file.
Configuration file for grc is determined by /etc/grc.conf file.
Format of /etc/grc.conf: each entry consists of 2 lines, between entries there can be any number of empty lines or lines beginning with #
(comments)
First line is regular expression, second line the name of configuration file for grcat.
Configuration file after the first regular expression matching command [args] will be passed to grcat as its configuration file
OPTIONS
--help Show summary of options.
--version
Display version.
-e --stderr
Redirect error output. Unless -s is selected as well, this cancels redirection of standard output via grcat
-s --stdout
Redirect standard output. Used to redirect standard output together with --stderr option.
--colour=x
x is one of on off auto
--colour=on will colourise (default)
--colour=off will just execute command without colourising.
--colour=auto will test if standard output is a tty, and colourise only when it is.
SEE ALSO
grcat(1)
AUTHOR
Written by Radovan Garabik <garabik @ kassiopeia.juls.savba.sk>
GRC(1)