10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am writing a shell script with 2 run time arguments. During the execution if i got any error, then it needs to redirected to a error file and in console. Also both error and output to be redirected to a log file. But i am facing the below error.
#! /bin/sh
errExit ()
{
errMsg=`cat... (1 Reply)
Discussion started by: sarathy_a35
1 Replies
2. Web Development
Apache Web Server:
how to log http 404 error to a separate log file and i do not want to log in access.log
please advice. (2 Replies)
Discussion started by: raghur77
2 Replies
3. Shell Programming and Scripting
So, I have a log file I need to search for ORA- errors.
If the only errors are: ORA-39082|ORA-39083|ORA-01917 then the script should have executed okay.
If there are ORA- errors that are in the log file other than above, then I need to send a mail saying that the script failed.
Any ideas... (1 Reply)
Discussion started by: cougartrace
1 Replies
4. Solaris
Hi
Please would it be right to log the errors from a script running in cron in the following manner:
/datax/vendor/dump.sh > /datax/vendor/err.log 2>&1 (16 Replies)
Discussion started by: fretagi
16 Replies
5. Shell Programming and Scripting
Hello,
As I am still in trouble to easly extract all error's by date in log file, I am deply requesting your help ...
Here is an example of one error (the log file may contain a huge amont of error's, I must be able to extract all error for a day in parameter):
***** L1 FILE... (4 Replies)
Discussion started by: Aswex
4 Replies
6. Shell Programming and Scripting
Hi
I have a requirement to write a script to capture all errors in a Logfile and send the file in email.
If there is any error occurred the subject of email will be ERROR , If there are no error occurred the subject of email will be SUCCESS.
So I created a Log file and put the Appropriate... (2 Replies)
Discussion started by: dgmm
2 Replies
7. Shell Programming and Scripting
Hi Everyone,
I have an issue and trying to get a solution but was not succesful yet. Any help is greatly appreciated.
I am using ksh to inoke sql loader to load data from txt file into two oracle tables based on the condition written in the control file. If an error occurs while loading into... (8 Replies)
Discussion started by: vpv0002
8 Replies
8. Shell Programming and Scripting
HELLO,
I am using such a command to write oracle sqlplus query result to text file:
sqlplus -S xxx/xxx@xxxxxxx @\tmp\2.sql>\tmp\123.txt
Is it possible to script that:
If command succesfull write in \tmp\log.txt:
timestamp and "succeded"
and create 123.txt with results
else
If error... (2 Replies)
Discussion started by: tomasba
2 Replies
9. Shell Programming and Scripting
I am running a script.
if in between due to any problem it fails I have to creat a error log file mentioning what was the error with date and time.
If script executed succesfully I have to create success log file.
Can u help me out. its urgent (2 Replies)
Discussion started by: pradeepreddy
2 Replies
10. HP-UX
Hello,
I am New to Unix.
I am Using HP-UX 9000 Series for my Application.
I am Currently Facing an Issue that the error messages are being written in the syslog file instead of the Application Log File. The Codes for that Syslog.h is written in Pro*C.
I want to know how to Redirect these... (3 Replies)
Discussion started by: balasubramaniam
3 Replies