Sponsored Content
Top Forums Shell Programming and Scripting Grep last 30 minutes log only Post 302858889 by learnbash on Tuesday 1st of October 2013 03:02:03 PM
Old 10-01-2013
awesome working now, able to complete script.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Convert minutes to hours, minutes, seconds

How would you convert lets say a 1000 minutes to hours, minutes, seconds (1 Reply)
Discussion started by: Vozx
1 Replies

2. Shell Programming and Scripting

Grepping the last 30 minutes of a log file...

I need to know if anyone can assist me on how to grab the last (we'll just say "x" minutes) of a log file. How do you tell the grep command without specifying an exact window of time? (So relative instead of absolute.) Thanks, Jon (2 Replies)
Discussion started by: jtelep
2 Replies

3. Shell Programming and Scripting

grep the time within given minutes

Mar 26 15:25:11 : jdoe : TTY=pts/2 ; PWD=/home/jdoe ; USER=root ; COMMAND=/usr/bin/su - Mar 26 15:28:52 : jdoe : 3 incorrect password attempts ; TTY=pts/2 ; PWD=/home/jdoe ; USER=root ; COMMAND=/usr/bin/su - Mar 25 12:23:07 : jdoe : TTY=pts/2 ; PWD=/home/jdoe ; USER=root ; ... (6 Replies)
Discussion started by: Daniel Gate
6 Replies

4. Shell Programming and Scripting

Script to grep for a string in log files generated in last 15 minutes.

Dear Guru's I've a requirment to grep for a string in series of log files that are getting generated almost every minute. I'm looking to schedule a script every 15 mountes,in order to check if the error string has been generated in any of the log files generated in last 15 minutes. Please... (3 Replies)
Discussion started by: rajivatnova
3 Replies

5. Shell Programming and Scripting

Move all .log except those generated in the last 5 minutes

RHEL 5.8 In the directory /u03/pkms/app_logs I have several hundreds of log files as shown below. $ pwd /u03/pkms/app_logs $ ls -alrt *.log | tail -50 -rw-r----- 1 oracle dba 9439232 May 4 13:57 mvtpcem_1_722892404_94157.log -rw-r----- 1 oracle dba 9227264 May 4 13:57... (8 Replies)
Discussion started by: kraljic
8 Replies

6. Shell Programming and Scripting

Log File Creations for every 60 minutes

Hi All, Below script will make a copy of the existing log file with the then timestamp details. I am looking to create a copy of the existing log file for every 60 minutes and when the file limit reaches to 5, the 6th copy should overwrite the first backedup file which means all the time it... (3 Replies)
Discussion started by: Upendra Bestha
3 Replies

7. Shell Programming and Scripting

Run this grep every 10 minutes and do something based on the output

OS : Red Hat Linux 6.4 Shell : Bash We have a file called status.txt which will have only 1 line. The content will be the string "Processing" for most of the day. # cat status.txt Processing #I want to write a shell script (notify.sh) which will be executing a grep every 10 minutes . ... (7 Replies)
Discussion started by: kraljic
7 Replies

8. Shell Programming and Scripting

Grep last 2 minutes log only

I have newbie, which i use for checking last one hours log file, but i want to check 2 minutes log and discard old log, only match current time with last 2 minutes. Ex log. 2018-07-03 20:09:17 2018-07-03 20:05:17 2018-07-03 20:05:18 2018-07-03 20:05:20 2018-07-03 20:06:22 2018-07-03... (5 Replies)
Discussion started by: ooilinlove
5 Replies

9. UNIX for Beginners Questions & Answers

How to convert days hours minutes seconds to minutes?

Hi, please help with below time conversion to minutes. one column values: 2 minutes 16 seconds 420 msec 43 seconds 750 msec 0 days 3 hours 29 minutes 58 seconds 480 msec 11 seconds 150 msec I need output in minutes(total elapsed time in minutes) (2 Replies)
Discussion started by: ramu.badugula
2 Replies

10. Shell Programming and Scripting

Grep a log file for the last 5 minutes of contents every 5 minutes

Hi all, System Ubuntu 16.04.3 LTS i have the following log INFO 2019-02-07 15:13:31,099 module.py:700] default: "POST /join/8550614e-3e94-4fa5-9ab2-135eefa69c1b HTTP/1.0" 500 2042 INFO 2019-02-07 15:13:31,569 module.py:700] default: "POST /join/6cb9c452-dcb1-45f3-bcca-e33f5d450105... (15 Replies)
Discussion started by: charli1
15 Replies
AWESOME(1)																AWESOME(1)

