Skip to content

Improve mysql Speed?

I have mysql/php script running on my linux machine. Its basically migrating files content to MySql table. there are about 4400,000 Files, Account files each file`s content is places in a table in one row. It have been 14 hours and so far it have only done 300,000 Accounts. At first it was very fast and was d…

ssh -X oracle is not working properly

I run the following command to switch to oracle user on linux. This is suppose to set environmental variable DISPLAY. I ran xclock command but it throws the following error How should i set environmental variable DISPLAY correctly to run GUI application? Answer You may have logged in as Oracle with -l option,…

How to group by two fields using bash scripting?

Here is one example of one line of log: I know how to group by one filed, so this is the solution: and this would be results: My question is that how can I group by two fields instead of one, first should be $11 and second is $10? So results should change to: Answer how can I group by

POSIX timer hangs up after a few runs

I have created a POSIX timer in the main function of my program. Each thread of the main program is setting the timer so that on expiry of it, the signal handler update one variable which awakes the next thread of the same process. The timer is working fine most of the time but not always. It sometimes comple…