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

learn more… | top users | synonyms (1)

0
votes
2answers
34 views

Best way to kill processes in a list

I've got this zsh script. Is there a more a graceful way to do this? export PROCESSES_TO_QUIT='puma rake sidekiq spring rails ruby-debug phantomjs zeus passenger guard resque "node server.js"' pgr() ...
2
votes
1answer
51 views

Command for killing specific PID provided by previous command

Sometimes I need to kill a process (the reasons why are not important). And I know I can find that process with the following command: lsof -i :8080, being my candidate the last process in the output ...
0
votes
0answers
10 views

How is a process state updated to blocked state (TASK_INTERRUPTABLE)? [migrated]

When a process is waiting for IO, how is the task state updated to TASK_INTERRUPTABLE (that is, blocked)? Imagine this case, a process issues an IO request to a block device. According to my ...
0
votes
1answer
27 views

I kill process but come back

I have a big problem on centos 6.4 i kill this(8904) but he come back and use the processor. How can we solve? I don't use apache(httpd) on my server. apache don't installed on machine. it's a ...
1
vote
0answers
22 views

How to get stdout of process? [duplicate]

I started a process from the command line, but the window server died. However I see the process I started is still running. Is it possible to connect a terminal to the process to see its output? ...
0
votes
1answer
17 views

start process from ssh and be able to close connection [duplicate]

I'm connecting to my RaspberryPi with Raspbian installed via ssh and my problem is, that I can't let the RasPi do things (installing software, make calculations) while my Computer is shut down, since ...
6
votes
1answer
211 views

What three files are always opened by a process?

Someone mentioned that there are three different files that a process always opens. What does this mean? What files are they?
3
votes
1answer
36 views

What could be happening between pidof and kill to cause “no such process”?

I've inherited quite a bit of code and am looking at a cron job that restarts a service once an hour, no other scripts touch this process and this code is ran. #The name of the process has been ...
4
votes
0answers
52 views

Disable networking only inside of a single terminal

I want to run a command in the terminal to disable networking, just in that terminal. How can that be accomplished? I'm running OSX. Note: I only want to disable the networking in that terminal. ...
1
vote
1answer
36 views

How can I monitor network connections for an app

I'm running a chat application on my machine called foo - how do I view all connection attempts (failed or successful) for foo? I have attempted this with netstat, but I am unsure how to associate ...
1
vote
1answer
28 views

Disowned “Stopped” job process still appears in process table

I want to know why after disowning the stopped process, it is still appearing the process table PING www.google.com (74.125.130.106) 56(84) bytes of data. 64 bytes from 74.125.130.106: icmp_seq=1 ...
0
votes
1answer
13 views

Find out home directory of running Oracle instance

There are two oracle directories on our system: oracle oraclex How can I find out which of them is used by the running Oracle instance?
5
votes
1answer
41 views

What are pending signals?

When looking at the limits of a running process, I see Max pending signals 15725 What is this? How can I determine a sensible value for a busy service? Generally, I can't seem to find a ...
2
votes
1answer
30 views

Thin LVM pool frozen due to lack of free space, what to do?

My thin LVM pool got full and some programs hung: device-mapper: thin: 253:4: reached low water mark, sending event. device-mapper: thin: 253:4: no free space available. INFO: task jbd2/dm-6-8:742 ...
2
votes
1answer
59 views

Unrealistically long process times displayed in top

I (partly) manage a small cluster and we are having some problems on a few nodes (running CentOS 6.4). Some processes show exceptionally long run-times in 'top', even though the computer has been ...
1
vote
2answers
60 views

How to keep a process from running?

I can kill a process. But how do I keep that process from being called up again without removing it from Linux? For example, if I run something like netstat to find the port associated with the ...
3
votes
1answer
41 views

Run a command in background that sets env var or define function

> export foo=1 & [1] 9016 [1] + done export foo=1 > echo $foo > I know when running a command with & you spawn a new process and the export foo=1 is not setting env vars in ...
8
votes
4answers
701 views

Why are there many accounts? I'm the only user

I am running an Ubuntu 12.04 desktop system. So far I have only installed some programs (I have sudo rights). When I check the list of users on the system, I see a long list, like more than 20 ...
1
vote
2answers
47 views

