You have 4 commands that are using redirection:
You need to change the order of redirections on all four of them to:
Plz one question, why changing the order of redirection would make a difference? what is the meaning of "2>&1" ? I think that 2>&1 is telling that standard error becomes standard output and logges to the same outer log, meaning log to "logFileA.txt" instead of the 3 inner log files.
I changed the redirection in the four command lines and it is still logging the Error Message to the Outer Log (logFileA.txt). How could I make it to log the Error to the 3 inner log files?
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)
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)
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)
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)
# 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)
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)
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)
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)
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)