Skip to content

Bash script to check a specific php process is running?

I am running websocket server with the nohup command like below. But it stop working after few hours.So i have created a bash script like below Then i run the script with below command like below. The work of the above script if to check my chat-server.php is running or not if it is not running then it will s…

Function Shell Script no return data

When i run the script (./meuscript.sh), I have no return, only if i select cancel the dialog. If I run the script without the function, the command is executed correctly Answer You have an endless loop. Rename the function to something else so that you don’t end up with ping calling ping calling ping ca…

Installing (and deploying) Mono ASP.Net to Redhat

I have an Asp.Net app (built in mono) that I am trying to deploy to a Linux Redhat 6 environment. I tried following the instructions on the mono website: http://www.mono-project.com/docs/web/aspnet/ http://www.mono-project.com/docs/getting-started/install/linux/ I was able to get nginx installed and setup; ho…

Nancy on Linux is using 100% CPU

My nancy web-apps are using up together 100% CPU without them actually being used. They are running inside a docker container on mono. The only thing I could think about to cause this, would be the endless loop in my main function, something like but I thought, Console.ReadLine() would be blocking and therefo…

How to get port information for usb ports using libudev?

For a small project i am using libudev to get notification for USB devices plug-in/plug-out. Is there any way of knowing which USB port was used to plug in the device via libudev. Actually there are multiple ports available and it is necessary to know which one was used. Any hints would be highly appreciated!…