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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [process]

Questions about identifying processes, about listing them, sending signals, killing them, assigning and using process priorities.

0
votes
1answer
16 views

How to handle signal in foreground process?

I have doubt, why does we cannot use kill -s 9 <pid> or kill -s 15 <pid> to kill foreground process? When I am trying to do the same, getting result that process id does not exist ...
0
votes
0answers
10 views

capture the command that launched the running process in my shell

I try to make the title of my windows in GNU screen automatically equal to the path of the working directory PLUS the process running if there is one (e.g: npm start or vim file.js) for that purpose ...
2
votes
0answers
15 views

Process hangs before termination with ubuntu 18.04

When using ABAQUS 6.14 (but also ABAQUS 2018) on ubuntu 18.04 everything seems to work fine except the termination of the standard process (the process started when performing an implicit analysis -- ...
-1
votes
1answer
608 views

Unable to modify ulimit

I am on Ubuntu 18.04 Trying to modify max number of processes (hard limit) via the following command, and getting the respective error: $ ulimit -H -u 500 bash: ulimit: max user processes: cannot ...
1
vote
1answer
24 views

Ubuntu 18 keeps processes running

I noticed my Ubuntu keeps process running after ending an application. For instance after closing my vscode it still appears to be in the process and still takes up memory and I end up having multiple ...
3
votes
0answers
24 views

Random http command by user _apt with 100% CPU usage

A random process with the command http owned by the user _apt starts automatically and uses 100% CPU. What is it? And why does it keep starting? I have attached a screenshot of the top command ...
0
votes
2answers
51 views

How to abort Fight Flash Fraud (F3)?

I am using the commands f3write and f3probe and want to abort them. There is no consideration of this in the manual and Ctrl-C is not working. I can kill the process in task manager but I was ...
0
votes
0answers
56 views

ubuntu error : Errors were encountered while processing: redis-server

I am getting error when I run sudo apt-get upgrade output error : Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 ...
4
votes
1answer
218 views

What is the gmain process?

I used lsof | grep home/$USER and I found that the gmain process likes to open my personal files. What does this process do and is there any available documentation that explains it in context of ...
0
votes
2answers
51 views

Prevent other processes for performance

Let's say I have an .c and .cpp file which runs some code to calculate the duration of some process; Basically I get microseconds between some method and I calculate how many seconds does this method ...
1
vote
0answers
60 views

Track all process activity in real or near real time on Linux

I want to track the activity of processes. For processes, forks, file access, etc. should be tracked. Also files, data transfers, authentication events, authorization events, and similar. It should ...
2
votes
1answer
92 views

How do I kill a Firefox process thrashing my computer? 18.04

In short: a Firefox process takes control of Ubuntu 18.04 LTS in my Acer TravelMate P, and it seems there's nothing I can do but to shutdown the computer. This is similar to https://superuser.com/...
0
votes
0answers
34 views

How to check fork() hierachy in other terminal?

A have a simple fork.c program and I would like to check the fork hierachy by using ps f -e command. I do as following: gcc fork.c ./a.out & open another terminal and type ps f -e In step 3, I ...
0
votes
0answers
33 views

Unable to stop VIM with Kill, Htop, or anything else

I'm running Ubuntu Bionic. I installed SLiM display manager so my GUI uses tty2 and I ran vim to edit some C++ code in tty1. Suddenly, it froze completely. I tried to type things but nothing would ...
10
votes
1answer
319 views

How to limit resource usage for a given process?

I have a process for an application which needs to run, but ends up using far too much IO usage for what it does. And really crashes my computer, making it impossible to do anything else whilst it is ...
0
votes
0answers
23 views

Very High CPU usage by update-apt-xapi [duplicate]

I am running kubuntu and this process update-apt-xapi is taking about 25-30% of my CPU. I don't know what it is or what it does. Is it safe to kill it? Also how can prevent it from taking so much CPU.
2
votes
1answer
118 views

Issues with running Apache Certbot due to port already used for httpd.bin

My goal is to get SSL running on my server to run over HTTPS. I'm trying to run the command sudo certbot --apache to generate a certificate for my server as part of these steps https://certbot.eff.org/...
19
votes
4answers
2k views

How to stop a bash while loop running in the background?

I started a while loop as follows: while true; do {command}; sleep 180; done & Notice the &. I thought when I killed the terminal, this while loop would stop. But it is still going. It has ...
0
votes
0answers
13 views

KSysGuard not displaying kdesu dialog?

Earlier, if I tried to kill root processes, KsysGuard displayed a kdesu dialog. But it now shows an error message like this. What should I do?
2
votes
1answer
136 views

How to find process name?

Does every service that is active running have a process that can be seen by ps command on linux? If yes, how can I find the related process name? For example if ntp is running, should I see it by ...
1
vote
1answer
48 views

killing the bash interpreter

Im trying to kill /bin/bash but when I do ps aux | grep "/bin/bash" and I kill the pid associated with it, it gaves me an error. Any help is greatly appreciated. Also can you tell me what's the ...
1
vote
1answer
69 views

Sending SIGSTOP or SIGCONT signals graphically (similar to xkill)

Question Do you know any tool/script to send SIGSTOP (to pause a process) or SIGCONT (to resume it) to a process by clicking on a graphical window generated by the process? Some context There is ...
7
votes
3answers
400 views

How can I list running bash scripts by the name of the script?

ps returns bash as the name of the process... I would like the name of the shell script instead. For instance, if my script is TestEric.sh, I would like to list the number of instances of that script ...
0
votes
0answers
58 views

How do I look for a specific process and skip if it's not running?

I wanted to stop a particular process and proceed further, also if the same process is not running just wanted to print a message saying this process is not running and proceed further. How do I do ...
1
vote
0answers
89 views

cupsd is consuming 100% cpu and creating large (832GB+) logs

I'm using ubuntu 16.04 LTS.When I was running ambari-server,cloudera image in docker container and apache hadoop the system was not responding anymore.One fine day I observed that my total hard disk ...
1
vote
0answers
162 views

How to terminate and communicate with an infinitely running process using subprocess.Popen [closed]

Basically I am trying to execute the following process: PIPE=subprocess.PIPE cmd2 = 'tail -0f ' + llf pp2 = subprocess.Popen(cmd2, stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=True) where llf is the ...
1
vote
1answer
22 views

Run second screen process after first screen process complete?

Is it possible to start a screen process, but let it wait for another running screen process to complete? Basically creating two screen processes like so: screen -S myfirstprocess screen -S ...
1
vote
1answer
17 views

How to perform process handling routines on a Ubuntu machine on a Windows system

On my Windows 10 machine, I've installed a Ubuntu system (as a Trusted Microsoft Store app). When I open that window and type help, these are the first lines I see: GNU bash, version 4.3.48(1)-...
0
votes
0answers
254 views

Do gnome-software and evolution-calendar-factory needed in startup?

I have updated to ubuntu 16.04 recently and in my system process I am seeing these processes gnome-software, evolution-calendar-factory and 2 evolution-calendar-factory-subprocess. These four process ...
3
votes
1answer
31 views

When you direct output to a file, is that file opened and closed exactly once?

When you redirect the output of a command to a file using >, and that process takes a while (like apt-get update) will the file being written to be opened and closed only once for the entire ...
0
votes
2answers
264 views

Why are instances of gnome-settings-daemon always running?

I have noticed recently that there are always instances of gnome-settings-daemon running as processes, why is this? And is it safe to disable them? The explanation from the GNOME Wiki is: [...] ...
5
votes
1answer
439 views

What is the difference between cat /etc/services and service --status-all?

I would like to know the difference between these commands to show linux services: cat /etc/services and service --status-all
1
vote
0answers
110 views

Ubuntu 16.04 with ZFS, more than 3000 process

I have followed the tutorial : https://github.com/zfsonlinux/zfs/wiki/Ubuntu-16.04-Root-on-ZFS to install ZFS with Ubuntu. Now I have the same issue on 3 different servers, lot of process (more than ...
0
votes
1answer
63 views

How child process still running when i exit terminal window?

When I execute dd if=/dev/zero of=/dev/null Then close terminal window i see that dd still running and it's PPID is difference than first time. What is happening for dd process ? whenever killing ...
0
votes
0answers
36 views

Show number of threads which are ready or running in a process

In the answer to this question it says that you can use ps huH p <PID_OF_U_PROCESS> | wc -l to show the number of threads in a process. I would like to get the number of threads in a process ...
2
votes
3answers
90 views

Monitor and time a process that is already running and saving the total running time into a file

I have a few different processes that have been running for quite a long time (200 h). I just realized that I have forgotten to use the time command to get the total running time at the end. These ...
1
vote
1answer
443 views

Check the max allowed threads count for sure

I'm running an Ubuntu 17.10 server on the VDS. I'm running a 3proxy on it. The problem is that VDS somehow does not allow running more than 5000 threads per process, as I think. I think so because the ...
0
votes
0answers
45 views

Communicating with background service

I have a process registered as a service running in the background which occasionally logs to stdout. It is some linux executable which, if run in the foreground, can receive user commands and respond ...
0
votes
0answers
135 views

How to stop formatting process of external HDD

I connected my external HDD and through the use of graphical user interface I clicked to format it and overwrite it with zeros. It takes ages and I want to stop the process. I don't care about the ...
0
votes
0answers
49 views

Does Ubuntu 17.10 kill processes after logging out?

Previously, I would log in as user A, mount user B's home folder with sshfs, and then log in as user B. This worked in 17.04. Now, when I log in as user B, it errors "transport endpoint not connected" ...
2
votes
0answers
422 views

Find a running process in a specific directory [duplicate]

I was trying to install winetricks, and I did sh winetricks corefonts vcrun6 to install necessary tools as suggested here. But the installation isn't completing and I'm stuck at this: ---------------...
0
votes
1answer
195 views

Why is so much RAM used by the OS?

I executed the free -m command and got the following output: total used free shared buffers cached Mem: 7842 2443 5398 205 167 ...
0
votes
0answers
112 views

How to bring a background process started by a script to foreground

I have a server setup that runs some java servers but since I am not home all the time those servers are activated via a .sh script. But now I don't know how to bring the java background processes to ...
0
votes
0answers
59 views

forking of Samba processes

Is it normal to have samba fork multiple child processes? I had a suspicion that since my samba logs were showing that I had too many opened files ../source4/smbd/process_single.c:57(...
2
votes
1answer
589 views

Zombie process: sd_cicero, Ubuntu 16.04

When I followed the instructions in this question to find zombie processes, I found this process Z Jan02 0:00 [sd_cicero] <defunct>. When I try to find its parent process, I get this: ...
0
votes
0answers
27 views

How to monitor the network acess of a specific app?

I'd like to know when a specific app is accessing the network, from the moment I launch this app to the moment I close it. I'm aware about netHogs, but it will only list the more network hungry ...
1
vote
1answer
2k views

How to see thread name in htop?

htop shows the name of process for all of its threads even a thread has a customized name. How should i force htop to displays customized name of threads?
1
vote
2answers
27 views

Is there a way to record how many time applications are running in the foreground?

And eventually also when they are started and closed and how many time they have been running in the background and in the foreground. I don't need that for every single app, but only for a few. I ...
0
votes
0answers
44 views

Node process appears multiple times, even though only one instance should be running

I am trying to understand why does the node process appear several times as running when I am only executing a single node command. I have an application which is started by running the npm start ...
2
votes
3answers
329 views

Take user name as input: if user is logged in, display running processes belonging to the user

I want to write a script that takes the name of a user as command line input. If that user is logged in then it will display the processes the user is running. If he/she is not logged in, then the ...