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

learn more… | top users | synonyms (1)

0
votes
1answer
20 views

how to get list of all processes accessing a shared library [duplicate]

I know that ldd utility can list all libraries linked to a process but I want it the other way around. I want all processes linked to a library. I want to replace a shared library without crashing the ...
1
vote
0answers
19 views

process blocked in msgrcv

I have a process that is blocked in msgrcv as shown by ps -eo pid,tid,wchan. Is there any way to find the PID of the process that my process is expecting to receive a message from? The communication ...
2
votes
1answer
15 views

Minus and Plus Sign in jobs Process

These commands are running in the background: foo@contoso ~ $ sleep 30 & foo@contoso ~ $ sleep 60 & foo@contoso ~ $ sleep 90 & What is the minus and plus sign after running jobs process? ...
4
votes
3answers
83 views

How to not show the stdout output of a running process?

When a running process gives lots of stdout output throughout its lengthy running process, you don't want to kill it and rerun it. How can you not show the output? Thanks.
2
votes
1answer
33 views

What's the easiest way to detect what signals are being sent to a process?

I'm trying to debug an issue with my shell (specifically, fish) sending signals to my background processes. I'd like to be able to recognize what signals a process is receiving. Ideally, I'd like ...
0
votes
2answers
40 views

Why can't I kill the shell using the PID obtained from the $$ special variable? [duplicate]

After I have learned that the $$ special variable holds the process number of the shell, I tried too kill the shell by simply: kill , however this did not work, I also tried some variations, but them ...
2
votes
1answer
31 views

Creating symlinks in the etc directory without root access

What I would like to create if I had root access would be a symlink from some file or folder in the /etc to another file or folder in the /etc. However, I do not have root access. Is there any way to ...
0
votes
0answers
37 views

Send a remote job to a remote server (second machine) and end the first process

I Installed ScanBD for my scanner on a RaspberryPi. I also wrote a script to process the files once the scanning function has completed. SCANBD Script SCANBD Process Script Currently, the scans are ...
2
votes
3answers
41 views

Controlling the environ passed to child process by bash

I am using x86_64 GNU/Linux with bash #include <stdio.h> #include <stdlib.h> int main(int argc, char **argv) { system("set > setc"); // A subset of `$ ...
1
vote
3answers
67 views

Can a suspended process be copied?

If I suspend a running job in bash using ctrl-z is there a way to copy it. So that I now have two processes that are the same. I am running a python script that loads several files and does some ...
3
votes
0answers
33 views

Programmatically monitor process state using C++ [migrated]

I have to develop an application in C++ to monitor the state of processes in my Linux system and also need to know if a new process is created or an existing process is terminated. Is there an API ...
3
votes
1answer
24 views

Parent restarted by child doesn't respond to CTRL-C

I wrote a program. It starts a process (call it A) that spawns a child process (call it D) that shutdowns and restarts A. Problem is, now I can't kill A nicely from the terminal (ie. CTRL-C isn't ...
0
votes
0answers
15 views

How to run ping in background, disconnect from current terminal session and get back the ping process later on from new terminal session? [duplicate]

I want to monitor 2 of edge routers that currently have intermittent issue. I want to monitor their percentage availability using default ping parameter (1 ping per 1 second). If I run the ping ...
2
votes
1answer
107 views

Why can't I kill this process?

Problem I would like to kill a process called raspivid (program which records videos using a Raspberry Pi Camera) but I cannot... This is how I call it: #!/bin/bash #Start recording... raspivid -w ...
0
votes
1answer
74 views

How to disable core dump generation in Centos (cPanel Server)?

I want to disable core dump generation, How can I disable it ? One of the website keeps generating core dumps every second and eats up all the disk space. OS Details: CentOs cPanel Server ...
1
vote
0answers
65 views

Does jps lie? If not, what else is this?

I am running dockerized hadoop cdh 4.6.0 with supervisor . I have opened the docker container and tried the following two commands. Got confused a lot. jps 103 -- process information unavailable ...
2
votes
1answer
54 views

