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

learn more… | top users | synonyms

1
vote
1answer
14 views

rkhunter /usr/bin/ssh && /usr/sbin/sshd [Warning]

My last rkhuter scan reported a couple of warnings that deserve to be checked(for my noob eyes). Main reason for my suspect is that i wasn't on the machine at (03-Apr-2014 01:12:12) ->AM I googled ...
1
vote
1answer
54 views

Best way to determine piped command to shell script?

Given tree /some/directory | print.sh Is there any way for print.sh to know that "tree -f /some/directory" was called, without trying to parse pid processes?
2
votes
2answers
106 views

How can I get the version of the pgrep & pkill commands?

I looked at the manpages and there is no -v or --version argument for pgrep or pkill. How can i get some info on the version? I'm asking because on my version of Ubuntu man pgrep is giving me a ...
1
vote
1answer
21 views

Will a running program be killed if I suspend my OS?

I am running a program. If I suspend my OS (Ubuntu 12.04) in the middle, will the process of the running program be killed? If not, when I wake up my OS, how can I resume the process? Thanks!
4
votes
1answer
41 views

Reliable way to jail child processes using `nsenter:`

I know that Linux namespaces, among many other things, can be leveraged to handle restricting and jailing child processes securely without any chance of their being zombied and dumped on init. But I'm ...
4
votes
5answers
326 views

Kill all descendant processes [duplicate]

I'm writing an application. It has the ability to spawn various external processes. When the application closes, I want any processes it has spawned to be killed. Sounds easy enough, right? Look up ...
2
votes
2answers
31 views

why cpulimit makes process STOPPED?

I'm running a python script which uses networkx package to run some algorithms on graphs. the script is import networkx as nx from networkx.algorithms.approximation import clique G = ...
0
votes
1answer
19 views

Setting up init.d service daemon priority (with or without monit)

Does anyone know how to change the process priority with monit? I want a high one. Monit config file for my service so far: check process RPiQuadroServer pidfile /var/run/RPiQuadroServer.pid ...
4
votes
2answers
44 views

Portability of file descriptor links

I've always wondered this but never took the time to find out, so I'll do so now - how portable is the usage shown here of either /proc/$$/fd/$N or /dev/fd/$N? I understand POSIX guarantees /dev/null, ...
1
vote
1answer
60 views

How to trace system calls being invoked after typing command?

