Search Results

Search: Posts Made By: taekwondo
Forum: Filesystems, Disks and Memory 12-17-2009
8,036
Posted By taekwondo
Thank you Frank.
Thank you Frank. I am running the dd command and tailing var/log messages to see if it shows anything. My gut tells me there is nothing wrong with the disk and the problems resulted as of the...
Forum: Filesystems, Disks and Memory 12-16-2009
8,036
Posted By taekwondo
Do you have the command line for the dd?
Do you have the command line for the dd?
Forum: Filesystems, Disks and Memory 12-15-2009
8,036
Posted By taekwondo
How do I check 4 physical damaged on Linux hard disks?
How do I check for physical damage on red hat linux hard disks? I tried smartctl /dev/sdb but it came back so fast saying it was ok. Is there a better linux command to check for bad sectors or...
2,056
Posted By taekwondo
No help, very disappointed. OK, I'll stop asking...
No help, very disappointed. OK, I'll stop asking and figure it out myself.
2,056
Posted By taekwondo
Anyone?
Anyone?
2,056
Posted By taekwondo
How do I add the option to change the path in a menu?
How do I add the option to change the path in a menu? I have this script. The user chooses a number and had the option of doing something, looking for log files etc. There is a possibility they...
2,798
Posted By taekwondo
Sorry, I have one more urgent request. My...
Sorry, I have one more urgent request. My manager has asked me how to add a time variable. In other words, the user of the script must be able to choose a time, say 10-01-09 to 10-03-09. Can you...
2,798
Posted By taekwondo
This works great. Thank you all so much for your...
This works great. Thank you all so much for your help.

6) echo "enter your search criteria here"
read var_1;
cd /home/demo/current_release/logs/current
...
2,798
Posted By taekwondo
I guess my lack of scripting combined with my flu...
I guess my lack of scripting combined with my flu are making me dizzy. If I add a line to the menu, such that is says input here your search criteria. How then do I pass it to the read?
echo " ...
2,798
Posted By taekwondo
This is what I want to do. Get the word...
This is what I want to do.


Get the word and search as variable.

So that I can have an option in the menu for the person to enter a keyword and do the search on that keyword. I think it needs...
2,798
Posted By taekwondo
Help adding a key word search to my script
Hello:

I need help adding a key word search to my bash script. I have the following script. My boss whats the user to be able to add a search word e.g. unknown failures for the script to search...
5,427
Posted By taekwondo
My script is almost done! Thanks everyone for...
My script is almost done! Thanks everyone for your help and support.

---------- Post updated at 01:32 PM ---------- Previous update was at 09:49 AM ----------

Sorry, it was working fine. Then...
5,427
Posted By taekwondo
So easy and I tried the stupid curly brackets and...
So easy and I tried the stupid curly brackets and every combination but the one you showed. Thanks so much.
5,427
Posted By taekwondo
No, but thanks. I am fairly new at scripting. ...
No, but thanks. I am fairly new at scripting. Like maybe 2 days. :p



---------- Post updated at 02:21 PM ---------- Previous update was at 02:06 PM ----------

Another dumb question. The...
5,427
Posted By taekwondo
Thanks. I did figure that out earlier and work...
Thanks. I did figure that out earlier and work through the issue. You are completely correct, my logic was asking for the number of issues and the number of issues was 0. Thanks for your help.
5,427
Posted By taekwondo
help using read in menu script to cat out lines in logs
What is wrong with my menu script? Do I need to continue with the read statements? All I want to do with option 4 is to cat some /var/log/files and awk out a few lines? How do I do that please?
...
2,364
Posted By taekwondo
OK, I now have a menu script I got here from...
OK, I now have a menu script I got here from someone else. I want to change the menu a bit though.

It looks like this:


$ cat...
3,447
Posted By taekwondo
Thanks, I already did and already have an answer,...
Thanks, I already did and already have an answer, please close the thread. Thanks.
3,447
Posted By taekwondo
Can someone show me how to create a menu?
Can someone show me how to create a menu? I want a script someone who is not unix literate can use, with some simple commands like ls -al a directory or find files based on a date, does anyone know...
2,364
Posted By taekwondo
Can anyone please help? Thanks.
Can anyone please help? Thanks.
2,364
Posted By taekwondo
I'm sorry, I don't think we have a syslog server....
I'm sorry, I don't think we have a syslog server. This is a small operation. I just need a menu to parse through the logs, maybe pick up the date and hostname and put them in variables to use with...
2,364
Posted By taekwondo
Help parsing logs maybe with menu and variables?
I would like to parse through some logs looking for things like exception or failed (grep -i failed). Ideal would be if it were in a menu format so someone without unix ability could just choose...
3,022
Posted By taekwondo
If I understand you correctly, then I would...
If I understand you correctly, then I would simply put this:

./logcheck3.bash /var/spool/mail

in the logcheck3.bash script?

Thanks.

---------- Post updated at 09:17 AM ---------- Previous...
2,055
Posted By taekwondo
Thank you very much.
Thank you very much.
3,022
Posted By taekwondo
I'm getting there and I really appreciate...
I'm getting there and I really appreciate everyone's help. Thank you all.

I tried Av's and Dan's code and they both worked. The last thing I tried was dan's awk statement, which produced this...
Showing results 1 to 25 of 29

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