how to find out the full path of the command from the result of lsof -i

lsof is a great utility, just now started using it. lsof -i | grep smtp => this give the following result. httpd.pl 212548 global 3u IPv4 893092369 0t0 TCP ...
1
vote
1answer
31 views

What is the most Unix-y way to handle stdout for a backup command that might fail?

I am writing a utility/script (in Python, as it happens) to run on Linux, which backs up data from a remote server, and outputs to stdout. At the moment, I run this script on the hour from cron, and ...
2
votes
2answers
55 views

Can you make a process pool with shell scripts?

Say I have a great number of jobs (dozens or hundreds) that need doing, but they're CPU intensive and only a few can be run at once. Is there an easy way to run X jobs at once and start a new one ...
1
vote
0answers
9 views

How do kernel inform OSPF daemon when a physical interface status is down?

When a physical interface status is changed from up to down, there are 3 things related to the computer's current routing table and OSPF. The (connected) network for that interface and remote ...
0
votes
2answers
211 views

What does “task mysqld:xxx blocked for more than 120 seconds” mean?

We are troubleshooting a MySQL issue where some queries are taking a very long time complete and I see many of these entry in /var/log/messages: Jan 28 05:52:15 64455-alpha01 kernel: [2529273.616327] ...
2
votes
1answer
32 views

Get total bytes sent by pid

I have some processes in my unix system that sends data to a remote machine. It is possible to fetch the total bytes sent per pid ? In general, how i can monitor that pid in terms of network? Thank ...
1
vote
0answers
45 views

Stop all processes by a user: children of supervisord are still running

I'm trying to delete a user but it keeps saying that user is currently used by process ID x I tried everything here and here, nothing works, how do I kill all the process by a certain user in order ...
1
vote
1answer
42 views

Is there a way to change the number of processors a program sees?

Is there any way I can trick a program into thinking the system has fewer processors? To explain: I am debugging a program that creates as many threads as it has processors, using ...
3
votes
1answer
19 views

Identify in which screen instance a process is running

A process listening on port 8113 (Solr) is not responding. I've found its PID via netstat but the server has about two dozen Solr process running in various screen sessions. 3607.foobar-client2 ...
21
votes
9answers
2k views

How can I kill a process and be sure the PID hasn't been reused

Suppose, for example, you have a shell script similar to: longrunningthing & p=$! echo Killing longrunningthing on PID $p in 24 hours sleep 86400 echo Time up! kill $p Should do the trick, ...
5
votes
2answers
211 views

ls -l /proc/self | increamental PID?

Each time, when the commandls -l /proc/self is executed, the link points to process who's PID keeps increasing. Why is this so ? Is it the PID of the ls command ?
0
votes
0answers
23 views

Serial port locked by random process

I have an issue with trying to open a USB device's serial port with pyserial. It seems that as fast as I connect the device, /dev/ttyACM0 is used by some random process. ModemMana 851 root 8u ...
1
vote
2answers
59 views

start process (as root) upon user login

I would like to start a process as root upon each user login. The motivation beside this is, that the process will work on encrypted home folder of particular user folder. How can I achieve this?
1
vote
1answer
128 views

How to do a netstat that will only filter based on pid

How can I have the following command below just show/filter based on the PID's I'm looking for? sudo netstat -lp --inet The results come back as this Proto Recv-Q Send-Q Local Address ...
0
votes
2answers
32 views

How do Linux PIDS increment

Why do PIDS under Linux (generally) increment by 4? The only exception I can think of is startup processes run by systemd, which increment by 1 when they are related or 2 otherwise. How was the ...
2
votes
0answers
51 views

“Restart” a process in the same terminal?

I put "restart" in quotes because the following question on SO illustrates what I'm trying to do: http://stackoverflow.com/questions/27957091/restarting-a-process-in-the-same-linux-terminal I'm ...
0
votes
2answers
49 views

do processes access cpu and memory by system calls to the kernel?

