Skip to content

/dev/mem and /dev/kmem not exists?

I would appreciate if some one can explain me why the two files do not exist? How Android kernel’s virtual memory space and physical space be like without have the 2 files? Edit: I am having Android 2.3.7 (Cyanogen mod), the 2 files do not exist: Edit2: I have checked the Samsung Galaxy S3 running ICS, …

Detect death of parent process

How can I detect parent process death in Linux OS? If in parent process called fork(), that create child process. In the parent process I can use system call wait() for waiting terminated child process, and getting its status. But, I can’t find info about how child process can detect parent process&#821…

How to check if sed has changed a file

I am trying to find a clever way to figure out if the file passed to sed has been altered successfully or not. Basically, I want to know if the file has been changed or not without having to look at the file modification date. The reason why I need this is because I need to do some extra stuff

Nagios – Connection refused & Socket timeout

I need to monitor windows services(like CPU load, memory usage etc.), so I have installed Nagios monitoring tool. The installation is complete and ‘check_nt’ plugin is also installed. Upto this no error is there, but while executing scripts with agent NSClient++ ‘Connection refused by host&#…

Trying to launch an external editor from within a Go program

I am trying to figure out how to launch an external editor from within a Go program, wait for the user to close the editor, and then continue execution of the program. Based on this SO answer, I currently have this code: When I run the program, I get this: I have also tried using exec.Run() instead of exec.St…