Questions tagged [process]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Unknown rsync and rm processes slowing down system

Unfortunately I immediately restarted my system when I looked at what the top command says about why my system is constantly freezing for a second and the hard drive sounded very busy without any ...
0
votes
0answers
14 views

Difference between ps -eH and ps -e --forest regarding indentation for parent/child processes?

Just looking for some confirmation. When running ps -eH, systemd shows indented child processes underneath it. Yet when running ps -e --forest, there is no indentation and no branches even for ...
0
votes
2answers
53 views

How to find which program is executing given program?

Is there way how to find out which program is executing my script? I'm runnig I3 as my window manager and I want to use sxkhd to bynd keys instead of i3config but something keep replacing my sxkhd ...
0
votes
0answers
5 views

Changing the CPU affinity for all process from a user

I understand I can use taskset to change the CPU affinity of one process, but what if I want to change the CPU affinity of all processes run by a user at once?
0
votes
0answers
26 views

Getting more info about Linux process

I've realized that I have dozens of processes running on my machine which I didn't expect to have. I've been using podman for Docker so a lot of these tasks are for podman; however, I'm having trouble ...
0
votes
0answers
15 views

OOM - How to get full details of killed processes?

Assume there are 40-50 large memory-hogging processes running on one server. Is there a way to setup the environment, or create a script, which will capture the full command line (as shown in ps -ef)...
1
vote
0answers
20 views

unable to kill process in AIX 6.1

Below is the script I have that generates 180320.tar file cat FinApp_Bckup.sh export TMOUT=60000 tar -X ./exclude.txt -cf /backup/180320.tar ./1043 gzip /backup/180320.tar While this script was ...
0
votes
0answers
24 views

why script bash is killed during ambari-agent stop

I am using the following simple script in order to stop and start the ambari agent on linux machine rhel 7.6 more /tmp/script #!/bin/bash ambari-agent start sleep 10 ambari-agent stop echo "start ...
-1
votes
2answers
39 views

kill PID in the bash script

I am using in my bash script the following syntax to kill the PID of the script - AmbariAgent.py kill $( ps -ef | grep AmbariAgent.py | grep -v grep | awk '{print $2 }' ) from ps -ef ps -ef | ...
1
vote
1answer
38 views

Is it possible to modify source binary in linux if any process spawned from that binary is still running?

Is it possible to modify source binary in Linux if any process spawned from that binary is still running? Will OS allow to perform write operation on that binary?
-1
votes
1answer
18 views

In subshell how do you get its process id? [duplicate]

I know I can get process id of the main shell by $$, but how do you get PID of subshell created by e.g. ( ... ) from within the block?
2
votes
1answer
58 views

How to get PIDs of shells in pipeline? [duplicate]

For example, I run sleep 1 | sleep 2 | sleep 3 & How do I get process ids of each part? I could examine output of jobs -l but its format may wary among shells and I am looking for a simpler way.
0
votes
1answer
25 views

Linux shell script duplicated on process list

I have developed a Bash script that accepts parameters: $ head -n 3 MyScript.sh #!/usr/bin/env bash # This is my script #... do something I call it via CRON at different scheduling and with ...
-1
votes
0answers
39 views

What process accessed an /etc/ configuration file?

I modified one of my /etc/ files and I want to reload it, however I have no idea might have read this file and cached its contents. Is there a way to know what processes have access to this file? Or ...
0
votes
3answers
42 views

How does inetd transfer control to respective services?

How does inetd transfer control to the service, Below is my understanding inetd listens on every port mentioned in /etc/inetd.conf If a client make a request to one of the port that inetd listens ...
0
votes
3answers
40 views

How can I start a long running background process, via ssh, and immediately disconnect?

I want to write a bash script which can ssh into a server, start a continuous background process (infinite python script) and exit the server. Here is what I have tried: ssh user@domain "python3 ...
0
votes
0answers
21 views

How to capture what happens to the child processes when a (parent) SSH session is killed?

I've been trying to understand what causes child processes to die when the parent dies. In the below test, once I killed sshd, the child processes got killed, and did not get re-parented to systemd ...
5
votes
4answers
130 views

How to continuously monitor PIDs connecting to local sockets?

Some local processes are connecting and disconnecting to 127.0.0.1 on port 1234. I would like to log all connection to this port (or to server process). I've tried ss -tpn | grep 1234 It shows ...
0
votes
0answers
13 views

Not able to kill a process started in a script which is running on a device which is based on Ubuntu

I am trying to kill or interrupt a script that is running on an arm device that is based on Ubuntu. The script starts a program that has an infinite while loop after polling for an external trigger ...
0
votes
3answers
52 views

How to run exactly 1 instance of a program. Or how to test for particular running program

How to run exactly 1 instance of a program as a process? Or alternatively, how to test for the existance of a running program? Portable methods are preferred.
0
votes
1answer
50 views

what does htop stand for in Linux?

Can someone please explain to me what htop mean? or refer me to a resource that explains it NOT tell me how to use it?
-1
votes
2answers
107 views

The Kernel space in the address space is reserved for us by what?

During process execution, when the memory map of a process is like so: This might be a silly question, but what is responsible for reserving the Kernel space in the address space? Are user processes ...
0
votes
1answer
32 views

Interruptible and uninterruptible sleep

can you tell me some simple example of “uninterruptible sleep” state? I'm learning unix and example with NFS is not much obvious for me.
0
votes
0answers
35 views

Python: Kill Subprocess Only If Process Goes Interactive

I need to test a process in a loop with different input. In my circumstance, if it does not go interactive it has succeeded. If it does go interactive, I must conitinue on testing and kill the process ...
2
votes
1answer
32 views

PID and incremental aproach

Suppose I have 10 process such as : process p0 with PID 1. process p1 with PID 2. process p2 with PID 3. process p3 with PID 4. process p4 with PID 5. process p5 with PID 6. process p6 with PID 7. ...
0
votes
0answers
33 views

Questions about WCHAN values

I have a CentOS 8 (3.10) running on VirtualBox 6.0... And I have 2 questions about WCHAN The 'ps' man page describes WCHAN as: Blockquote nwchan WCHAN address of the kernel function where ...
0
votes
1answer
24 views

How to determine the User account that causes the many mysql and apache processes?

I have a server with no more that 40 websites on it. Many are Wordpress which is a high resource CMS. I used to get alerts of the sites going down a lot. Look like MySQL crashing. It was a 8Gb ...
0
votes
0answers
27 views

Is there a way to find out which process is writing to a specific disk

Right now I can use dstat to find out the I/O status of individual disks, and iotop to find out the I/O status of individual processes, but I can't find a tool that can combine these two functions. I ...
0
votes
0answers
22 views

jobs command — why different output?

When I run the "jobs" command to track processes I see different output in different bash log-in sessions. I am logging in as the same user but creating new log-in sessions. In the new session, I run ...
2
votes
1answer
31 views

Question about a process lifecycle

I've managed to question myself about the wait(2) and _exit(2) system calls in a process lifecycle. My question about the wait(2) system call is... does the parent process issue it to the kernel? Or ...
4
votes
2answers
223 views

How is process priority calculated?

Can someone explain how "real" process priority (i.e. pri_baz field of ps) is calculated? My guess is: pri_baz = 99 - static_priority # if static_priority > 0 (real-time process) pri_baz = 100 + ...
4
votes
1answer
140 views

Why is $! returning the wrong process ID for a subshell running in background?

$(sleep 5) & echo $! sleep 1 echo "done" The above outputs: $ ./test.sh 7483 done However if I search for sleep in ps aux I see: ps aux | rg sleep chris 7484 0.0 0.0 132788 1432 pts/6 ...
0
votes
0answers
14 views

Load balancing tactic on Fedora

(1) Currently I am running Fedora Release 29. About 5 years back, I used to run CentOS 5. The machine has 32 cores. (2) When I used to run some data crunching scripts on CentOS 5, each script used to ...
2
votes
1answer
43 views

process list with quoted arguments, portably

How can an original command issued at the command line be acquired without using proc or any other non standard tool? When printing a process list using ps, the arguments passed in to initiate the ...
0
votes
0answers
128 views

Resource temporarily unavailable

Question Why I'm got this error ?Resource temporarily unavailable How to launch over 10,000 threads with no error? I want to run my code with over 10,000 threads. Steps to reproduce this issue ...
0
votes
0answers
17 views

Resources filled up with a lot of dbus-daemon

On an ARM board, that run a custom Yocto environment, sometimes I notice the os not responds anymore. I had hard-time to type ps aux and I discovered there were hundreds of such a process: /usr/bin/...
0
votes
0answers
41 views

`thumbnail.so` preventing from ejecting USB

What is what thumbnail.so process, what does it belong to and why is it locking usb stick from ejecting? (the system is debian Buster with KDE)
2
votes
1answer
60 views

Recover deleted folder that's still loaded by an active process

I'm really sorry if this question was asked before. I really need help with this as it involves very important data and I've been unable to do it for the past 2 hours. Essentially I accidentally ...
0
votes
0answers
27 views

CentOS named PID Issue

When I type the command 'systemctl start named', it fails. The 'journalctl -xe' returns the error below. How can I fix it? named.service: New main PID 600 does not belong to service, and PID file is ...
0
votes
1answer
45 views

Why SIGCHLD signal was not ignored when using wait() functions?

When using wait functions the SIGCHLD signal was consumed by wait when executing sample 1.1 as shown below. sample 1.1 if (pid==0){ printf("child\n"); printf("%d\n",pid); } else{ printf("...
0
votes
0answers
31 views

killall gives me `no process found ` on a mac

I am a bit confused as the same command works on linux which does not work on my mac in a Ubuntu Linux docker container. root@9xxx:/app# ps aux USER PID %CPU %MEM VSZ RSS TTY STAT ...
1
vote
0answers
16 views

How to identify the caller of a (transient) executable? [duplicate]

Is there a generic way to do this? What if the executable is only alive for a fraction of a second and I can't even fire ps to catch it? And the executable is not a script which I can add debug ...
0
votes
1answer
58 views

Interacting programs stdin and stdout (create a robot program to play a game)

The setup: I have an executable file, that I "cannot edit", since I don't have the source code. When I execute the program it reveals a game, where it hands me some numbers via stdout, for me to ...
-1
votes
1answer
39 views

Why systemd stopping immediatly after spawning?

I am facing issue while loading vpp.service in systemd. I have written following service. [Unit] Description=Vector Packet Processing Process After=syslog.target network.target auditd.service [...
0
votes
1answer
38 views

How to kill a subprocess shortly after called from parent programmatically?

How can I terminate a process that is launched from within an application programmatically? To clarify, there is an application that launches a WebKit subprocess from time to time, and I want to kill ...
0
votes
1answer
254 views

init: must be run as PID 1

Recently encountered a problem: when entering init 1, it gives an error: init: must be run as PID 1. I Entering ps and it turns out that /sbin/init has PID 1. How now can I use init?
-1
votes
1answer
112 views

What does file descriptor have to do with process table?

I have an interest in Operating Systems. So I am reading the xv6 book to understand Operating Systems. This is my first book on the subject. I read a line I couldn't understand. Internally, the xv6 ...
1
vote
1answer
68 views

What is the function of the keyboard shortcut Ctrl+Y under Linux?

Below is excerpted from a well-known professor's site: Some signals cause a process to stop: SIGSTOP (stop!), SIGTSTP (stop from tty: probably ^Z was typed), SIGTTIN (tty input asked by ...
1
vote
0answers
69 views

linux suspicious process spawn by init

i found a suspicious process,it spawn by process 1 (init),as per the guide i doble check the /etc/rc.d/rc3.d ,but i can't found a entry named Sxxkauditd,no suspiciou entyr found in the inittab file ,...
0
votes
1answer
47 views

why executing ls > empty.txt shows me empty.txt inside empty.txt in an empty folder?

why in an empty folder executing ls > empty.txt shows me empty.txt inside empty.txt ? it is not poetry, it is true and I do not know why. For me, they way to think ls > empty.txt is the ...

1
2 3 4 5
44