The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Re-direct the error msg to log file
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Re-direct the error msg to log file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
11-20-2006
rony_daniel
Registered User
Join Date: Oct 2005
Posts: 18
Thanks zazzybob
It worked for me. I did the following:-
Code:
a=`expr ${i} + ${j} >> $log_file 2>&1`
Now the error is going to the log file and not to the console. But please tell me what is wrong with the way I am doing for >> $log_file 2>&1. I want to append both the output as well as any errors to the log file. Please correct me if I am wrong.
rony_daniel
View Public Profile
Find all posts by rony_daniel
Find rony_daniel's past nominations received
Find rony_daniel's present nominations given