Search Results

Search: Posts Made By: KDMishra
19,437
Posted By KDMishra
How to hide connection response during ssh user@server?
I tried following options, but dint find solution:

send "pw \r" > /dev/null

and

(
spawn ssh user@server1
expect "*? assword:"
send "pw \r"
expect "$"
send " sh ./filename1 \r"...
19,437
Posted By KDMishra
Hi, First of all thanks for suggesting the...
Hi,

First of all thanks for suggesting the solution.

But these solutions are not able to resove the problem.

both the suggestions are giving some errors.

Could any one suggest the...
19,437
Posted By KDMishra
Hide the output of spawn ssh user@server
Hi All,

I have written one script, which is connecting 3 diffrent servers and executing script placed on those.
It is smthing like:

spawn ssh user@server1
expect "*? assword:"
send "pw \r"...
3,607
Posted By KDMishra
Hi Bipin, Thanks a lot, it exactly solved...
Hi Bipin,

Thanks a lot, it exactly solved my problem.
once again thank you:)

Regards,
KD
3,607
Posted By KDMishra
[Solved] How to remove listing of current user cmd from ps -ef listing?
Hi All,


Could you please help to resolve my following issues:

Problem Description:

Suppose my user name is "MI90".
i.e. $USER = MI90

when i run below command, i get all the...
11,695
Posted By KDMishra
Hi Raj, really very much thanks to you and your...
Hi Raj,
really very much thanks to you and your talent.
finally it working in expected manner and getting the expected ouput.

So once again thanks to you & others too for helping to solve this...
11,695
Posted By KDMishra
it can contain whole years logs
it can contain whole years logs
11,695
Posted By KDMishra
and the code to extract last nth day's date is ...
and the code to extract last nth day's date is
START=`TZ="GMT+$((24*N))" date +"%Y %b %d"`

---------- Post updated at 02:50 AM ---------- Previous update was at 02:44 AM ----------

Yes Pamu,...
11,695
Posted By KDMishra
Yes Raj, this can be done but problem is that we...
Yes Raj, this can be done but problem is that we are not sure that at what value of 'p' there will be an existing date in logfile.
So for each value of 'p' command will get executed and hence...
11,695
Posted By KDMishra
Yes this can be done.. Good option, but it...
Yes this can be done..
Good option, but it giving each time some output... and not sure at what valuue of 'p' there will be an existing date in log file.

So after each execution of command its...
11,695
Posted By KDMishra
Hi Raj, In log file date format is 2012 Jun 06...
Hi Raj,
In log file date format is 2012 Jun 06

Also in your previous reply u suggested that the p=1... so what can i set there.
because if i set p=0 and searching from 2012 Aug 01 to now....
11,695
Posted By KDMishra
Hi Subbeh, it realy worked, But its not giving...
Hi Subbeh, it realy worked,
But its not giving logs corresponding to 2012-08-22 16:00,

where as i need all the logs corresponding any date from 2012-08-20 11:30 to 2012-08-22 16:00
11,695
Posted By KDMishra
Thanks but that is worked in cse if we kknow the...
Thanks but that is worked in cse if we kknow the exact date or timestamp.
Problem is that if that timestamo or date is not present in log file iit is giving whole file where aas it should give...
11,695
Posted By KDMishra
[Solved] Fetching logs of last few days from logfile
Hi All,

I have a requirement to fetch logs of last 'N' days.
I am trying the following command which is working fine if it finds the date of that day in logfile.
START=`TZ="GMT+$((24*N))" date...
8,976
Posted By KDMishra
sorry for late thanks. But really thanks a...
sorry for late thanks.

But really thanks a lot every one who suggested their ideas.
The Elixir codes really worked in all the scenarios.
once again thank You:):)
8,976
Posted By KDMishra
Fetch data between two dates from a file
Hi All,

I m new to this forum & UNix too.
currently i have a requirement which can fetch data from a logfile between two dates or timestamp.

for example:
1. data from 2012 Jun to 2012 Jul...
Showing results 1 to 16 of 16

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