Search Results

Search: Posts Made By: sai2013
7,821
Posted By sai2013
Thanks hanson. That worked! Simple solution &...
Thanks hanson. That worked! Simple solution & does the job!
3,212
Posted By sai2013
Thanks for the code and narrative. I tried...
Thanks for the code and narrative.

I tried the code but nothing was returned. No error. No output.




---------- Post updated at 03:31 PM ---------- Previous update was at 03:28 PM...
3,212
Posted By sai2013
Thank you variable assignment worked. ...
Thank you variable assignment worked.

cfg.xml has XML as below....


<server>
........
........
<port>7001</port>
........
........
</server>



var=$(sed -n...
3,212
Posted By sai2013
Trim sed output & assign to variable
Hi, I have the following command that parses an xml file to read a node <port>'s value. Hoever the output comes with spaces.

My requirement is to trim the spaces around the value and assign to a...
7,821
Posted By sai2013
Appreciate all your inputs but I am a newbie and...
Appreciate all your inputs but I am a newbie and a lot of what is suggested is arcane to me. Trying hard to make sense of it and testing it out. Will keep you posted with my final outcome/solution.
7,821
Posted By sai2013
Pickett, I tried the below code. The logs just...
Pickett, I tried the below code. The logs just hung at a point, maybe before reaching the line, '$SERVER_STATUS'



seek=0
while :
do
sz=`ls -l nohup.out | sed '
s/^[^ ][^ ]* *[^ ][^ ]*...
7,821
Posted By sai2013
I do have a single script for both Server Startup...
I do have a single script for both Server Startup & Shutdown with parameters defining the operation & Search Keyword. In both cases, we are monitioring the same file.

There are two scripts -...
7,821
Posted By sai2013
I tried this one. Got "[: too many arguments " on...
I tried this one. Got "[: too many arguments " on the if condition. Any typos in the code below? Thanks.
7,821
Posted By sai2013
Thanks Pickett. To add more clarity to my query,...
Thanks Pickett. To add more clarity to my query, I only need to look for the word once.

The file 'nohup.out' starts of as an empty file everytime the startup script is executed. Once the word...
7,821
Posted By sai2013
Break out of tail -f
Hi,

I have a requirement to monitor a srver log file realtime for a word 'Started'. Once found, I invoke another program tp perform additional processing.

The code below meets my requirement....
Showing results 1 to 10 of 10

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