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

learn more… | top users | synonyms (1)

0
votes
1answer
21 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> ...
2
votes
2answers
51 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
104 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
156 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
35 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
107 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 ...
0
votes
0answers
28 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
48 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
59 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
49 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
354 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
57 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
13 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
541 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
24 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
50 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
24 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
36 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
24 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
55 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 ...
1
vote
0answers
16 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
146 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
43 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
29 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
94 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
413 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
386 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
216 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
90 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
16 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
52 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
78 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
52 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
25 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. ...
0
votes
1answer
45 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
46 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
35 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
104 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
38 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
52 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
37 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
48 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
54 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
30 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 ...