Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to route error to log file in unix Post 302129537 by zazzybob on Tuesday 31st of July 2007 11:27:34 AM
Old 07-31-2007
Not entirely sure what you mean - redirecting STDERR to the log should suffice:

Code:
$ find sdkasd -name "asdasd"
find: sdkasd: No such file or directory
$ find sdkasd -name "asdasd" 2>logfile
$ cat logfile
find: sdkasd: No such file or directory

Also; you have a typo in your find command - there should be a space between $10 and the -exec.

Cheers,
ZB
 

10 More Discussions You Might Find Interesting

1. Cybersecurity

UNIX error log

system administration utility has recently been installed at the SCO Openserver (UNIX) servers of our bank. While receiving the error log files of this utility, we have noted the following warning messages: <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> · ... (0 Replies)
Discussion started by: eysheikah
0 Replies

2. Shell Programming and Scripting

alert_oss.log oracle log file in hp-unix

Hi I have go this alert_oss.log that is basically capturing all the oracle errorlogs.Now the problem is that it is one huge file and to see log of some particular date i tried cat alert_oss.log | grep 'Mar 25 10:44:45 2007' > alert_25.txt is not giving me the required output. pls suggest ... (3 Replies)
Discussion started by: Assassin
3 Replies

3. Programming

Error: No Route to host...urgent {socket() connection}

hello, I am doing Socket programming.. when I am establishing a socket connection using TCP protocol ...I am getting Error :: No route to host. at the client side during connect() call...........that it is returning -1. So I thing problem lies here......but what to do now... So for just... (6 Replies)
Discussion started by: arunchaudhary19
6 Replies

4. UNIX for Dummies Questions & Answers

Route the logs to different file other than nohup.out

Hi guys Right now the standard out and standard err are going to nohup.out file I wanted to route to some other name specific files so that it will be easy to research the logs Example I have this line in my script nohup execute receiptLoaderStart & which is routing the logs to... (6 Replies)
Discussion started by: pinky
6 Replies

5. OS X (Apple)

What's The Easiest Route To Creating A Unix Executable File for Terminal?

I've seen the executable open in the application OmniOutliner, can I create an executable with this app? I'd like to be able to create the unix executable and insert it into terminal, but I'm not sure if the Omni app will allow me to create it. Any one have any ideas or possibly familiar with... (10 Replies)
Discussion started by: unimachead
10 Replies

6. Solaris

Error adding static route

Hi all i have a simple question here I'm kind of newbie on solaris development currently i'm trying to add static route to solaris environment and i got error, each time i add this static route to it btw this is my command : root@xxxxxx # ping 1.2.3.1 1.2.3.1 is alive echo ... (15 Replies)
Discussion started by: l33tbot_if
15 Replies

7. Red Hat

Comment in static route file

Hi all, is it possible to add a comment starting with "#" (with vi for example) to the static route file in: /etc/sysconfig/network-scripts/route* Are you aware of any problems this can cause after a network restart? Thanks, Evan (1 Reply)
Discussion started by: Evan
1 Replies

8. Shell Programming and Scripting

Capture all error message in Log file and send the Log file by email

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

9. UNIX for Dummies Questions & Answers

No route to host - mail error

A linux box is supposed to emailing the results of backups to the windows exchange server, but nothing arrives. it never has, as the muppet who set up the Windows domain knew nothing about linux. I know only slightly more than that... pretty sure sendmail is the daemon running to handle mail. it... (0 Replies)
Discussion started by: Noewon
0 Replies

10. UNIX for Beginners Questions & Answers

Print Error in Console and both Error & Output in Log file - UNIX

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
xchkdmp(8)					       JFS utility - dump fsck.jfs log file						xchkdmp(8)

NAME
xchkdmp - dump the contents of a JFS fsck log file created with xchklog SYNOPSIS
xchkdmp [ -f input.file ] [ -V ] DESCRIPTION
xchkdmp dumps the contents of a JFS fsck log file that was created by JFS utility xchklog. If no input file is specified, the default path and file name (<pwd>fscklog.new) is used. The output is written to standard out. OPTIONS
-f input.file Specifies the input file name and path. input.file must be 127 characters or less in length. input.file will be read from the present working directory unless it is fully qualified. -V Print version information and exit (regardless of any other chosen options). EXAMPLES
Dump the contents of the fsck service log in <pwd>fscklog.new: xchkdmp Dump the contents of the fsck service log in /temp/l9651107.log: xchkdmp -f /temp/l9651107.log REPORTING BUGS
If you find a bug in JFS or xchkdmp , please report it via the bug tracking system ("Report Bugs" section) of the JFS project web site: http://oss.software.ibm.com/jfs Please send as much pertinent information as possible, including any xchkdmp error messages and the complete output of running fsck.jfs with the -v option on the JFS device. SEE ALSO
xchklog(8), mkfs.jfs(8), fsck.jfs(8), logdump(8), logredo(8), xpeek(8) AUTHOR
Barry Arndt (barndt@us.ibm.com) xchkdmp is maintained by IBM. See the JFS project web site for more details: http://oss.software.ibm.com/jfs January 11, 2001 xchkdmp(8)
All times are GMT -4. The time now is 09:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy