Search Results

Search: Posts Made By: senthil.ak
2,230
Posted By senthil.ak
I Did some changes on the method and finally...
I Did some changes on the method and finally arrived to the below solution which works fine for me.

Validate_Date()
{
is_valid=1
while [ $is_valid -ne 0 ]
do
date_format=$(date "+$1")
...
2,230
Posted By senthil.ak
Hi Aia, Here i know the format, that is constant...
Hi Aia, Here i know the format, that is constant its either %d/%m/%Y or %Y/%m/%d or any other format, we need to validate user input for the format. User inputs may vary and until we wont exit the...
2,230
Posted By senthil.ak
So Aia, How to overcome the situation, I need to...
So Aia, How to overcome the situation, I need to validate the date for the given format and if the format is not correct then i need to change or ask for the again. Do you have any logic please...
2,230
Posted By senthil.ak
Date Validation not working
Hi Experts,

I have a date validation script in that i will validate the date for a given format and search in the logs for that date. The script logic is very simple like below.


...
4,162
Posted By senthil.ak
Input Email ID Validation
Hi Experts,

I've a script where users will input the email id. I want to loop the script until the user enter proper email id.

Its validating for all condition and error out if any wrong data,...
9,596
Posted By senthil.ak
@temp_user How to use this, could you...
@temp_user

How to use this, could you please explain how to include this in the script.
Is it expect \"*?assword:*\" correct one?

@bakunin

Yes i am using the openssl, so i guess its...
9,596
Posted By senthil.ak
SSH password from file
Hi Admin

I'm trying to execute on a script which in my production server. The production server has to phase login.

First, we need to login to a Taxi server by opening a putty session from...
4,717
Posted By senthil.ak
Sorry for the delayed response. The command...
Sorry for the delayed response.

The command is not retruning exact value. I only has 48 null pointer exception so it should retrun around 1200 lines.

$awk -v P1="ERROR OCCURRED :" -v...
4,717
Posted By senthil.ak
Hi Ridic, Its retrieves all lines indeed of...
Hi Ridic,

Its retrieves all lines indeed of errors alone.
{PR=1; EP=1E99} - is this is correct ..? or typo?
4,717
Posted By senthil.ak
- some input lines that should be EXCLUDED ...
- some input lines that should be EXCLUDED


8581 c3be8 NoUser MST-AP: 01/13/2014 15:20:01 Bill Details from Response
8581 c3be8 NoUser MST-AP: 01/13/2014 15:20:01 Local Currency
8581 c3be8...
4,717
Posted By senthil.ak
Sorry Don, I explained above and corrected a few...
Sorry Don, I explained above and corrected a few things below


Do you want to print the 25 lines immediately following the third match,

Yes, There is no 3 matches, only two, but we will have...
4,717
Posted By senthil.ak
Matching two patterns in the consecutive lines
Hi Experts

I need to match 2 patterns consecutively and display 25 lines after that.

1st one - Error
2nd one - End string ( comes along with the pattern one)
3rd one - error

Logic

grep...
1,419
Posted By senthil.ak
It was missing in the "done" it should be ...
It was missing in the "done" it should be

done<pattern.cfg

But I am unable to post the traces logs show here. But still we can consider this way for my experiment.
1,419
Posted By senthil.ak
Please find the details $cat pattern.cfg ...
Please find the details
$cat pattern.cfg
OutOfMemory
Staleconnection

Pattern varies per server and it may increase or decrease.
So shall i modify like below, Is there any other smarter way to...
1,419
Posted By senthil.ak
File grep quick query
Hi Experts,

I need some suggestion on file grep.

I am trying to find multiple pattern with the file grep as below

grep "2013" trace.log | grep -f pattern.cfg -i > $LOG
if [ -s $LOG ] ;...
1,035
Posted By senthil.ak
Thanks much Tytalus,
Thanks much Tytalus,
1,035
Posted By senthil.ak
Retune my script
Hi admin,

I have two files which is on row and many columns ( both are identical), I need to add both the files with two columns and many row.

I have opted the solution in the following way.
...
5,834
Posted By senthil.ak
@MadeInGermany bash-3.2$uname Linux ...
@MadeInGermany
bash-3.2$uname
Linux
bash-3.2$type bash
bash is a tracked alias for /bin/bash

@Corona688 (https://www.unix.com/members/43551.html)
I am not using any custom prompt the i am...
1,519
Posted By senthil.ak
Just for Question 3 - You can get the information...
Just for Question 3 - You can get the information from

cat /proc/cpuinfo
19,419
Posted By senthil.ak
if possible please paste the sample file list...
if possible please paste the sample file list from the directory.
19,419
Posted By senthil.ak
Check this one ls -lrt abc*txt | grep "May" ...
Check this one

ls -lrt abc*txt | grep "May"

Thanks
5,834
Posted By senthil.ak
Bash does not wrap long lines correctly
Ksh is my default shell, but I want use the bash shell since its convenient to me.

When I type a long command line in a terminal, it does not wrap to the next line when I reach the end of the...
13,250
Posted By senthil.ak
what is the best way to read the CPU? you...
what is the best way to read the CPU? you mentioned in your earlier reply we need to for three readings so shall i use like below. appriciate your comments

mpstat 5 3 | tail -1 | awk '{print...
13,250
Posted By senthil.ak
if i do so i will get alert after 15 min about a...
if i do so i will get alert after 15 min about a CPU high do any simple way to perform.

Thanks
13,250
Posted By senthil.ak
CPU usage for 5 mins
Hi Experts,

Please help me in find the right way to create a script for the below task.

Task - I need to create a alert script for CPU usage and I only need to alert when there is a process...
Showing results 1 to 25 of 65

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