NAME
awesome - awesome window manager SYNOPSIS
awesome [-v | --version] [-h | --help] [-c | --config FILE] [-k | --check] DESCRIPTION
awesome is a window manager for X. It manages windows in different layouts, like floating or tiled. Any layout can be applied dynamically, optimizing the environment for the application in use and the task currently being performed. In a tiled layout, windows are managed in a master and stacking area. The master area contains the windows which currently need the most attention, whereas the stacking area contains all other windows. In a floating layout windows can be resized and moved freely. Dialog windows are always managed as floating, regardless of the layout currently applied. The spiral and dwindle layouts are special cases of the tiled layout where the stacking area is arranged in a spiral for the former or as a rectangular fractal for the later. Windows are grouped by tags in awesome. Each window can be tagged with one or more tags. Selecting certain tags displays all windows with these tags. awesome can contain small wiboxes which can display anything you want: all available tags, the current layout, the title of the visible windows, text, etc. OPTIONS
-v, --version Print version information to standard output, then exit. -h, --help Print help information, then exit. -c, --config FILE Use an alternate configuration file instead of $XDG_CONFIG_HOME/awesome/rc.lua. -k, --check Check configuration file syntax. DEFAULT MOUSE BINDINGS
Navigation Button1 on tag name View tag. Button4, Button5 on tag name Switch to previous or next tag. Button4, Button5 on root window Switch to previous or next tag. Button1, Button3, Button4, Button5 on layout symbol Switch to previous or next layout. Layout modification Mod4 + Button1 on tag name Tag current client with this tag only. Mod4 + Button3 on tag name Toggle this tag for client. Button3 on tag name Add this tag to current view. Mod4 + Button1 on client window Move window. Mod4 + Button3 on client window Resize window. DEFAULT KEY BINDINGS
Window manager control Mod4 + Control + r Restart awesome. Mod4 + Shift + q Quit awesome. Mod4 + r Run prompt. Mod4 + x Run Lua code prompt. Mod4 + Return Spawn terminal emulator. Mod4 + w Open main menu. Clients Mod4 + Shift + r Redraw the focused window. Mod4 + m Maximize client. Mod4 + n Minimize client. Mod4 + Control + n Restore client. Mod4 + f Set client fullscreen. Mod4 + Shift + c Kill focused client. Mod4 + t Set client on-top. Navigation Mod4 + j Focus next client. Mod4 + k Focus previous client. Mod4 + u Focus first urgent client. Mod4 + Left View previous tag. Mod4 + Right View next tag. Mod4 + 1-9 Switch to tag 1-9. Mod4 + Control + j Focus next screen. Mod4 + Control + k Focus previous screen. Mod4 + Escape Focus previously selected tag set. Layout modification Mod4 + Shift + j Switch client with next client. Mod4 + Shift + k Switch client with previous client. Mod4 + o Send client to next screen. Mod4 + h Decrease master width factor by 5%. Mod4 + l Increase master width factor by 5%. Mod4 + Shift + h Increase number of master windows by 1. Mod4 + Shift + l Decrease number of master windows by 1. Mod4 + Control + h Increase number of columns for non-master windows by 1. Mod4 + Control + l Decrease number of columns for non-master windows by 1. Mod4 + space Switch to next layout. Mod4 + Shift + space Switch to previous layout. Mod4 + Control + space Toggle client floating status. Mod4 + Control + Return Swap focused client with master. Mod4 + Control + 1-9 Toggle tag view. Mod4 + Shift + 1-9 Tag client with tag. Mod4 + Shift + Control + 1-9 Toggle tag on client. Mod4 + Shift + F1-9 Tag marked clients with tag. CUSTOMIZATION
awesome is customized by creating a custom $XDG_CONFIG_HOME/awesome/rc.lua file. SIGNALS
awesome can be restarted by sending it a SIGHUP. SEE ALSO
awesomerc(5) awesome-client(1) BUGS
Of course there's no bug in awesome. But there may be unexpected behaviors. AUTHORS
Julien Danjou <julien@danjou.info[1]> and others. WWW
http://awesome.naquadah.org NOTES
1. julien@danjou.info mailto:julien@danjou.info 07/16/2012 AWESOME(1)
All times are GMT -4. The time now is 01:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy