The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Error in messages file FredSmith UNIX for Dummies Questions & Answers 1 03-20-2007 07:04 AM
messages file memory error sun-days UNIX for Advanced & Expert Users 1 01-05-2007 11:41 PM
syslog messages every minute hcclnoodles SUN Solaris 1 11-06-2006 07:20 AM
sort syslog messages 3Gmobile Shell Programming and Scripting 1 08-10-2006 08:00 PM
redirect standard error into log file epall UNIX for Dummies Questions & Answers 7 05-09-2006 03:29 AM

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

Join Date: Apr 2006
Posts: 3
Arrow How to Redirect the error messages from Syslog file to our own Application Log File

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 Error Messages from the syslog Files to the Application Log Files.

Is there any Code Changes Required,If so Please send me a Sample Code so that it will be of some use for me.

Help of any kind will of Greatful to me.


With Regards,
Bala.
Reply With Quote
Forum Sponsor
  #2  
Old 04-17-2008
Registered User
 

Join Date: Apr 2008
Posts: 3
Use "2> error_log_name" at the end of the line to redirect your errors.
Reply With Quote
  #3  
Old 04-17-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
That won't work - what the OP means is that the ProC progam is calling syslog(). I assume that since it is the easiest way to write to the sytem log.

One solution is to write a cron job that greps out recent entries from the app - if you can identify them - from the syslog.
Reply With Quote
  #4  
Old 04-17-2008
Registered User
 

Join Date: Oct 2007
Location: USA
Posts: 568
Question Syslog.h file

Is there a non-standard syslog.h header file that the Pro*C program is using? The one that is included with the OS is in the "/usr/include" directory. Can you attach the source code of the Pro*C program.
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 04:36 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