Skip to content

Tag: linux

Get the MySQL path

I tried googling to get the MySql path, but it was unsuccessful. Is there a unix command, where I can find the MySQL database directory path? Answer Try this query, SHOW VARIABLES LIKE ‘datadir’;

Deleting Linked List Elements

I’m curious what I have done wrong, since my void *DeleteDoneNodes(node * n) doesn’t do anything, no error but no output neighter, so could anyone help me finding the root of my problem thank you. Scenario: cmd line ./s m n m number of nodes in list, n number of workingThreads should delete each n…

Bash script error. Syntax error near unexpected token

I’m trying to work through a script to email me a notification if the load is too high on our server. I found a good one but it’s giving me and error when I run it, and I can’t see why. Running the code below gives the error: line 13: syntax error near unexpected token `fi’ I thought I…

getting pid of spawned exec in phing

I am using phing and running selenium server via ExecTask. Sometimes I need to stop running server by killing its process. Is there a possibility in phing of getting PID of process spawned in ExecTask ? Answer No, ExecTask cannot give the pid of spawned processes directly. It can only return it’s exit s…