This question is relevant to the question of 'what happens when we type a simple command on shell?' I posted earlier. (I thought it would be better to post it seperately. But if not, please let me ...
14
votes
2answers
739 views

What happens when we type a simple command on shell? [duplicate]

I have a simple doubt on execution of a simple command. As per my understanding, when we type a command such as ls on interactive shell, Shell interpretes the command. Shell creates a child process ...
5
votes
3answers
178 views

Understanding environmental variables in different contexts

Trying to understand the behaviour of the environment in Linux (Ubuntu 13.04 concretely), I've find different situations where setting envirionment variables are used or defined for/in different ...
2
votes
2answers
33 views

Limitng number of process by name

is it possible, to limit number of process for given group or user using process name? Eg. I'd like to groups remotes have only 5 simultaneous ssh processes that are run on my server. I don't see any ...
4
votes
2answers
76 views

How to kill a process started as daemon?

I start a process using foo &. It outputs something like: [1] 16915 This is the process id, I guess. How can I store this number into a variable named MY_PROCESS_ID (for example)? Then I ...
0
votes
1answer
40 views

Script: Running a second process when the firts ended

I am trying to make a script that consist in a two parts. the first one is to run a initial state and the second one is to equilibrating the system. The problem is that the second is dependent of the ...
2
votes
1answer
50 views

Application lags if started from init.d?

I have a program (pre-compiled binary) that, when started manually on linux, runs fine. It has a CLI that I use to enter commands. This program is a software router, I can connect to it's CLI to ...
2
votes
2answers
22 views

Determine what java applications are running within the java process name

I am writing a Built System for Sublime Text 3 for JavaScript unit testing. I am using js-test-driver as my testing framework. Sublime Text can only execute one command, so I am using a bash script to ...
3
votes
2answers
49 views

Process in user mode switch to kernel mode. Then the process will have root privileges?

According to http://www.linfo.org/kernel_mode.html in paragraph 7: When a user process runs a portion of the kernel code via a system call, the process temporarily becomes a kernel process and is ...
3
votes
2answers
67 views

How to find out the reason a command/code was executed on Linux?

I have a complex embedded Linux software running on a gentoo derivative, on which a certain piece of code gets executed regularly every ~84 minutes. Sweeping through the main code to find places where ...
3
votes
1answer
43 views

Result from kernel returned to what process?

When a process requires actions that require kernel mode, it uses a system call. So, how are the results returned to the process?
2
votes
1answer
18 views

What does it mean exactly when a processes “Time” has stopped in top?

I'll be looking into why we're getting critical swap alerts, and I'll find something like: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP COMMAND 14683 user1 30 10 16.0g 772m ...
1
vote
1answer
53 views

How to get more information about Java processes from atop?

I have several java apps running on a machine and atop only tells me CMD java is there a way to get more information about that process, as I have +20 java in the list and I don´t know which one is ...
-1
votes
1answer
46 views

Which is the most precise command to get processes and system information? [closed]

I'm trying to evaluate performances of some active processes of mine on linux. Searching the internet I found that ps and top are the only command available for that. More precisely here, it says ...
0
votes
2answers
28 views

Check that fail2ban is running?

I just installed and configured fail2ban. I want to make sure it is working. I don't want to block myself from the server so I can't just login (poorly) a bunch of times. How do I see that fail2ban is ...
3
votes
3answers
234 views

Killing an instance of a process

This is an output from pstree In the picture you can see the marked boxes in which the processes are multiplied by a number? What is this number? I had a doubt that it is the number of instances ...
2
votes
0answers
37 views

Why does't stopping the nginx server kill the processes associated with it?

When I stop nginx like this on ubuntu 12.04, I get the following errors: $ sudo service nginx stop Stopping nginx: nginx. $sudo service nginx start Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 ...
1
vote
3answers
76 views

How do I start a server via ssh and have it run after I log out?

I ssh into a virtual server and start up a web server. Everything runs as expected. But when I close my terminal on my laptop, the process dies on the virtual server. How do I fix this?
1
vote
2answers
60 views

How to limit the number of process that a user can create?

I think I have a program that creates countless forks of itself (not intentionally, I hope). I like to test this but I can't kill the machine, so how could I limit the number of process to execute ...
1
vote
2answers
76 views

Running a bash script as root prevents asynchronous execution?

The script below get's executed differently if run as a root user. #!/bin/sh gnome-terminal -x sleep 10 echo 'Why must I wait for sleep to finish?' If its run as a regular user, message is ...
1
vote
1answer
64 views

How to find out why a Java process died without a trace in Linux

A java process running in our SUSE Linux machine died without leaving a trace as to why it died. If it was killed with kill , it would have been logged and we would have known because the process ...
2
votes
1answer
98 views

What is the difference in CPU utilization between 'ps aux' and 'ps -ef'?

I use Ubuntu 12.04.1 Linux. I see a difference between %CPU and C output format of ps command for a process. It is not clearly noted in the ps man page. Man pages says: CODE HEADER ...
1
vote
0answers
48 views

Why is the service unavailable the second time?

How can this happen? /volume1/homes/me $ tdtool --list /volume1/homes/me $ tdtool -e 44 Learning device: 44 - Could not connect to the Telldus Service /volume1/homes/me $ tdtool --list Error fetching ...
7
votes
3answers
157 views

Harddrive I/O per Pid

is there any way to see the disk I/O per pid/process ? Monitorix shows me the following and correct me if I´m wrong, but it looks like that the harddrive is slowing down the whole system: UPDATE #1 ...
1
vote
2answers
54 views

Script always runs two instances

I was just curious, what may be the reason why script run two instances when executed. Whenever I run my script foo.sh, and when I check using: $ ps -ef | grep foo.sh It always returns two ...
0
votes
1answer
17 views

Can't terminate PHP daemon process

I've started a PHP daemon process via SSH with php ./my-script.php --daemon Now I want to quit this process, but I can't. It's still active in the foreground of my shell and I've hit CTRL + C ...
4
votes
4answers
420 views

Check for Process if Same is Running

Is there a script or a way in linux that when I try to execute a shell script/process, if the same is running, it will prompt that same is running and will exit otherwise it will continue.
1
vote
5answers
75 views

Replace instance of process in place?

I suspect this is not doable just because of the security implications, but here's what I'd like to do. Basically we run a bash shell-script on our CentOS server that calls Program-A (in our case ...
1
vote
2answers
82 views

In bash script, how to capture stdout line by line

In a bash script, I would like to capture the standard output of a long command line by line, so that they can be analysed and reported while initial command is still running. This is the complicated ...
0
votes
1answer
39 views

Can a script be running even after it's been killed?

I know it sounds so stupid and I know it IS stupid but I ran a unix script to send me and my friend emails every few seconds to test mailx. Stupid thing is I used $ while true; do blah blah blah... ...
0
votes
0answers
11 views

What is the [rc0] kernel process?

I have several servers. A few of them are running ubuntu 12.04 LTS. I'm looking into an intermittent hanging issue, and noticed an [rc0] kernel process From ps -ef: ... root 1025 2 0 ...
2
votes
1answer
86 views

There are stopped jobs (on bash exit)

I get the message There are stopped jobs. when i try to exit a bash shell sometimes. Here is a reproducible scenario in python 2.x: ctrl+c is handled by the interpreter as an exception. ctrl+z ...
0
votes
1answer
43 views

Why my cpu spend so much time on system? [closed]

top - 08:58:42 up 20 days, 8:23, 1 user, load average: 67.17, 58.94, 62.75 Tasks: 630 total, 40 running, 524 sleeping, 0 stopped, 66 zombie Cpu(s): 57.3%us, 41.6%sy, 0.0%ni, 0.0%id, 0.0%wa, ...
0
votes
2answers
56 views

Why does kill not have a parameter for file and not for port number?

If I want to stop a program given its tcp port number or its file or named executable, can I run something like kill -tcpPortNumber $1 where the parameter $1 is a tcp port number or kill -filename $1 ...
0
votes
1answer
27 views

Is there a way to check which process terminates first during reboot

Assuming I have 2 processes running. Is there any way for me to check which process terminates first during reboot/shutdown? From this link, it tells about appending boot to a file. Yet, I still don't ...
1
vote
1answer
59 views

Track down process that has notty

I have a Linux server (Red Hat 2.6 kernel) which had a spike in load due to an Rsync process which seems to have forked many times, but the process was run by rsyncuser@notty I didnt see any cron job ...
2
votes
2answers
115 views

How can a normal user trigger a root cron task to execute immediately, without delay?

I have a root cron task that runs every day. But I want to allow normal users to request that it run immediately, if they so wish. It is a harmless process and it can run as often as needed and these ...
1
vote
1answer
53 views

spawning multiple Background processes

I have a file which has 2,000,000 lines in it. I am running some commands for each line. I was trying to achieve some parallelism using GNU-parallel and swift as discussed here. However, I got an ...
1
vote
1answer
40 views

Gnu Parallel: more than one per CPU? [closed]

If I only have two cores, does parallel only run two processes at a time? I guess I'm still confused about processes, threads, and cores....
0
votes
1answer
78 views

Full path name of bash? and base process of Linux?

I am new to Linux and I recently had a test at school which had the following questions: What is the full path name of bash? What is the base process of Linux? I couldn't answer these. Does anyone ...
1
vote
3answers
111 views

A command which returns either a process ID, if running, or some other output if not?

I'm looking for a command that will give me the PID, and it's not running it should give me some output other than blank. In my program, sometimes the library I'm using gives blank output even if ...