Search Results

Search: Posts Made By: reddybs
Forum: Red Hat 01-22-2013
2,844
Posted By reddybs
RIP configuration in RHEL 6.3
Hi,

Can someone please help me configuring RIP (Routing Information Protocol v2 ). I have tried few manuals and posts from networking sites and i didnt get a clear picture.

This is what i...
3,660
Posted By reddybs
Thanks curleb... Your logic works fine and is...
Thanks curleb... Your logic works fine and is really good.

here is the modified script<This looks really fantastic:-):b:>


#!/bin/ksh

ps -ef | grep string | nawk '$5 !~ ":" {print $11;}'...
3,660
Posted By reddybs
Thank you very much for the reply.. Can you...
Thank you very much for the reply..

Can you please brief in what the command does? Sorry for bothering..!
3,660
Posted By reddybs
Listing processes that are a day older
Hi All,

I am trying to automate some stuff to make my 'to-do-things' easier. I am in need for help regarding this.

I have an output

root 17187 3465 0 23:00:00 ? 0:01 Process1 ...
3,225
Posted By reddybs
The command that Zaxxon suggested worked out. I...
The command that Zaxxon suggested worked out. I have modified some parts of my script and embedded this to get the problem resolved.

@Zaxxon: Many thanks for your reply.

@Others: My heart full...
3,225
Posted By reddybs
Hello Zaxxon, Many thanks for the reply. ...
Hello Zaxxon,

Many thanks for the reply.

Yes, i will now need to compare this with the updated contents of the file and check if the pattern has occurred again or not and accordingly i should...
3,225
Posted By reddybs
Hi dr.house....! Me just in!!!! Thanks for...
Hi dr.house....!

Me just in!!!! Thanks for the reply.

Can you guide me how to start with!!! Mean while i will be going through 'arrays' in shell scripting - which is a bit new to me.

Many...
3,225
Posted By reddybs
@girish: Thanks for the reply. I am trying to...
@girish: Thanks for the reply. I am trying to understand your logic and get back to you once done.

@danmero: I really dont know how to put forward this in posts and as i felt this is bit tedious...
4,157
Posted By reddybs
Hi ankurk, try this.... #!/bin/bash ...
Hi ankurk,

try this....

#!/bin/bash
var=$1
path=/ank/desktop
echo $var
grep -rw "$var" * > tosend.lst


Not sure what exactly your are looking for ..!
Things will be clear for mates...
3,225
Posted By reddybs
Hi dr.house.... Thanks a ton for your...
Hi dr.house....
Thanks a ton for your response...

Yes - your logic is fair enough to implement... I've tried some thing related to that.....! But this works only if script finds the same pattern...
3,225
Posted By reddybs
Hi anchal: Thanks for the reply... Problem...
Hi anchal: Thanks for the reply...

Problem in assiging a counter for particular match.

I would be happy if you can read my post again. The script posted in the post doesn't have any problems...
3,225
Posted By reddybs
Problem assigning a counter for particular pattern
Hi,
I have a script that compares two files(which are updated dynamically by a daemon) and evaluate results from the comparision.
For the first line of comparision from the file1, i will grep some...
1,348
Posted By reddybs
Thanks for the replies. @anchal: The code gets...
Thanks for the replies.
@anchal: The code gets the diff of lines(say n lines) but tail will not print all the n lines but it will print the nth line. Rest of the things are good and i am working on...
1,348
Posted By reddybs
Help regarding files
Hi,

I want my script to get the updated lines from a file to another file for each time the script runs.

EX: file1 will be updated time to time(no particular interval can determined, it can...
1,891
Posted By reddybs
Hello Peterro... Thank you very much for the...
Hello Peterro... Thank you very much for the solution.
But there is no option for me to install GNU version of grep on the box.
Looking for some more solutions/alternatives:(
1,891
Posted By reddybs
If you look into the attachement, i dont want the...
If you look into the attachement, i dont want the o/p of metadevice d10(with in first =====). As my script looks for word 'Needs Maintenance' i have taken out those lines using sed. I've specified...
1,891
Posted By reddybs
Hello peterro... Thank you so much for your...
Hello peterro...
Thank you so much for your reply.
If i am correct!!! I wonder if the above command works on DISKSETS? I hope that works only on NONDISKSETS.
If i use

metastat -s DISKSETNAME...
3,113
Posted By reddybs
Hope this is what you are looking for..... Try...
Hope this is what you are looking for.....
Try this:

grep '^*' ipfile | grep ' ' | grep 'string' >opfile
This can be done in one step using egrep. Read man pages of egrep for more details....
1,891
Posted By reddybs
Negate alerting for particular metadevice.
Hi All...
I have a script that checks for any problems(particularly looks for 'Needs Maintenance') with metadevices and alerts accordingly. This was not configured to alert for a particular...
16,118
Posted By reddybs
Wow!!! Just trudging through...
Wow!!!

Just trudging through explanation/experience and is really good. Looks fine and dandy to me now about cron.... But still thinking - time for me to read more. Thanks a ton for your time. :b:
16,118
Posted By reddybs
Many thanks for the both the replies... I had...
Many thanks for the both the replies...
I had enough of curiosity to post my silly doubt, that made me FUNNY to think what if there is no CRON... Haha:)
16,118
Posted By reddybs
Alternative for Cron
Hi... I want to know whether if there is any alternative for cron.:confused:

I had written a script which checks for all system/application processes every 15 min(placed in cron though). But looks...
4,920
Posted By reddybs
Can you post sample input and the expected...
Can you post sample input and the expected output? Please use code tags to improve the readability.

However, here are some things you can give a try -

For File:

awk 'NR>1{exit} {print $1}'...
7,383
Posted By reddybs
echo "string" | sed -e 's/ abc / xyz /g' | sed -e...
echo "string" | sed -e 's/ abc / xyz /g' | sed -e 's/^abc /xyz /g' -e 's/ abc$/ xyz/g'


Hello i am not very sure how to do this using sed options :confused: , there could far better way though....
7,383
Posted By reddybs
echo "abc abcd abcdef" | sed -e...
echo "abc abcd abcdef" | sed -e 's/^abc/xyz/g'
Showing results 1 to 25 of 57

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