Search Results

Search: Posts Made By: redtred
801
Posted By redtred
Script for mysql slave
Varialbes

NOTIFY="No"

#Check if the slaves are running

SLAVE="$(mysql -uroot -e 'show slave status \G;' | egrep "Slave_IO_Running|Slave_SQL_Running" | awk -F "[:]" '{ print $2 }' | cut -d,...
821
Posted By redtred
Need help on output
Guys please help me with my script.

HEre is my script.

#!/bin/bash
# Set up limit below
NOTIFY="5.0"

# CPU Usage every minute
TOP="$(top -b -n2 -d 00.20 |grep Cpu|tail -1 | awk -F ":"...
3,065
Posted By redtred
Thank you very much itkamaraj!!!
Thank you very much itkamaraj!!!
3,065
Posted By redtred
I see. But can you help me itkamaraj? thanks
I see. But can you help me itkamaraj?

thanks
3,065
Posted By redtred
I'm getting the output of 4.4% us. I need to...
I'm getting the output of 4.4% us.

I need to remove the % us to make it just 4.4 for the output.

What will i add from this syntax to delete the % and us
top -b -n2 -d 00.20 |grep Cpu|tail -1 |...
3,065
Posted By redtred
SED help delete characters in a string
Hi Please help me to refine my syntax. I want to delete the excess characters from the out put below.
-bash-3.00$ top -b -n2 -d 00.20 |grep Cpu|tail -1 | awk -F ":" '{ print $2 }' | cut -d, -f1
...
6,919
Posted By redtred
Parsing the output from top
Guys can you help me fix this parse error.

Here's my script.
#!/bin/bash
# Set up limit below

NOTIFY="6.0% us 6.1% us 6.2% us 6.3% us 6.5% us 6.6% us 6.7% us 6.8% us 6.9% us 7.0% us"

# CPU...
Showing results 1 to 7 of 7

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