Search Results

Search: Posts Made By: erick_tuk
Forum: UNIX and Linux Applications 04-01-2012
1,736
Posted By erick_tuk
Display mysql results nicely
Hi, perhaps this is a dumb question.

I'm running queries on mysql and I'm getting tabbed results like these:


mysql> SELECT * from metrics_status WHERE date = '2012-03-30';
<TABLE...
9,298
Posted By erick_tuk
Again. Thanks a lot! :)
Again. Thanks a lot! :)
9,298
Posted By erick_tuk
Appreciate your input agama, I don't have access...
Appreciate your input agama, I don't have access to this box right now, but as I recall that's the only box that shows such alert (using nagios), the rest of the boxes are all green, and all of them...
9,298
Posted By erick_tuk
High load average troubleshoot
Hi all, hope you can help me. I'm getting high load average and can't find a reason for this, please share your inputs.

load average: 7.78, 7.50, 7.31


Tasks: 330 total, 1 running, 329...
1,123
Posted By erick_tuk
help one liner...
Hi I have a log data that shows chunks of data like this:

thisis example test, this is example test, this is example test
thisis example test, this is example test, this is example test
thisis...
1,217
Posted By erick_tuk
Wow! that was really quick and helpfull, thanks a...
Wow! that was really quick and helpfull, thanks a lot!

---------- Post updated at 10:04 PM ---------- Previous update was at 09:59 PM ----------

genius! it works :)
1,217
Posted By erick_tuk
Parsing chunks of text and finding data
Hi, I need a script that parses and greps data out of a textfile.
I have a text file that has this structure:

File1
host1.localdomain

text random text

Found errors

this text is random...
3,426
Posted By erick_tuk
TESTPATH as the name implies is a string...
TESTPATH as the name implies is a string containing a path to a binary, it's not a unix command (I wrote it), serviceName,rdir,masterAcct,persona,passwd are variables (strings) like:
rdir =...
3,426
Posted By erick_tuk
Python subprocess module
I need to run this command using python subprocess module (notice I'm using only variables):


cmd = TESTPATH + ' -s ' + serviceName + ' -r ' + rdir + \
' -m ' + masterAcct + ' -p ' +...
1,864
Posted By erick_tuk
Python script help. Kill binary on timeout
This is part of my script, as you can see when the alarm is raised it shows some text, what I need it to do is to actually kill the binary "test" (TEST_PATH) when the timeout happens.


...
3,370
Posted By erick_tuk
kill process if timeout Python
I have a python script that calls a binary. I want to make sure that if the binary fails (with a 2 min timeout) it kills the process. Currently I'm unable to do that as I only kill the function but...
5,220
Posted By erick_tuk
Thanks a lot! really helpfull
Thanks a lot! really helpfull
5,220
Posted By erick_tuk
grep-awk one liner help
Hi guys, I'm trying to create a one line command that does the following.

I will post my command first so you can get the idea better:
ls -larht | awk '{print $4}' | uniq | xargs grep *...
2,151
Posted By erick_tuk
how to check if I'm allowed to ssh several hosts.
Hi guys!

I'm working on a little script. I have a txtfile with several hosts, Unix team has copied my keys into several of those servers, but not all of them, I need to figure out which ones I...
18,914
Posted By erick_tuk
You're right, however I do not see a reason to...
You're right, however I do not see a reason to keep the machines down, when you can just take down the services
18,914
Posted By erick_tuk
Actually, there is a way.
there's a feature on ethernet network cards that's called WOL (Wake-On Lan), this will turn your computer or server on, of course you have to configure it first. However they must be reachable from...
46,786
Posted By erick_tuk
thanks a lot guys!
thanks a lot guys!
5,376
Posted By erick_tuk
could you explain this to me further? while...
could you explain this to me further?

while read line
do
if [[ $line =~ ^SN(.*) ]] <-- line that starts with SN and whatever
then
[[ -n $out ]] && echo $out <--when was $out...
11,269
Posted By erick_tuk
remember the magic tool "grep" if you combine...
remember the magic tool "grep" if you combine this with mysql queries you can get all the info you want
2,724
Posted By erick_tuk
can you check usePAM in sshd_config?. Also if you...
can you check usePAM in sshd_config?. Also if you don't want it to prompt you a password change StricModes to "yes"
5,154
Posted By erick_tuk
hey cokedude I think you're asking about "xrandr"...
hey cokedude I think you're asking about "xrandr"

This is the command to setup dual monitors from terminal. I suggest you read the man page is really easy to use.

You need something like this:...
46,786
Posted By erick_tuk
Hi Neo, thanks for the quick reply, I'm home now,...
Hi Neo, thanks for the quick reply, I'm home now, and won't be back in my job until 15 hours, but I will let you know :)

---------- Post updated at 06:58 AM ---------- Previous update was at 06:56...
46,786
Posted By erick_tuk
echo 1 > /proc/sys/vm/drop_caches a good idea?
Hi folks.
I work with several production servers, and I have seen in some Kernel Cache using most of the memory.

See this pic:

http://i51.tinypic.com/301nb6c.jpg


Do you think this is a...
Showing results 1 to 23 of 23

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