Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [process]

A process is an instance of a computer program that is being executed.

0
votes
1answer
26 views

How to check which process is writting on FileSystem Solaris

I need to identify what process is writing non-stop on the Disk. I tried to run prstat -t to get the list of the processes running, but I can't identify/find which process it is. running df -k , I ...
1
vote
2answers
34 views

How to track which process is generating network traffic?

After fresh system install (opensuse Tumbleweed) I have observed strange activity on network monitor - some app is generating small network traffic (sending and receiving data)... how to track which ...
1
vote
0answers
22 views

Bring Java process to the foreground by its PID [on hold]

I am using Ubuntu 16, and I am trying to have multiple Java processes which I can track each process by its PID. They each have an X11 window. Is there any way to bring the Java task's window to the ...
0
votes
1answer
38 views

Process appear by “netstat” but doesn't appear by “ps -a”

I have a machine in my organization that I sshed and received a terminal. When I run netstat -ntlp I received: [root@webtl1 ~]# netstat -ntlp Active Internet connections (only servers) Proto ...
1
vote
1answer
23 views

Are processes bound to cores?

Let's say I have a CPU with lots of cores. Is a given process, once started, bound to one of the cores? Does that mean that a process can become sluggish even if there are several unused cores? For ...
0
votes
1answer
87 views

is it possible to avoid open files? [closed]

when we run lsof to capture deleted files , we see the following: ( example ) lsof +L1 java 193699 yarn 1760r REG 8,16 719 0 93696130 /grid/sdb/hadoop/hdfs/data/current/PLP-...
-1
votes
2answers
56 views

Child processes seem to run code from before they were created. How do I stop it?

I'm trying to write a program that has a single parent process create multiple children in a while loop. For testing I started trying to make only 4 processes (1 parent and its 3 children). But it ...
3
votes
1answer
339 views

Kill second instance of a process

I'm running two instances of omxiv (Omx Image Viewer). The first instance acts like a background image, and the second instance acts as a slideshow. My question is how can I specifically kill the ...
0
votes
2answers
29 views

Will restarting `lxpanel` affect processes invoked from `lxpanel` to run other programs?

In LXDE, is it correct that lxpanel is where we can invoke other programs? How can I restart lxpanel using command line? Will restarting lxpanel affect (e.g. kill, or send some signal to) processes ...
0
votes
0answers
22 views

Background process gets killed in ubuntu 16.04 server

I have a spring boot application and i'm running it as ROOT through this command: mvn spring-boot:run -Drun.jvmArguments="-Xms512m -Xmx1024m" > lms_logs.log 2>&1 & After a few hours ...
0
votes
1answer
58 views

how to acheive: minimum kernel processes and minimum userland processes?

Basically, I want to have an embedded-linux to run a single application, but with minimum kernel process and minimum userland process: I don't really care the size of kernel or root file system. (...
0
votes
1answer
44 views

Why can we kill another user's process while shutting the system down

If I try to kill root's process or another user's process it says you can't do this. But I can do that while shutting the system down. Isn't this a security problem?
0
votes
1answer
19 views

How to log every instruction and change in memory in any process

I read here this: Falco depends on a kernel module that taps into the stream of system calls on a machine and passes those system calls to user space. (Emphasis mine). That hints at the ...
2
votes
1answer
53 views

why sometime need to stop process by kill -9

we have kafka machines in hadoop cluster the script that stop the kafka process do the following kill PID but we notice that the script that stop the kafka not really kill the process therefore we ...
0
votes
0answers
12 views

How to measure the memory used by a process at SIGABRT?

I run a long compilation that uses lots of memory. At a point it fails with SIGABRT. I would like to know how much memory is used then, before shutting down the process. I use CentOS. Is it possible ...
4
votes
1answer
238 views

Is it possible to check if a specific process is sleeping or running?

I've created the following script on Ubuntu that can pause and start a specific process: #!/bin/bash loopProcess () { COUNTER=0 while [ true ]; do echo $COUNTER sleep 1 let ...
0
votes
2answers
35 views

Are tgid and pid ever different for a process or lightweight process?

tgid and pid are the same concept for any process or for any lightweight process. In /proc/${pid}/status, tgid and pid are distinct fields. Are tgid and pid ever different for a process or ...
0
votes
2answers
35 views

Find out which process has data open on the hard drive that is no longer visible in the directory tree [duplicate]

On my server, the root partition is 73GB, but the disk says, it is full, although there are only about 6GB used on that device: # df -h Filesystem Size Used Avail Use% Mounted on ...
1
vote
2answers
107 views

Does Linux not distinguish between processes and threads?

As far as I know in Linux kernel, the structure task_struct represents threads i.e. light weight processes, but not processes. processes are not represented by any structure, but by groups of ...
0
votes
2answers
45 views

Why should parent process wait (to terminate) until all of its child process terminates?

I know there is no enforcement for the parent process to wait until all its child process terminates. However it's a convention followed. Furthermore, I know that if parent process terminates before ...
0
votes
1answer
49 views

Why do some programs' processes exist after forking a child, without the child starting a new process session?

Here are some of the steps for creating a daemon process from a given process, the given process exists soon after forking a child, the child calls start a new session and also a new group, by ...
1
vote
2answers
62 views

Is closing the window of a X client application process necessarily followed by terminating the process?

When the window of a X client application is closed, is that necessarily followed by terminating the application process (only attempt to terminate, regardless of success of failure)? When that is ...
0
votes
0answers
38 views

Is it possible to distinguish signal from kernel at reboot and at kill from terminal

As I know, we can send a signal SIGTERM to a process by pressing ctrl+c or by using pkill -f processName. Also, when we reboot or shutdown, the kernel will send SIGTERM to each process too. So I'm ...
-4
votes
0answers
35 views

In what state(s) can a process be, when running in kernel space i.e. executing a system call?

In Linux, when a process is running in kernel space, i.e. is executing some system call, in what state(s) can the process be? Can a process be in TASK_RUNNING state? When a process is in ...
2
votes
2answers
94 views

Run commands in parallel, but kill both if parent is killed?

Is there any way to run two commands in parallel in Bash such that, if the shell is killed forcefully, then both of the commands are guaranteed to be also killed? A simple & won't work because if ...
0
votes
1answer
17 views

S vs S+ STAT in processes log?

I know 's' means sleeping state in general. But what does s+ mean? I also see the + in other states as well, such as R+.
4
votes
2answers
164 views

What processes can survive logging out of Linux, and what not?

I am trying to understand what happens when we log out of Linux (Ubuntu specifically): How does a process initially request/notify the logging out process to perform logging out (by sending some ...
0
votes
0answers
40 views

Send string to another process stdin [duplicate]

Example process waiting an input sent to background $ read -p "Input text and hit ENTER to exit" & I try to write to stdin (fd/0) with \n $ echo -e "ok\n" > /proc/$!/fd/0 but $ fg read -p ...
0
votes
1answer
121 views

How can I run a process as its owner or become its owner without logging in? [closed]

According to https://unix.stackexchange.com/a/489913/674 cron jobs can run as any user, without that user being logged in. root doesn’t need to log in to start the init process, thankfully (...
0
votes
1answer
68 views

Does a user have to log in to run a process and become its owner?

In general, does a user have to log in to run a process and become its owner (ruid, or euid)? Does this apply to any user or any non-root user? For example: In the boot sequence of Linux, the kernel ...
0
votes
2answers
29 views

Condition sometimes failing to test if a specific process is running or not

I can't understand why my script, sometimes, won't recognize if my Firefox is running. Analyzing the stdout I could state that this condition (if ps cax | grep firefox > /dev/null) sometimes is ...
0
votes
2answers
54 views

Question about global environment variables and fork() & exec() [duplicate]

What I'm trying to understand is where does a child process inherit exported variables from it's parent process What I'm trying to understand is where a child process inherits exported environment ...
1
vote
1answer
98 views

ps is not showing all processes

I used the script command immediately after I started the terminal, it started recording my current session but when i used ps command after that it is showing only two processes, one for bash and one ...
1
vote
1answer
20 views

Tool to run a command until exit status is 0

Is there a tool that can accept a command and run it over and over until exit status is 0? I could probably check for value of $? in a loop but I wonder if there's a standard program for this
0
votes
0answers
13 views

ionice vs nice for mysqlimport

I am trying to import a huge .sql file into a mysql server. What (if any) is a best option to speed up the process (all other parameters being equal) reducing the process niceness to -20? setting ...
0
votes
0answers
67 views

Cannot pass argument through /proc/<pid>/fd/0

I have written a basic C++ program as such: #include <sstream> #include <unistd.h> #include <cstdio> #include <iostream> int main(void) { int foo; std::cin >> foo; ...
-1
votes
1answer
31 views

Only USERID, PID, TIME, and COMMAND for specific user Shell Script

I have to get Only USERID, PID, TIME, and COMMAND for a specific user. I have tried ps -u user1 But that display PID TTY TIME CMD, but I dont want the Field TTY.
0
votes
1answer
23 views

Process is stuck with more virtual memory than physical memory available

I have a process that seems to be stuck in an interesting way. top shows this: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 38984 gergely 20 0 332m 276 184 S 0.7 ...
0
votes
2answers
31 views

Filtering processes with top in FreeBSD

➥ When using top utility to view processes and their activity, how does one filter the list to a subset by name? For example when I want to see only the processes with a name containing postgres or ...
1
vote
1answer
35 views

how does a non existing sid/pgid process possible?

I've listed processes on Ubuntu 17.04, Noticed the following process: root@user-virtual-machine:~# ps xao pid=,ppid=,pgid=,sid= 1603 1 1601 1601 however process 1601 does not exist. root@...
0
votes
2answers
49 views

STDOUT + STDERR output … is there any difference between considering the output to be an empty string vs NULL

I'm writing some application code that is used to execute Linux shell commands, and it then logs the command details into an SQL database. This includes the output of STDOUT + STDERR (separately). ...
-2
votes
1answer
27 views

Find process source which executing python scripts [closed]

From last month some process is executing python scripts on my server with centos 6 with LAMP stack which are nothing but spam bots and eating server resources. Please check image below, How do I ...
0
votes
1answer
33 views

What is the meaning of ownership of a process on a window?

In manpage of xdotool getwindowpid [window] Output the PID owning a given window. This requires effort from the application owning a window and may not work for all windows. This uses ...
1
vote
1answer
35 views

Process started by script does not receive SIGINT

I am on Ubuntu 16.04.5 LTS (AWS) I am creating a python process via this command: nohup python -u main.py > nohup.out 2>&1 & I would like to send a ctrl-c/SIGINT to the process, so I ...
0
votes
1answer
36 views

What level is the value `ulimit -n`mean? user level or process level? [duplicate]

I want to increase the ulimit -n value,so I add * soft nofile 20000 * hard nofile 20000 in the /etc/security/limits.conf file, but there is a question confuse me all the time. what ...
-1
votes
0answers
25 views

How is it possible to trace all command executions in linux? [duplicate]

I want to log all commands (with args) that are executed in linux with their parent process name. For a single command one can wrap the command with a script that logs the the call to the command and ...
1
vote
1answer
75 views

Can we find out server/daemon and client processes from each other on the same machine?

On Ubuntu, I often run some server/daemon and some clients both locally. The server/daemon and clients can be arbitrary programs (emacs daemon and clients, Screen daemon and clients, server and ...
0
votes
2answers
60 views

Check which process is using most memory and summary total used memory

by the following command we can check which process is using most memory as we can see the first field show in MB the used for each process is it possible by awk to sum all the numbers and to get ...
0
votes
0answers
29 views

How to list all NEW running processes? [duplicate]

How to do something like akin to "tail -f" on ps ? In other words I would like to see the list of newly created processes, as they get created. I don't think top/htop can to that. Bonus if it shows ...
0
votes
0answers
45 views

process name from ps command show ? instead of _ (question mark instead of underscore)

I have a specific linux CentOS 6 machine, The processes I execute are: test_statd, test_watch. When i execute the follwing: ps -eo comm | grep test_ I dont get response, so i execute this: ps ...