Sponsored Content
Full Discussion: messages file on HP-UX
Top Forums UNIX for Dummies Questions & Answers messages file on HP-UX Post 980 by 98_1LE on Wednesday 31st of January 2001 08:52:30 AM
Old 01-31-2001
Where is the messages log (like /var/adm/messages on Solaris) on an HP-UX box?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

messages file memory error

Hi, Does anyone know if this is a patch error or a real memory problem, its happening a lot and wanted to know what to expect if I reboot it. prtdiag shows no errors. the system is anetra running solaris9 5.9 Generic sun4u sparc SUNW,UltraSPARC-IIi-cEngine Jan 5 15:23:39 t1 last message... (1 Reply)
Discussion started by: sun-days
1 Replies

2. UNIX for Dummies Questions & Answers

Error in messages file

I am receiving a repeating error in my /var/adm/messages, and I did a full Google search and search on this site. This site had 1 hit, but didn't really explain why it's occurring, Google didn't return much of value. Perhaps someone here has a potential fix: Mar 20 07:17:52 <server_name>... (1 Reply)
Discussion started by: FredSmith
1 Replies

3. Shell Programming and Scripting

Need Help: Collecting similar messages in a file

Hi All, Since i am very new to shell scripting, i need help from you guys. Suppose there is a file containing: Log message: Ashish "asasasa" asasa asasa asasas.info1 Log message: Kapil "asasasa" asasa asasa asasas..info1 (2 Replies)
Discussion started by: ashish.kapil
2 Replies

4. HP-UX

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... (3 Replies)
Discussion started by: balasubramaniam
3 Replies

5. Shell Programming and Scripting

How to remove the redundancy messages in a file

Hi I have a file in which there are lot of redundancy messages.. Like suppose i have the messages like the following in my file.. 45123|1|784tryr|uirirr|wagras|swyuyau|| 45123|1|784tryr|uirirr|wagras|swyuyau|| I need to remove the extra (45123|1|784tryr|uirirr|wagras|swyuyau||) and need... (1 Reply)
Discussion started by: grajesh_955
1 Replies

6. Shell Programming and Scripting

Parse out known messages from a log file

I am looking for a script to do the following. I have a large log file that contains hundreds of warnings, a lot of which can be ignored. The tool doesn't allow me to suppress it, so I like to parse it out from the log file and isolate just the new messages/warnings, based on an exception file. ... (12 Replies)
Discussion started by: cdn2008
12 Replies

7. Solaris

NFS errors on messages file.

Hi, The following messages are getting logged to messages file extensively while the omniback backup is going on "NFS write error on host test.test.com: Read-only file system." The system has nfs filesystems and we are backing it up at that time. Any thoughts ?... Appreciate it..... (8 Replies)
Discussion started by: amqstam
8 Replies

8. Shell Programming and Scripting

unable to push messages into log file

hello all..... I have a shell script created by the user ABC. in that script, am trying to push some echo messages into a Log file..... eg: echo "error occurred" > but for some reason, my echo messages are not getting redirected to my log file........:confused: need ur urgent... (8 Replies)
Discussion started by: cmaroju
8 Replies

9. UNIX for Advanced & Expert Users

Not getting correct uptime in messages file

The following notice I am getting in /var/adm/messages file Dec 9 06:17:24 hostname lw8: Main, up 476 days 04:42:23, Memory 9,742,808 Dec 9 10:17:25 hostname lw8: Main, up 476 days 08:42:23, Memory 10,179,864 But my actual uptime is :: 11:55am up 25 day(s), 10:38, 3 users, ... (5 Replies)
Discussion started by: brij123
5 Replies

10. UNIX for Dummies Questions & Answers

Why there are /var/adm/messages.0,messages.1,messages.2,messages.3

Hi folks, In what circumstance does the log move to /var/adm/messages.0.......messages.1,messages.2,messages.3 .......etc ---------- Post updated at 06:23 PM ---------- Previous update was at 06:17 PM ---------- To make my questions more understandable, What are the processes that... (4 Replies)
Discussion started by: kimurayuki
4 Replies
log(8)							      System Manager's Manual							    log(8)

NAME
log - Records input and output from a program SYNOPSIS
/usr/sbin/log <logfile> <command> OPERANDS
The file in which to record the interaction being logged. The command to execute. DESCRIPTION
The log program runs <command> and logs the input to and output from <command> to the <logfile> file. Input and output are logged until <command> exits, the log program exits, and the exit status of <command> is returned. The log program is used by the system installation procedure and the it(8) command to create the /var/adm/smlogs/install.log and /var/adm/smlogs/it.log installation log files. RESTRICTIONS
Because the log program is used in the installation standalone environment, program size was the greatest concern in its implementation. The log program does not search for the PATH variable to locate <command> and error messages are terse. The log program causes <command> to take standard input from and write standard output and standard error to UNIX pipes. Some commands will not be able to operate in this environment; therefore, it is suggested that you use the script(1) command instead. UNIX shells will not issue prompts when run from log unless the shell is started with an explicit interactive switch (-i for most shells). For example, log foo.tmp /sbin/sh -i In the previous example, foo.tmp is the name of <logfile>. The log program intercepts end-of-file (usually Ctrl/d). Therefore programs which normally receive end-of-file as an exit command must exit by some other means. ERRORS
Log open error Explanation: The log program was unable to open <logfile>. Verify that the directory exists and that ownerships and permissions are set correctly. Exec Error Explanation: The log program was unable to execute <command>. Verify that you specified a full pathname for <command> and that <command> is an exe- cutable file. Fork Error Explanation: The log program was unable to create one of the processes it requires to log data. SEE ALSO
Commands: it(8), script(1) log(8)
All times are GMT -4. The time now is 02:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy