How to read environment variables of a process
Linux’s /proc/<pid>/environ does not update a process’s environment. As I understand it, the file contains the initial environment of the process.
Linux’s /proc/<pid>/environ does not update a process’s environment. As I understand it, the file contains the initial environment of the process.
In Unix whenever we want to create a new process, we fork the current process, creating a new child process which is exactly the same as the parent process; then we do an exec system call to replace all the data from the parent process with that for the new process.
I would like to see what’s happening in my app server folders, i.e. which files are changed by process x or which *.war files have been changed (replaced/created) in the last x minutes.
I have been studying the Linux kernel behaviour for quite some time now, and it’s always been clear to me that:
I’m writing an application. It has the ability to spawn various external processes. When the application closes, I want any processes it has spawned to be killed. Sounds easy enough, right? Look up my PID, and recursively walk the process tree, killing everything in sight, bottom-up style. Except that this doesn’t work. In one specific … Read more
When ever I need to kill a background process I do ps -e | grep <process_name>
I developed an algorithm for a fairly hard problem in mathematics which is likely to need several months to finish. As I have limited resources only, I started this on my Ubuntu 12.04 (x86) laptop. Now I want to install some updates and actually restart the laptop (the “please reboot” message is just annoying).
I want to see list of process created by specific user or group of user in Linux
Can I do it using ps command or is there any other command to achieve this?
Posting this question because I was surprised to not find it directly answered; apologies if this is a duplicate – I did look!
I’ve seen the questions and answers about needing to double-escape the arguments to remote ssh commands. My question is: Exactly where and when does the second parsing get done?