07-09-2007
Hi Anbu,
Thanks for your help,
i got the solution why the script is not executing ,because i am executing the script in tcsh so it displays as illegal error,
so i changed to sh and tried to execute as follows , it displays static time instead of displaying dynamic time for the corresponding dynamic data generation as shown below,
tail -f filename_error.log|awk -v var="$( date +%H":"%M":"%S" "%Y )" ' /parallel nursery GC/ || /GC/ { $0=$0 " " var } ; 1'
[INFO ][memory ] 7654.644: parallel nursery GC 1613483K->1441609K (2969600K), 58.004 ms 01:40:38 2007
[INFO ][memory ] 7672.245: parallel nursery GC 1636286K->1464021K (2969600K), 59.238 ms 01:40:38 2007
[INFO ][memory ] 7680.216: parallel nursery GC 1667206K->1494772K (2969600K), 58.330 ms 01:40:38 2007
[INFO ][memory ] 7691.249: parallel nursery GC 1691520K->1519101K (2969600K), 52.770 ms 01:40:38 2007
[INFO ][memory ] 7698.657: parallel nursery GC 1709864K->1537607K (2969600K), 52.452 ms 01:40:38 2007
[INFO ][memory ] 7705.461: parallel nursery GC 1760051K->1587293K (2969600K), 53.754 ms 01:40:38 2007
[INFO ][memory ] 7713.707: parallel nursery GC 1803076K->1630709K (2969600K), 52.372 ms 01:40:38 2007
[INFO ][memory ] 7719.741: parallel nursery GC 1807109K->1634757K (2969600K), 55.545 ms 01:40:38 2007
[INFO ][memory ] 7725.737: parallel nursery GC 1852025K->1679291K (2969600K), 48.950 ms 01:40:38 2007
[INFO ][memory ] 7731.315: parallel nursery GC 1855691K->1683135K (2969600K), 50.994 ms 01:40:38 2007
[INFO ][memory ] 7738.187: parallel nursery GC 1889400K->1717128K (2969600K), 54.150 ms 01:40:38 2007
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi. Thanks for any help with this. I'm not new to programming but I am new to shell programming. I need a script that will
1. execute 'df -k' and return the volume names with specific text
2. surround each line of the above results in opening and closing xml tags
3. insert the results of step... (5 Replies)
Discussion started by: littlejon
5 Replies
2. UNIX for Dummies Questions & Answers
I am trying to insert a line with a date stamp in a file that is used to monitor activity in one of our directories. By doing this, I want to grep that file each day and go to the last entry for each time a error occurred and pull all errors generated if any exist. If error exists I want that error... (3 Replies)
Discussion started by: shephardfamily
3 Replies
3. Shell Programming and Scripting
Hi All,
I need to get current error messages with time from alert.log.Below is my shell script but it's not working to meet this objective.
could anyone pls share on the above issue for resolution:
####################################################################
## ckalertlog.sh ##... (2 Replies)
Discussion started by: a1_win
2 Replies
4. Shell Programming and Scripting
Hi,
I have gps receiver log..its giving readings .like below
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GPSD,R=1
$GPGSV,3,1,11,08,16,328,40,11,36,127,00,28,33,283,39,20,11,165,00*71... (3 Replies)
Discussion started by: gudivada213
3 Replies
5. Shell Programming and Scripting
Hi i am trying to append value with 0 to an existing file in the position 50-56 & 58-64 only where empty space is there
Rule:
1 row already has some value and i do not want to change anything for this row.
2nd record below you see the position 50-64 is empty, i want to replace with 0000000... (3 Replies)
Discussion started by: kshuser
3 Replies
6. Shell Programming and Scripting
I have an issue where I need to append a value at the last of the csv, I have created a shell script and it is appending the columns at the last but it is appending at all lines, and my requirement is specific to just append at the 1st line.
Have a look and suggest, (7 Replies)
Discussion started by: anujrichhariya
7 Replies
7. Shell Programming and Scripting
Hi all,
I want to check whether tar file exists in the directory or not. If tar file exists in the directory then I want to append the files to it.
I am using the below command to tar files if the file does not exist.
tar zcvf <tar file name> <Files to append>
However, if want to... (4 Replies)
Discussion started by: Nagaraja Akkiva
4 Replies
8. Shell Programming and Scripting
I am developing one script which will take log file name, output file name, date, hour and minute as an argument and based on these inputs, the script will scan and capture all the error(s) that have been triggered from a given time. Example: script should capture all the error after 13:50 on Jan... (2 Replies)
Discussion started by: ROMA3
2 Replies
9. Shell Programming and Scripting
SQL*Plus version : 11.2.0.4
OS : Oracle Linux 6.5
SQL*Plus is a client application to connect to oracle database. The log file for this tool is generated via spool command as shown below.
I am trying to append date ( $dateString ) to spool file as shown below.
$ cat test2.sh
#!/bin/bash... (4 Replies)
Discussion started by: kraljic
4 Replies
10. Shell Programming and Scripting
Hi Experts,
I am beginner to the shell scripting, My requirement is to append double quotes for each column in a file if double quotes does not exist.
Example:
"abc"|123|"gh-ch"|23.067
Use code tags, thanks. (10 Replies)
Discussion started by: spidy
10 Replies
LEARN ABOUT CENTOS
mount.glusterfs
GlusterFS(8) Gluster Inc. GlusterFS(8)
NAME
mount.glusterfs - script to mount native GlusterFS volume
SYNOPSIS
mount -t glusterfs [-o <options>] <volumeserver>:<volumeid> <mountpoint>
mount -t glusterfs
[-o <options>] <path/to/volumefile> <mountpoint>
DESCRIPTION
This tool is part of glusterfs(8) package, which is used to mount using GlusterFS native binary.
mount.glusterfs is meant to be used by the mount(8) command for mounting native GlusterFS client. This subcommand, however, can also be
used as a standalone command with limited functionality.
OPTIONS
Basic options
log-file=LOG-FILE
File to use for logging [default:/var/log/glusterfs/glusterfs.log]
log-level=LOG-LEVEL
Logging severity. Valid options are TRACE, DEBUG, WARNING, ERROR, CRITICAL INFO and NONE [default: INFO]
ro Mount the filesystem read-only
Advanced options
volfile-id=KEY
Volume key or name of the volume file to be fetched from server
transport=TRANSPORT-TYPE
Transport type to get volume file from server [default: tcp]
volume-name=VOLUME-NAME
Volume name to be used for MOUNT-POINT [default: top most volume in VOLUME-FILE]
direct-io-mode=disable
Disable direct I/O mode in fuse kernel module
FILES
/etc/fstab
A typical GlusterFS entry in /etc/fstab looks like below
server1.gluster.com:mirror /mnt/mirror glusterfs log-file=/var/log/mirror.vol,ro,defaults 0 0
/etc/mtab
An example entry of a GlusterFS mountpoint in /etc/mtab looks like below
mirror.vol /mnt/glusterfs fuse.glusterfs rw,allow_other,default_permissions,max_read=131072 0 0
SEE ALSO
glusterfs(8), mount(8), gluster(8)
COPYRIGHT
Copyright(c) 2006-2011 Gluster, Inc. <http://www.gluster.com>
18 March 2010 Cluster Filesystem GlusterFS(8)