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

learn more… | top users | synonyms (1)

0
votes
0answers
4 views

Set ionice for a multi-threaded application

I have a program that spawns multiple threads, all of which do fairly intensive IO, running on the background. I want to set the scheduling class to idle so that it doesn't clog up the system; ...
4
votes
5answers
400 views

Getting the pid's of a program line by line

I can find the pid's of my program instances by issuing command like this: pidof avconv Which is giving me results 16616 16283 16279 16198 16175 16035 15073 14049 4922 But how can I output the ...
1
vote
0answers
22 views

How do processes, jobs and session relate to each other ? [duplicate]

Could you deliver an answer in a way that does not require too much special knowledge in advance, yet also deliver some deeper insight to a lesser advanced Linux User ?
2
votes
2answers
21 views

Can someone explain exactly what is happening with single quotes and double quotes with process IDs in the below example? [duplicate]

[root@localhost ~]# echo $$ 16991 [root@localhost ~]# bash -c "echo $$" 16991 [root@localhost ~]# bash -c "echo $$" 16991 [root@localhost ~]# bash -c 'echo $$' 21062 [root@localhost ~]# bash -c 'echo ...
1
vote
0answers
39 views

How can I find which process is eating my memory? [duplicate]

My Linux system sometimes reaches 90% memory usage. We are running some Java processes, and top shows overall usage as 45%. If I stop the running processes, usage reduces to 5-10%. I want to list ...
2
votes
1answer
21 views

Re-enter PID 1 namespace

I'm trying to enter PID namespace that process with PID 1 is in from a process cloned with CLONE_NEWPID. I keep getting Invalid argument error. In other words, I clone a child process with clone() ...
1
vote
2answers
33 views

List running processes without procfs

I'd like to list running process (like using ps or top), but there is no procfs mounted. The procfs not being mounted is intentional, and is made to prevent malicious user to access systems ...
2
votes
1answer
19 views

Solaris 10 system - used disc space keeps on increasing even after deleting the directory

I deleted a directory on slice mmf but it came back - the size is still same and also it keeps increasing. The reason for deleting the directory is that I couldn't find the process linked to creating ...
1
vote
1answer
37 views

Difference between owner/root and RUID/EUID

I am relatively new to the concepts mentioned in the question and reading about them from different sources only makes them more confusing. So this is what I understood so far: When we are given ...
2
votes
1answer
26 views

Is there a way to suspend an process belongs to shell A and foreground it in shell B?

I knew how to suspend one process and bring it into foreground in current shell, but I have no idea about that If I have run a process in shell A and now I want to bring it into foreground in current ...
1
vote
0answers
13 views

Find what process implements a FUSE filesystem

How can I get the process ID of the driver of a FUSE filesystem? For example, I currently have two SSHFS filesystems mounted on a Linux machine: $ grep sshfs /proc/mounts host:dir1 ...
2
votes
3answers
130 views

How can I determine if a process is a system process?

I'm reading the /proc directory (or pseudo-fs) to find all processes. I'm getting the information I need from /proc/[pid]/status but there's something else I need. Is there any way to figure out which ...
1
vote
2answers
38 views

Should I use Linux's acct (BSD process accounting) to track a process behavior?

I have a daemon process (slapd) which sometimes stops with no apparent reason. No segfault occurs. Nothing special in the logs. So, I'm trying to use acct to track the process' life, especially its ...
0
votes
1answer
28 views

writing a script & trying to kill a process

So I am very new to Unix, I understand this question may be very simple My goal is to write a script that will show all the running processes and ask the user if they want to kill each process... For ...
3
votes
5answers
84 views

Get PID of process started by time

Say I run time ./a.out, then I can get the PID of time by the variable $!. But how do I get the PID of a.out? Of course, I could parse the output of ps, but I want a more elegant solution. I've ...
5
votes
3answers
407 views

Which of the following codes will run in the same process of the current shell

A. { echo "Hello World"; } >outputfile B. ( echo "Hello World" ) >outputfile C. ./anothershell.sh D. /bin/echo "Hello World" Which is right? And what kind of command can run in the same ...
5
votes
4answers
376 views

list graphical processes from terminal

Do no confuse the question here with how to list processes graphically, that is not what I am asking. In the Terminal, how can i see which processes have a GUI? as in things like firefox, vlc, ...
3
votes
2answers
215 views

How to close a window of a crashed application?

Im using Awesome as desktop environment, as you can see in the image below, the application (aMule) crashed but the window is still open, so I would like to close it to restart it, but as you can see ...
0
votes
1answer
76 views

/usr/bin/awk: Argument list too long

I am trying to run the following bash script: #!/bin/bash file=$1 filename=${file%%.*} line1=$(sed -n 1~2p ${file}) seqs=$(grep -v '^>' ${file}) pos=$(echo "${line1}" | awk -F"[__]" ...
0
votes
0answers
15 views

Perform task on waking up from suspend

I have program that misbehaves when my pc wakes up from suspend to ram, it starts using up to 40% of processor time so i usually have to kill it manually. How can i set specific command (pkill in ...
2
votes
1answer
47 views

monitor multiple pids with top

I want to monitor memory usage for several processes and came up with a command like this: ps aux |grep -e postgres -e unicorn -e nginx|cut -d' ' -f2|for i in $(xargs); do echo $i; done 16112 16113 ...
0
votes
2answers
33 views

How to open process again? [duplicate]

From my home pc using putty, I ssh'ed into a remote server, and I ran a python program that takes hours to complete, and as it runs it prints stuff. Now after a while, my internet disconnected, and I ...
1
vote
1answer
58 views

shell script to auto kill processes matching certain criteria

when running top it shows a couple of processes got nearly 100% cpu usage of the command 'perl' PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 21287 simon 15 0 4141 ...
0
votes
2answers
38 views

Meaning of the pstree output

-bash-3.2$ pstree 27108 Script.sh---java---15*[{java}] What does this 15* mean here, also any meanings defined for [] & {} in the context of command?
1
vote
1answer
21 views

How to find process which flood the whole network

I have a laptop with Fedora 21 and TP-Link router with DD-WRT software. Sometimes my whole internet stops for any device. When I reboot my laptop or just I turn off wireless, the internet works fine. ...
1
vote
0answers
11 views

Protecting Registers in Context Switch [migrated]

I'm working on implementing a cryptographic algorithm. I'm using locked memory pages to keep sensitive data (such as keys and intermediate values) locked in RAM (having them never be written to ...
0
votes
1answer
38 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
45 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 ...
3
votes
1answer
23 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
102 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
34 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
46 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
36 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
44 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
53 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
68 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
1answer
27 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
126 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
211 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
166 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
65 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
3answers
73 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
13 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
358 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
45 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
61 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
44 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
21 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 ...