Search Results

Search: Posts Made By: rockstar
2,958
Posted By rockstar
Hi RudiC, Yes indeed, I have checked all...
Hi RudiC,

Yes indeed, I have checked all posts before replying back and clearly mentioned that none of the <scripts> worked because I tried all of them. The previous post had just one of the...
2,958
Posted By rockstar
Hello, Thanks to everyone for their...
Hello,

Thanks to everyone for their efforts. Sorry, was away for few days and didn't get the time to look at the solutions provided.

I tried all scripts from this forum but none of the script...
2,958
Posted By rockstar
#!/bin/bash NOW=$(`date +%s`) last=$((...
#!/bin/bash

NOW=$(`date +%s`)
last=$(( $NOW - 30*60 )) # last 30 minute
while read mth dy hhmmss A9 ; do

curr-time=$(date --date "${mth} ${dy} ${hhmmss}" '+%s')
if [[ "$curr-time" -ge...
2,958
Posted By rockstar
#!/bin/bash to=`date +"<%b%_d,...
#!/bin/bash

to=`date +"<%b%_d, %Y,%l:%M:%S,%3N %p %Z>"`
let from_in_seconds=`date +%s`-5000
from=`date -d @$from_in_seconds +"<%b%_d, %Y,%l:%M:%S,%3N %p %Z>"`
awk '$0>=from && $0<=to'...
2,958
Posted By rockstar
Extract lines if string found from last 30 min only
Hi guys,

Appreciate your help as I am stuck with searching the logs for last 30 minutes from the current time. Current time is time when you execute the script and it will search for <string>...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 02:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy