Search Results

Search: Posts Made By: ajothi
1,530
Posted By ajothi
Thanks much!! worked perfectly!!
Thanks much!! worked perfectly!!
1,530
Posted By ajothi
To display 10 lines before and after the error
Hi,

I have a huge log file and I wanted to check for the errors which happened on the particular time frame- Since its huge - vi is making difficult for me
So I used the below command to
grep...
3,271
Posted By ajothi
Thank you both, working perfectly
Thank you both, working perfectly
3,271
Posted By ajothi
Hi Please find below # ps -eaf | grep...
Hi Please find below

# ps -eaf | grep AlertPullWrapper
oracle 20031 1 0 Jan21 ? 00:00:00 bash AlertPullWrapper.sh
oracle 20032 20031 0 Jan21 ? 00:25:19 java -cp...
3,271
Posted By ajothi
Hi, Thanks for your reply I tried pgrep...
Hi,

Thanks for your reply
I tried pgrep "AlertPullWrapper" , but it did not give any results
3,271
Posted By ajothi
The script will monitor the process and should...
The script will monitor the process and should send an email if the process is stopped or killed

---------- Post updated at 05:18 PM ---------- Previous update was at 05:07 PM ----------

Hi I...
3,271
Posted By ajothi
Script to monitor the process
Hi,

I need help to monitoring a process using the shell script
The same output is below

oracle 32578 32577 0 Feb27 ? 00:06:47 java -cp...
2,003
Posted By ajothi
Sorry about that, perfectly worked!!! thanks so...
Sorry about that, perfectly worked!!! thanks so much again!!
858
Posted By ajothi
Shell script- need help
Hi below is my current scripting which will monitor for any errors in the application

logfile="/tmp/application.log"
output=$(grep "ERROR" $logfile)
if [ -n "$output" ]
then
echo "found-...
2,003
Posted By ajothi
Hi issue is not resolved yet! The error its...
Hi issue is not resolved yet!

The error its not catching is below

[dbupdate] ERROR - ReaderException while receiving directives :
com.workbrain.clocks.server.wbsynch.CommunicationException: ;...
2,003
Posted By ajothi
Hi, Thanks for your reply Linux platform ...
Hi,

Thanks for your reply
Linux platform
Is there any other way of getting there ?
2,003
Posted By ajothi
Hi the platform is linux!
Hi the platform is linux!
2,003
Posted By ajothi
Hi Thanks again, I tested the script however its...
Hi Thanks again, I tested the script however its not working as expected :(
There was an ERROR string apart from the "Error while reading from socket" and the script was not able to catch that error...
2,003
Posted By ajothi
Hi, Thanks for your quick reply Could you...
Hi,

Thanks for your quick reply
Could you please let me know as { exit 0 } END { exit 1} means?
are they error codes?
2,003
Posted By ajothi
To exclude a string from monitoring
Hi below is my current scripting which will monitor for any errors in the application

logfile="/tmp/application.log"
output=$(grep "ERROR" $logfile)
if [ -n "$output" ]
then
echo "found-...
1,648
Posted By ajothi
Thank you both!!
Thank you both!!
1,648
Posted By ajothi
thanks for the quick reply : [: too many...
thanks for the quick reply
: [: too many arguments
+ echo 'not found'
not found

The issue is if [ -n $output ] getting as "too many arguments"

When i try to run the script, It was able to...
1,648
Posted By ajothi
need help in Grep a string in the log file
logfile="/var/tmp.log"
output=$(grep "ERROR" $logfile)
if [ -n $output ]
then
echo "exceptions logged , please check /var/tmp.log for more details" |\
mail -s "exceptions logged , please...
755
Posted By ajothi
great thanks that worked :)
great thanks that worked :)
755
Posted By ajothi
Value from the output
Hi,

I am redirecting a output to a log file named server.log
I need to send an email if the value "Running" is not present in the server.log
What I am trying to do is
grep 'RUNNING'...
2,696
Posted By ajothi
Thanks Chuber, the first one worked !
Thanks Chuber, the first one worked !
2,696
Posted By ajothi
Integer expression expected
Hi,

I have placed the script and running successfully on AIX
However in Linux it throws integer expression expected
Could some one please help me to fix this

MaxThreshold4alert=`echo...
1,917
Posted By ajothi
great, will check and update you Thanks much...
great, will check and update you
Thanks much again for your quick response

---------- Post updated 12-11-12 at 09:09 AM ---------- Previous update was 12-10-12 at 03:45 PM ----------

cool,...
1,917
Posted By ajothi
Hi Corona The content of the filename.txt is...
Hi Corona

The content of the filename.txt is customizable

I am planning to use two columns, if there is any other better way , i am happy to use it


Name ServerRuntime
abc aaaaa...
1,917
Posted By ajothi
To take two variables from a file and act as an input for the script
Hi,

I have done the scripting such that it will read input line by line from a txt file and is passed through a script, but now my requirement is to pass two variables into a script from a file,...
Showing results 1 to 25 of 27

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