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.

1
vote
0answers
26 views

I have noticed that sometimes my HD is spinning and spinning running “find command” on Xubuntu 16.04.5

When I start my laptop the HD is spinning executing find command without reason, I tried to clean saved sessions, looking in startup programs if there is any command using find command, but I couldn't ...
0
votes
0answers
15 views

ERESTARTSYS Error

This error is called a restartable system call error. I got this notion but I cannot make sure whether I understood it correctly. When a user-space process wants to access a file and to make an ...
1
vote
0answers
8 views

Stopping a task and resuming it with more allocated cores

Is it possible to start a task eg- $ make xxx then pause it, and resume it with more cores allocated? $ <some-resume-command> <pid> -j which would be the equivalent of switching to ...
1
vote
0answers
38 views

Ubuntu Server requires service restart every few days

I'm new here and I hope you can help me out this time. I have a MySQL server which receives many requests from my other servers...daily up to 1000 requests (HTTP and remote MySQL). However, for some ...
0
votes
1answer
42 views

Firefox doesn‘t start, because there‘s already a firefox process running

I‘m trying to launch firefox and it tells me, there‘d already be a firefox process running. I tried listing the processes using ps -A, but there is no firefox process listed. I also tried killall -9 ...
0
votes
0answers
17 views

What are daemon processes used for? [duplicate]

I made some researches on the internet, but I could not find a detailed explanation which clarifies what daemon processes are used for and what their tasks are in the system. Is there anyone who can ...
0
votes
0answers
17 views

The system call exit()

I have to make some modifications in the system call exit(), but I cannot find its implementation. I think that it calls the kernel method do_exit() but I am not sure. Is there anyone who can say ...
0
votes
1answer
119 views

How can I kill a process in kernel?

I am interested in kernel development, and I am trying to find a way to terminate and kill a process. The only thing that I know is pid and task descriptor value of that process. In other words, how ...
0
votes
1answer
73 views

Terminal not started in ubuntu 18.04

Ubuntu 18.04 failed to start terminal. It shows an Error message - -failed to execute child process gnome-terminal. Please help me to start terminal in my system.
0
votes
0answers
15 views

Run a process after the machine is booting? [duplicate]

I have a Unix machine where I have a process located in /etc/init.d/ and I would like to run this process immediately after booting my machine... I know that there are at least one way to accomplish ...
0
votes
0answers
22 views

Updating task_struct in kernel

I have to add an integer variable into task_struct in kernel. However, I saw a short message about this in a website and I cannot find it right now. According to that message, I have to add that ...
0
votes
0answers
53 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
51 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
39 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
27 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
25 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
45 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
39 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
12 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
103 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
67 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
24 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
71 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
79 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
38 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
35 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 ...
3
votes
1answer
149 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
832 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
183 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
42 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
80 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
272 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
354 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
66 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
169 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
39 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
45 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
760 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
42 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
300 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/...
20
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
17 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
543 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
82 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
63 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
151 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
508 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
62 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
296 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 ...