Strange process behaviour on virtualized Ubuntu

I'm running Ubuntu 14.04 LTS on Windows 8.1 using VirtualBox. I'm approaching to Operating systems and the following program shows a strange result: #include <stdio.h> #include <unistd.h> ...
4
votes
2answers
41 views

htop shows only the processes of the user that's running it?

On my old Debian Wheezy I see as a normal user without sudo all processes from all user in htop. On my new Debian Wheezy I only see my own processes. Old system kernel: 3.2.0-4 New system kernel: ...
2
votes
2answers
54 views

How to know the source of a process in Linux?

In our firm, we are using Fedora 14. Our developers are using Python code to process documents. All are running as root. Somehow they did something and a file came inside which makes lots and lots of ...
2
votes
2answers
112 views

replace `while` with more suitable function so looping would wait for each process to end

I have a bash script that look out for files recursively under multi-sub folders, then use ffmpeg to each file. at debug, it works great if i use echo ffmpeg but the thing is, at real work where it ...
3
votes
3answers
164 views

Starting a process from one terminal from another terminal

I was wondering of there is any method to start a new process or a program from one terminal into other. What I mean is: Let's say I have to run gedit abc.txt, but I don't want it to block my current ...
4
votes
2answers
37 views

Determining maximum memory usage for an extremely short process

I have a program I am testing and I need to determine the maximum memory used by the process. I know that in general ps -aux can give me this information, but the process runs in under 1/10 seconds ...
4
votes
2answers
115 views

My /var/log/ is mysteriously filling up GBs in minutes! Any cure before I re-install Debian 7?

Good morning, fellow *nix enthusiasts! I have been using Debian 7 for a while now and after a recent upgrade I noticed I constantly kept running out space on my root partition. I mean to the point ...
2
votes
1answer
27 views

What are `gom-*miner` processes?

I've got few running processes that eat up all my resources, blocked network and disk I/O, after some time whole computer froze, I couldn't even go to classical non-gui terminal. I've found them ...
0
votes
0answers
31 views

how to find out why process is taking more cpu usage

Sometimes load goes high on server for java processes. Multiple java processes are running and consuming high load on server. I want to know how to check that why process is taking too much load.
-1
votes
0answers
27 views

Why can google-chrome with disown survive closing terminal, while not with nohup? [duplicate]

From gnome terminal, I found that google-chrome & disown can make google-chrome survive closing the terminal, while nohup google-chrome & doesn't. I wonder why the difference? My ...
2
votes
1answer
58 views

Using ps and watch to observe parent and child process

I got a parent and a child process running, I know their IDs. How do I utilize 'ps' and 'watch' to filter them out, so that I can see their used CPU times? I tried 'watch ps -u USERNAME', but as you ...
2
votes
1answer
69 views

how to get the full command line args passed to a process on unix/linux systems? [duplicate]

I am looking for a reliable way to get the full command line args passed to a process even when these are very long. I do know about ps -f -p <pid> and /proc/<pid>/cmdline, both of which ...
1
vote
1answer
58 views

Orphan process's parent id is not 1 when parent process executed from GNOME Terminal

I start a new process from GNOME Terminal and then this process fork a child. But when I killed the parent process the orphaned process's parent id became something other than 1 which represent init ...
5
votes
2answers
379 views

How can a background process know its own PID?

I'm using bash on a RH Linux system. Normally, you can get your own PID with the variable $$. However, if a script runs one of its own functions as a background process - that doesn't work; all ...
3
votes
1answer
59 views

Change the parent process of a process?

Is it possible to change the parent process of a process? If yes, how? For example, how does screen manage to attach a screen session and the processes running inside it to different shell ...
0
votes
0answers
20 views

What does disown do? [duplicate]

$ help disown disown: disown [-h] [-ar] [jobspec ...] Remove jobs from current shell. Does disown on a process change the parent process of the process? I.e. make the parent shell process ...
1
vote
1answer
18 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; ...
5
votes
5answers
551 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
23 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
25 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
56 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
27 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
38 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
26 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
65 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
27 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 ...
5
votes
2answers
71 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
157 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
48 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
30 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
99 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
417 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 ...