03-16-2006
How are you doing this manually? The moving file names part....
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is this possible? I am attempting to display a new xterm window and tail -f the log file within that new window. I am currently working on a solaris 8 machine if that has any different meaning than the other platforms. As you can see, I am a newbie to this forum and to UNIX. Any help would be... (2 Replies)
Discussion started by: douknownam
2 Replies
2. Shell Programming and Scripting
Hi All..
I have a log file in which all the backup information is stored. Now i have written a script which get the last line in the backup log file..
ssh -l ora${sid} ${primaryhost} "tail -1 /oracle/$ORACLE_SID/sapbackup/back$ORACLE_SID.log"
However i would like to tail the line last... (4 Replies)
Discussion started by: suri.tyson
4 Replies
3. Shell Programming and Scripting
Hello all,
I've got what I'm pretty sure is a simple problem, but I just can't seem to work past it. I'm trying to use awk to pretty up a log file, and calculate a percentage.
The log file looks like this:
# tail strtovrUsage
20090531-18:15:45 RSreq - 24, RSsuc - 24, RSrun - 78, RSerr -... (4 Replies)
Discussion started by: DeCoTwc
4 Replies
4. Shell Programming and Scripting
Hi,
I have a script which basically watches a log file for new lines using tail, then takes action based on what is logged. I wrote a script to do this for me and its working great, my only problem is that once per week, this log file is archived to another directory, and a new log is created.... (4 Replies)
Discussion started by: lstorm2003
4 Replies
5. Shell Programming and Scripting
Hi,
Im trying to write this script but im stuck on it, basicaly what i want to do is to write a code to verify a log file ( apache log file for example ) and for each new line with specific data , then, output this new line for another file:
full ex:
output of the server.log is (... (4 Replies)
Discussion started by: Thales.Claro
4 Replies
6. HP-UX
AM in need of some plugin/script that can monitor HP-UX file "/var/opt/resmon/log/event.log" .
Have written a scrip in sh shell that is working fine for syslog.log and mail.log as having standard format, have interrogated that to Nagios and is working as I required .
But same script failed to... (3 Replies)
Discussion started by: Shirishlnx
3 Replies
7. Shell Programming and Scripting
Title: Use “tail -f” to monitor and report, but the top line should be always fixed on the screen.
Hi, dear Unix experts,
I am trying to find a Unix command (or scripting) on how to continuously display a text file of its last several lines of contents. But during this displaying, I want some... (2 Replies)
Discussion started by: df3c
2 Replies
8. Shell Programming and Scripting
Hello,
How to tail -f logfile. if log file is gennerate every 1 HR.
I want it works automatically all the time. never changes it by manual.
Thank
ls -trl CybertonTransaction.*
-rw-r--r-- 1 autobot robot 617071 Jul 9 00:02 CybertonTransaction.20130709-00.log
-rw-r--r-- 1 autobot ... (12 Replies)
Discussion started by: ooilinlove
12 Replies
9. Shell Programming and Scripting
Hi,
I want to read a live log file line by line and considering those line which are newly added to file
Below code I am using, which read line but as soon as it read new line from log file its starts processing from very first line of file.
tail -F /logs/COMMON-ERROR.log | while read... (11 Replies)
Discussion started by: ketanraut
11 Replies
10. UNIX for Advanced & Expert Users
Hello,
I have been working on script which need to generate an alert based upon live logs. If string is found then an alert mail must triggered.
tail -n -0 -F works fine to redirect the each latest line from live logs file to grep a pattern for matching but it seems to be not working on... (7 Replies)
Discussion started by: ketanraut
7 Replies
LEARN ABOUT OPENSOLARIS
dbus-monitor
dbus-monitor(1) User Commands dbus-monitor(1)
NAME
dbus-monitor - debug probe to print message bus messages
SYNOPSIS
dbus-monitor [--system | --session] [--profile | --monitor] [watch_expressions]
DESCRIPTION
The dbus-monitor command is used to monitor messages going through a D-Bus message bus.
There are two standard message buses:
o systemwide message bus - Disabled and not supported on Solaris, but installed on many systems as the "messagebus" init service.
o per-user-login-session message bus - Enabled and supported on Solaris, and started each time a user logs in.
The --system and --session options direct dbus-monitor to monitor the system or session buses respectively. If neither is specified, dbus-
monitor monitors the session bus.
dbus-monitor has two different output modes, the 'classic'-style monitoring mode and profiling mode. The profiling format is a compact for-
mat with a single line per message and microsecond-resolution timing information. The --profile and --monitor options select the profiling
and monitoring output format respectively. If neither is specified, dbus-monitor uses the monitoring output format.
The message bus configuration may keep dbus-monitor from seeing all messages, especially if you run the monitor as a non-root user.
See http://www.freedesktop.org/software/dbus/ for more information.
OPTIONS
The following options are supported:
--monitor
Use the monitoring output format (this is the default).
--profile
Use the profiling output format.
--session
Monitor the session message bus (this is the default).
--system
Monitor the system message bus. The system bus is disabled and unsupported on Solaris.
OPERANDS
The following operands are supported:
watch_expressions In order to display the messages you are interested in, you should specify a set of watch_expressions as you would
expect to be passed to the dbus_bus_add_watch function.
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/dbus-monitor Executable for dbus-monitor
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWdbus |
+-----------------------------+-----------------------------+
|Interface stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO
dbus-cleanup-sockets(1), dbus-daemon(1), dbus-launch(1), dbus-send(1), dbus-uuidgen(1), libdbus-glib-1(3), attributes(5)
NOTES
For authorship information refer to http://www.freedesktop.org/software/dbus/doc/AUTHORS. Updated by Brian Cameron, Sun Microsystems Inc.,
2007.
dbus-monitor was written by Philip Blundell. The profiling output mode was added by Olli Salli.
Please send bug reports to the D-Bus mailing list or bug tracker, see http://www.freedesktop.org/software/dbus/
SunOS 5.11 19 Nov 2007 dbus-monitor(1)