The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to Redirect the error messages from Syslog file to our own Application Log File balasubramaniam HP-UX 3 04-17-2008 10:44 AM
Urgent---Program for getting Exception from a log Anji UNIX and Linux Applications 5 02-21-2008 03:14 AM
error messages in /var/adm/messages nitinp82 UNIX for Advanced & Expert Users 1 04-17-2007 07:17 AM
Redirect messages mpang_ Shell Programming and Scripting 2 01-03-2007 07:24 PM
Need to redirect the messages gaur_amar UNIX for Dummies Questions & Answers 2 06-25-2002 08:00 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-14-2006
Registered User
 

Join Date: Mar 2006
Posts: 89
redirect exception messages from program

Hi, I have a script which invoke a java program and I would like to know whether it is possible to log the exception thrown by the program to a log file in the script? Thanks!
Reply With Quote
Forum Sponsor
  #2  
Old 12-14-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 988
You can redirect most error messages with something like
Code:
./program parameters 2> logfile
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:02 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0