03-10-2017
Whatever is writing these nohup.out files will need modification, to prevent it writing sparse files. What you're doing right now isn't working, it's generating these weird sparse files instead of starting over at position zero.
What's writing these logfiles? Can you show us the code? You may be able to convince it to move its own logfiles on command.
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Gurus,
I am facing a problem with grepping a set of data in active log file which are the info not in uniform, below is the sample data information.
I am trying to grep value.
Connect_PM Connect to APPS gateway failed
ERROR connection to host anyserver.com, service 6600 timed out
... (4 Replies)
Discussion started by: anakiar
4 Replies
2. AIX
Hi all,
I am new to HACMP. So sorry for the newie question. But I did search the forum and it seems that no one asks this before.
So if a 2-node cluster runs in active-active mode (and the same application), what is the benefit of using HACMP ?
If it runs in active-stanby, it is easy to... (9 Replies)
Discussion started by: qiulang
9 Replies
3. UNIX for Advanced & Expert Users
I have some Solaris processes that run weeks at a time that create rather large log files that I would like to archive/compress daily. Instead of stopping the process, what can be done so that the log file is backed up and shrunk, but the process can still log to the open file handle without major... (7 Replies)
Discussion started by: ckmehta
7 Replies
4. Solaris
Hi,
I need to configure 4 ip address (same subnet and mask) in one ipmp group (two interfaces) in an active active formation (link based). Can some one provide the steps or a tutorial link.
Thanks (2 Replies)
Discussion started by: Mack1982
2 Replies
5. Shell Programming and Scripting
I need some help please...
This is the scenario what I am sitting with.
1 - I am kicking of a batch script.
2 - This batch script is writing to an active log file which is also use by other batch scripts.
3 - I need to monitor this active log file and grep for the script name as well as the... (3 Replies)
Discussion started by: Henk Trumpie
3 Replies
6. UNIX for Dummies Questions & Answers
What kind of problems can be faced if any session which connects to unix server is open for longer time?
How to find out from how much time that session is idle? :) (2 Replies)
Discussion started by: anandgodse
2 Replies
7. Shell Programming and Scripting
#!/bin/bash
for digit in $(seq 1 10)
do
if ping -c1 -w2 192.168.1.$digit &> /dev/null
then
echo "192.168.1.$digit is UP"
else
echo "192.168.1.$digit is DOWN"
fi
done (3 Replies)
Discussion started by: fusetrips
3 Replies
8. Shell Programming and Scripting
Hello,
I wanted to search specific string in the acitve log file and send an email if the search string found in the log.
Log file is written by application all the time. So, script has to search if any new log entry has the specific string for example " sample exception" and send an email. (1 Reply)
Discussion started by: balareddy
1 Replies
logger(1) General Commands Manual logger(1)
NAME
logger - make entries in the system log
SYNOPSIS
tag] pri] file] [message...]
DESCRIPTION
The command provides a program interface to the system log module (see syslog(3C)).
A message can be given on the command line, which is logged immediately, or a file is read and each line is logged. If no file or message
is specified, the contents of the standard input are logged.
Options
The command recognizes the following command-line options and arguments:
Mark every line in the log with the specified
tag. The default is the value returned by (see getlogin(3C)). If returns NULL, is the default.
Enter the message with the specified priority.
The priority can be specified numerically or as a pair. For example, logs the message or messages as level in the
facility. The default is
Log the process ID
of the logger process with each line.
Log the contents of the specified file.
message The message to log; if not specified, the file specified by the option or standard input is logged.
EXTERNAL INFLUENCES
Environment Variables
determines the language in which messages are displayed.
If is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty vari-
able. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of
If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See
environ(5).
International Code Set Support
Single- and multi-byte character code sets are supported.
EXAMPLES
Send the message to the daemon:
Send output from the command (see users(1) to the daemon, marked as level and facility The message is tagged with the string
Send the message to the daemon, at the level and facility:
WARNINGS
The command has no effect if the daemon (see syslogd(1M)) is not running on the system.
Messages written in locales other than the POSIX/C locale are not supported.
AUTHOR
was developed by the University of California, Berkeley.
SEE ALSO
syslogd(1M), getlogin(3C), syslog(3C).
STANDARDS CONFORMANCE
logger(1)