The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > 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 10:04 AM
messages file memory error sun-days UNIX for Advanced & Expert Users 1 01-06-2007 02:41 AM
syslog messages every minute hcclnoodles SUN Solaris 1 11-06-2006 10:20 AM
sort syslog messages 3Gmobile Shell Programming and Scripting 1 08-10-2006 11:00 PM
redirect standard error into log file epall UNIX for Dummies Questions & Answers 7 05-09-2006 06:29 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-21-2006
balasubramaniam balasubramaniam is offline
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.
  #2 (permalink)  
Old 04-17-2008
krselva82 krselva82 is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 3
Use "2> error_log_name" at the end of the line to redirect your errors.
  #3 (permalink)  
Old 04-17-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,715
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.
  #4 (permalink)  
Old 04-17-2008
shamrock shamrock is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2007
Location: USA
Posts: 750
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.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:24 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0