![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Use "2> error_log_name" at the end of the line to redirect your errors.
|
|
#3
|
|||
|
|||
|
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
|
|||
|
|||
|
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.
|
|||
| Google The UNIX and Linux Forums |