Sponsored Content
Top Forums Shell Programming and Scripting Capturing errors messages into log file Post 302523740 by vpv0002 on Thursday 19th of May 2011 03:51:03 PM
Old 05-19-2011
Capturing errors messages into log file

Can we capture and write all the error messages which were being displayed on the command prompt screen during execution of a program into a log file?

If yes, can anyone please let me know on how to do it?

I am using ksh and working on AIX server.

Thank you in advance.
 

10 More Discussions You Might Find Interesting

1. Linux

NFS throwing errors in /var/log/messages

Jan 2 19:49:25 lab009 last message repeated 2 times Jan 2 19:49:25 lab009 kernel: RPC call_verify: retry failed, exit EIO Jan 2 19:49:25 lab009 kernel: call_verify: server accept status: 5 Jan 2 19:49:25 lab009 last message repeated 2 times Jan 2 19:49:25 lab009 kernel: RPC call_verify:... (1 Reply)
Discussion started by: Sivaswami
1 Replies

2. Shell Programming and Scripting

redirect errors to log file

I am working on a generic script that will run a shell script with the arguments passed and redirect errors to one file, and all other output to another file. Then if there is anything in the error file it emails the error to me, otherwise it exits. The advantage for this approach is that I... (0 Replies)
Discussion started by: gandolf989
0 Replies

3. Shell Programming and Scripting

prevent errors/warnings from being written to log file

i have this script which works fine but shows errors when it runs..these are more like warnings and the script runs fine.. i am on a sun machine.. i know it writes all the error messages to a master log file.. is there any way i can turn off these warnings/error messages and prevent them from being... (2 Replies)
Discussion started by: npatwardhan
2 Replies

4. Solaris

NFS errors on messages file.

Hi, The following messages are getting logged to messages file extensively while the omniback backup is going on "NFS write error on host test.test.com: Read-only file system." The system has nfs filesystems and we are backing it up at that time. Any thoughts ?... Appreciate it..... (8 Replies)
Discussion started by: amqstam
8 Replies

5. Shell Programming and Scripting

track the errors in log file

OS: SuSE Linux Enterprise Server 10 Goal: To track the errors in log file, If they exits users will be notify by email. We have a script below: SrchKey="SRVE0242I:" LogFile=/PATHtemOut.log MailTo="DN@mail.com http:// ! -f PATH/alert.last && touch PATH/alert.last egrep $SrchKey $LogFile... (3 Replies)
Discussion started by: sdhn1900
3 Replies

6. Red Hat

Help for capturing a URL from a line from large log file

Can someone please help me how do I find a URL from lines of log file and write all the output to a new file? For e.g - Log file has similar entries, 39.155.67.5 - - "GET /abc/login?service=http://161.120.36.39/CORPHR/TMA2007/default.asp HTTP/1.1" 401 3218 54.155.63.9 - - "GET... (2 Replies)
Discussion started by: rockf1bull
2 Replies

7. Shell Programming and Scripting

Finding errors in log file only in last 10 minutes

Hi there, I have a log file that I need to check every 10 minutes to find if a specific error exists but only in that 10 minute period. The reason is that the log is quite large, and will frequently contain these errors, so I only want alerting if it in the last 10 minutes - I don't want... (3 Replies)
Discussion started by: paul_vf
3 Replies

8. Shell Programming and Scripting

Scan log file for errors

Hi everyone. I am still new to UNIX, and am having trouble figuring out how to create a script to scan a log file to look for errors based on a string. We run AIX 5.3, and would like the ability to report all the instances of WebSphere Broker Execution groups crashing. This script would... (8 Replies)
Discussion started by: jimbojames
8 Replies

9. UNIX for Beginners Questions & Answers

Need in for a script that should check for errors in multiple log file (approx 2500) and should mail

hello everyone, I am new to linux and got this deliverable to write a script that should check for error in multiple log file (count is approx 2500 log files on single server) and once error is found, it should mail that error My logic says: we can put all log files path/location in one... (2 Replies)
Discussion started by: Pratik_CTS
2 Replies

10. Shell Programming and Scripting

Outputting Errors to a Log file

Good Morning, Every so often, I have copy scripts that to don't complete, but I don't immediately know why. It usually ends up being a permissions issue or a length issue. The scripts edit a log file, so I'd like to include any copy errors/issues in that file to check if the copies... (4 Replies)
Discussion started by: Stellaman1977
4 Replies
pppoerd(1M)															       pppoerd(1M)

NAME
pppoerd - PPPoE (Point to Point Protocol over Ethernet) relay SYNOPSIS
config-file] debug-level] log-file] DESCRIPTION
You need the daemon if the PPPoE client and the server are not on the same link. Options supports the following options: Specify the configuration file with absolute path to be used by The default configuration file is Specify the debug level at which logging has to be enabled. The three debug levels are: Logs all error messages. To log these messages, type on the command line. Logs all warning messages. To log these messages, type on the command line. Logs function level debug messages. To log these messages, type on the command line. Specify the log file with absolute path, to which must log all messages. The default log file is EXAMPLES
An example usage of is as follows: WARNINGS
Note that, you cannot run the relay without file. See pppoerd.conf(4) for more information. AUTHOR
was developed by Hewlett-Packard. FILES
PPPoE server daemon PPPoE client PPPoE relay configuration file PPP daemon SEE ALSO
pppd(1), pppoec(1), pppoerd(1M), pppoerd.conf(4). pppoerd(1M)
All times are GMT -4. The time now is 02:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy