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]

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

0
votes
0answers
14 views

Updating task descriptor of a process

I have to add a new variable to process control block of a process, which is the structure task_struct. However, some resources say that it must be added at the end of the struct, but they do not say ...
0
votes
1answer
31 views

Niceness and Priority of Processes

According to the some resources I have read, the process with low nice value has more priority. Because it has more priority, CPU allocates more time for that process. However, it sounds a little bit ...
0
votes
1answer
31 views

Send multiple kill signals to a process

Say I run a .sh process. And now I open a new terminal tab and I want to send signals to it, for that, I just use kill: kill -*signal number* *pid* right? But I want to send 13 signals at the same ...
0
votes
0answers
13 views

How to Create a Node.js Service for System Boot

I am trying to run a Node.js application each time my computer boots. To start the application I need to run sudo pm2 start /path/to/app.js. I have created a pm2.service file in /etc/systemd/system/ ...
0
votes
1answer
22 views

How to Run Process Manager as Super User

I am trying to run an API on an Orange Pi. It is running Ubuntu and the API process is running via Node.js Express. I would like the process to automatically start running when the computer boots up, ...
0
votes
3answers
37 views

Does opening a new terminal tab use equivalent system resources to opening a new window when running scripts in parallel?

Is opening a new tab in the terminal window equivalent to opening a new tab in terms of resources? I need to run 16 scripts in parallel. I do not know whether opening tabs or new terminals is the ...
1
vote
1answer
27 views

Why does x-terminal-emulator sometimes exit on launch and sometimes not?

From my Java program, I launch an x-terminal. The Java waits for the x-terminal command to start. (It's a Datastore emulator for developers.) Process proc = Runtime.getRuntime().exec("/usr/bin/x-...
0
votes
0answers
9 views

Every second false Reverse DNS lookup query

I am having a incident within my server. My server is making a reverse dns query every second to external Host. And I am not sure how to pinned down the problem and check it why it is happening I ...
0
votes
1answer
97 views

How can I identify or find the origin of this mysterious process?

I have a strange process on Ubuntu 14.04 that fires up fairly frequently. It appears as a bash shell in top, I haven't actually located it in ps xfa. When it runs, top says it's using 215% CPU and ...
1
vote
0answers
45 views

AWS Ubuntu became unreachable after SSH login [closed]

I've reached strange situation with Ubuntu 18.04 LTS with latest kernel on AWS m5.xlarge instance. The system became unreachable after a series of successful ssh logins. systemd -user became zombie ...
2
votes
1answer
23 views

How to know jar process

I launched on server, by crontab few jar (java) files (part1.jar, part2.jar...). I can get are data of process: lsof -i tcp:8080 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java ...
3
votes
2answers
65 views

Can I toggle a script with a shortcut key?

I have a bash script on my desktop called script.sh. Currently, if I want to execute it, I open a terminal and type ./script.sh, and if I want to stop it, I have to press Ctrl + C What I'd like to ...
8
votes
1answer
67 views

How to get a process exit status from another shell session?

Suppose I run a command in one shell session, for example bash -c 'apt-get update && apt-get upgrade'. 5 minutes later I decide to go outside for a snack, and realize I forgot to add some form ...
0
votes
1answer
23 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
15 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
57 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
716 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
111 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
31 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
67 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
160 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
276 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
63 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
126 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
38 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
543 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
32 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
200 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
3k 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
14 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
368 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
37 views

How to respawn automatically a process(wso2am)?

I have an upstart script as # Ubuntu upstart file at /etc/init/wso2am.conf #!upstart description "wso2am" pre-start script mkdir -p /var/log/wso2am/ end script respawn respawn limit 15 5 ...
1
vote
1answer
54 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
107 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
456 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
59 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
209 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
505 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
353 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
32 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
456 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
611 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
114 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
96 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
38 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
93 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 ...