06-30-2006
What means the number 20060312 before start/end?
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
In my unix system , I chceck that there are error message append to the /var/adm/syslog . But I also found that part of these message will pop to my login session ( I use telent to login to server ) , I also check the /var/mail/my_loginid is empty , could suggest how can I forbid the message pop to... (1 Reply)
Discussion started by: ust
1 Replies
2. Shell Programming and Scripting
Hello All
i need Shell Script to send /var/log/message or another if he have or grep this file to have some info
like PID or value (e.g like NFS mount - stop ) to some body in my System
Thanks for Advanced (2 Replies)
Discussion started by: Hosam
2 Replies
3. UNIX for Dummies Questions & Answers
I get this message when I write myshell.c program "VM pagefault:SIGSEGV bad add 0x0 err 0x4 nopage read myshell PM: ciredump signal 11 for 1725 /myshell memory fault (core dumped)"
/* RCS information: $Id: myshell.c,v 1.2 2006/04/05 22:46:33 elm Exp $ */
#include <stdio.h>
#include <unistd.h>... (1 Reply)
Discussion started by: rosecomp
1 Replies
4. Shell Programming and Scripting
Hi,
I am working on the script to parsing the specific message like "aaaa" in multiple log files like N1-***,N2-***,N3-***...
The script is to find the list of lof files which contains the message "aaaa" and export the list into excel filE.
Can anyone give help?
Thanks (2 Replies)
Discussion started by: shyork2001
2 Replies
5. Shell Programming and Scripting
Hi
I have a requirement to write a script to capture all errors in a Logfile and send the file in email.
If there is any error occurred the subject of email will be ERROR , If there are no error occurred the subject of email will be SUCCESS.
So I created a Log file and put the Appropriate... (2 Replies)
Discussion started by: dgmm
2 Replies
6. Shell Programming and Scripting
Dear all
I have a log file and the content like this
file name: temp.log
<?xml version="1.0" encoding="cp850"?>
<!DOCTYPE aaabbb SYSTEM '/dtdpath'>
<aaabbb>
<tranDtl>
<msgId>000001</msgId>
</tranDtl>
.....
</aaabbb>
...
... (1 Reply)
Discussion started by: on9west
1 Replies
7. UNIX for Dummies Questions & Answers
Basically, I want to copy all files (F03*) in this directory and merge/paste them into a new file (called SMER_2.03.12.SPU), yet the error message is "no such file or directory." I listed what is in my working directory, and the files do exist, so I'm not sure what's going on. The code's at the... (8 Replies)
Discussion started by: ucsdee
8 Replies
8. Shell Programming and Scripting
HI Everyone,
My task is to search error messages last 10 minutes everytime from a log file.
My script,
date1=`date -d '10 minutes ago' "+%H:%M:%S"`
date2=`date "+%H:%M:%S"`
awk -v d1="${date1}" -v d2="${date2}" '$0~d1{p=1} $0~d2{p=0} p' filename
No error getting in... (3 Replies)
Discussion started by: ctscbe
3 Replies
9. UNIX for Beginners Questions & Answers
Is there any way to print the colorful message in the terminal (which is the output of a simulation) to the log file with the same color.
The colorful message at the terminal is obtained by the following codes:
/////////////codes start here///////////////////////////////////////
... (5 Replies)
Discussion started by: babunp114525
5 Replies
AC(8) BSD System Manager's Manual AC(8)
NAME
ac -- connect time accounting
SYNOPSIS
ac [-dp] [-t tty] [-w wtmp] [users ...]
DESCRIPTION
If the file /var/log/utx.log exists, a record of individual login and logout times are written to it by login(1) and init(8), respectively.
The ac utility examines these records and writes the accumulated connect time (in hours) for all logins to the standard output.
The options are as follows:
-d Display the connect times in 24 hour chunks.
-p Print individual users' totals.
-t tty Only do accounting logins on certain ttys. The tty specification can start with '!' to indicate not this tty and end with '*' to
indicate all similarly named ttys. Multiple -t flags may be specified.
-w wtmp Read connect time data from wtmp instead of the default file, /var/log/utx.log.
users ... Display totals for the given individuals only.
If no arguments are given, ac displays the total connect time for all accounts with login sessions recorded in utx.log.
The default utx.log file will increase without bound unless it is truncated. It is normally truncated by the daily scripts run by cron(8),
which rename and rotate the utx.log files, keeping a week's worth of data on hand. No login or connect time accounting is performed if
/var/log/utx.log does not exist.
FILES
/var/log/utx.log connect time accounting file
EXIT STATUS
The ac utility exits 0 on success, and >0 if an error occurs.
EXAMPLES
Allow times recorded in modems to be charged out at a different rate than other:
ac -p -t "ttyd*" > modems
ac -p -t "!ttyd*" > other
SEE ALSO
login(1), getutxent(3), init(8), sa(8)
BSD
January 21, 2010 BSD