If I am correct, processes access devices by system calls to the kernel. CPU and memory are also devices. when a process starts to run, does it get cpu and memory by system calls to the kernel? ...
1
vote
1answer
40 views

Count the total number of sub-processes (recursively) spawned by a command

How do find the total number of child processes (recursively) spawned by a script? For profiling purposes, it is sometimes important to count the generated sub-processes of command, script, etc. ...
1
vote
0answers
56 views

Monitor the creation of new processes

I want to get a notification whenever a new process is created. I've tried to use inotify on /proc, but it didn't report any event even though a new directory appeared in /proc. I could list the ...
1
vote
1answer
104 views

Why cannot we kill a zombie? [duplicate]

I am editing this question since it was marked duplicate as another question about how to kill a zombie process. I am not looking for an answer to how to kill a zombie process. I do not have zombies ...
2
votes
0answers
37 views

What uses Linux “application memory”?

Just for fun, I wanted to watch what ls -lR / does to my "buffers" memory on a Linux system. As expected, the value increased. But I noticed that the "application memory" (i.e. "used" - (buffers + ...
5
votes
1answer
101 views

Why file-nr and lsof count on open files differs?

I am running into a problem all of a sudden; all my applications and the server was running fine and all of a sudden I see the number of open files shoot up. I am checking it with this command: cat ...
4
votes
6answers
689 views

grep invading my ps [duplicate]

When I'm checking for some process, I usually write ps aux | grep myprocess And sometimes I get the output of eimantas 11998 0.0 0.0 8816 740 pts/0 S+ 07:45 0:00 grep myprocess if ...
2
votes
1answer
47 views

“incrond dead but subsys locked” what does it mean?

While running "service incrond status" it shows "incrond dead but subsys locked". Can you please tell me what does it means. Normally its status should be running. Let me know what may cause it to ...
1
vote
1answer
38 views

fork() and how signals are delivered to processes

I program that I wrote in C fork()'s off a child process. Neither process will terminate. If I launch the program from the command line and press control-c which process(es) will receive the interrupt ...
2
votes
0answers
39 views

Determine the owner of the session of a process

I am trying to implement a way to determine which user is owner of some process's session, in a way that's as cross-platform as possible. In Linux I can trace the process's pty by following the link ...
2
votes
1answer
74 views

Bash update list of running jobs with ps

I need to run in parallel a set of computationally intensive tasks. What I was trying to do is to maintain a list of pids corresponding to the running jobs and update the list of running jobs with ps ...
1
vote
1answer
58 views

Equivalent command for ``time`` for memory usage?

by using time we can easily get the information about how long a program run, I was wondering if there is any equivalent command I can use for memory usages? Like how many memory are allocated for ...
2
votes
5answers
613 views

How to kill stubborn process

I've an annoying process that won't die: ps -A | grep "nzbget" gives me: 11394 pts/3 00:00:00 nzbget If I try: pkill nzbget (or 11394) ...I get no response and the process is still alive, ...
-3
votes
2answers
63 views

A process is a program that is loaded into RAM [closed]

Is this correct? Basically, programs are simply code on hard disk and they are called process(es) when they are in the RAM, right?
1
vote
2answers
73 views

Can Process id and session id of a daemon differ?

As far as I understood from different articles and here , a daemon has the following features: Parent Process ID should be 1. No terminal should be associated with the process. The process id, ...
0
votes
1answer
70 views

'htop' process and threads cpu usage?

I'm observing a multi threaded process in htop in tree view. If I were to strip it just to the problematic part, it looks somewhat like this: CPU% bin/process 100 `- ...
1
vote
1answer
55 views

Process id of a command ran by an user

Consider i am running just some basic command.. ls Now would the above command have a pid, when it was getting executed? If yes, then how can i determine that pid? when i try echo $! right ...
1
vote
0answers
63 views

pkill -P $ID working while kill — -$ID not

I was playing around with creating and killing process groups on linux ( ubuntu ) I am trying to kill a process group and am being driven crazy by the fact that pkill -P $ID works while kill -- -$ID ...