0
votes
1answer
25 views

Create a new process and make it use more than 10% CPU?

Really odd question I know. It's to help demonstrate my university coursework. I'm going to be killing processes that are using more than 10% of the CPU.
0
votes
0answers
30 views

SIGCONT definition, continue or restart?

According to the definition from wikipedia SIGCONT The SIGCONT signal instructs the operating system to **continue** (**restart**) a process previously paused by the SIGSTOP or SIGTSTP signal. One ...
0
votes
1answer
46 views

How to stop and continue the process

I used ps -fT pid to manage a bunch of process forked from the specified pid. Now I want to modify some settings so I want to stop the processes whose pid is in ps -fT pid. After the modification ...
0
votes
1answer
139 views

How to get a list of background processes in freebsd

I need to get a list of background processes in freebsd, but i don't know how. I've tried to use ps command, ps -ax ps -e -j but I haven't found properties which describe background processes. ...
3
votes
1answer
551 views

How to get list of all child process spawned by a script

Context: Users provide me their custom scripts to run. These scripts can be of any sort like scripts to start multiple GUI programs, backend services. I have no control over how the scripts are ...
1
vote
3answers
243 views

Running a script where you append the errors to file and use nohup

The script works! First I type this in my CLI: php worker.php >>/home/xxx/log 2>&1 Then, I want it to run as its own process or whatever, so I add an & at the end, like this: php ...
26
votes
3answers
25k views

If I know the PID number of a process, how can I get its name?

If I have the PID number for a process (on a UNIX machine), how can I find out the name of its associated process? What do I have to do?
2
votes
2answers
52 views

Monitoring a process

I'm reading documentation on supervisor, and it quotes: It’s often difficult to get accurate up/down status on processes on UNIX. Pidfiles often lie. Supervisord starts processes as ...
0
votes
1answer
39 views

Create a logging program

I want to create a program that logs all the processes started by the user and confirms after they are started. I don't want to log all the syscalls and other daemon processes. I have initially ...
4
votes
3answers
1k views

What does kill 0 do actually?

In the man page, it says: 0 All processes in the current process group are signaled And I tried like this: $ man kill & [1] 15247 $ [1]+ Stopped man kill $ kill ...
2
votes
2answers
2k views

kill - no process found

when I list my processes I have: root@adam-ThinkPad-T410:~# ps -e | grep signals 11641 pts/0 00:00:00 signals 11642 pts/0 00:00:00 signals 11643 pts/0 00:00:00 signals but when I ...
2
votes
1answer
104 views

Stop wget but allow convert-links

I'm running a wget command with a rather deep recursion depth. The deep recursion depth is needed to get the files I want, but I don't want to wait for the operation to complete. I see that I can ...
1
vote
2answers
186 views

Kill a process in Unix

When I execute theps -fea | grep ssh-agent command, I get the following output: tomcat 29057 14086 0 Jan 09 ? 0:00 ssh-agent oracle 1964 14086 0 Nov 26 ? 0:00 ...
2
votes
2answers
1k views

flag to 'ps' command that can filter on arguments?

I know the argument "-C" which can filter on the command. But in my scenario I may have some processes with the same process name and different args. How to filter on these args? (I know I could ...
3
votes
1answer
728 views

What is session leader in `ps ax`

See the command bellow # ps ax | grep bitlbee 2271 ? Ss 0:00 /usr/bin/bitlbee -s mysql -c /root/config.conf 3930 ? S 0:00 /usr/bin/bitlbee -s mysql -c /root/config.conf See ...
1
vote
4answers
248 views

Does running the 'find' command fork a new process?

When I type find in unix a shell, is a new process created (to handle the find operation) or not? And why?
0
votes
1answer
296 views

What is a child process?

I have an error in my error logs that I am trying to figure out but I don't know what to be looking for when it says Child Process. I understand that its a process done by a parent, but that's an ...
0
votes
0answers
112 views

Why is process not being displayed by TOP

I am running a Mathematica script (this question probably doesn't fit in Mathematica.SE however) and I know that it generally takes up a lot of RAM and loads up my cores. However, althought pgrep ...
1
vote
1answer
62 views

My sleeping process accepts TCP connections?

After sending the STOP signal to a process, it stops working as expected, but still accepts TCP connections. So is it working anyhow?
17
votes
4answers
19k views

What is effect of CTRL + Z on a unix\Linux application

I was curious and confused that what exactly is the behaviour of CTRl+Z. I know, If a process in running in foreground, and we press ctrl+z, it goes to background. But what exactly happens. Does it ...
0
votes
2answers
463 views

Daemon <||> Process control differences

With respect to this excellent post: http://stackoverflow.com/questions/958249/whats-the-difference-between-nohup-and-a-daemon I would like to ask the following: After launching an application from ...
3
votes
4answers
7k views

How to find and stop a process on a Mac

How can I find the process id and stop the process that is running on port 8080 on a Mac? On Ubuntu this works: ps -aux and I can find the process and run: kill -9 pid ps -aux didn't seem to ...
2
votes
1answer
179 views

Child processes remain after quitting screen

I'm seeing some strange screen behavior on OSX. When I quit screen, child processes are not killed. $ screen $ tail -f (or some long running process inside screen) Then, I kill the current screen ...
1
vote
2answers
5k views

What is the main purpose of the swapper process in Unix?

What is the main purpose of the swapper process in Unix? Swapper process has the PID 0 and I guess it is the first process that loads. Can anyone throw more light on this topic?
1
vote
1answer
101 views

Why does Unix deliver signals this way?

In Unix, when signals are posted, and the receiving process is running more than one thread, at first a thread is chosen to carry out the signal handling routine. I don't understand why that is ...
10
votes
4answers
13k views

ps: How can i recursively get all child process for a given pid

How can I get the entire process tree spawned by a given process displayed as a tree and only that tree i.e. no other processes? The output could e.g. look like 4378 ? Ss 0:10 SCREEN ...
1
vote
1answer
160 views

Getting the name of the previous process

I'm trying to generate notifications when certain commands finish execution. I'm trying to use xmessage or notify-send to generate this notification. Right now, I'm trying it this way: command; ...
21
votes
5answers
10k views

How can I trigger a notification when a job/process ends?

The place I work has commands that take a long time to execute. Is there a command/utility that I can use to notify me when the command execution is over? It could be a popup window or maybe a ...
2
votes
1answer
637 views

What's the Unix command-line symbol for “the PID of the last suspended process”?

In an interactive console like irb, sometimes something will go wrong and the console becomes unresponsive. One solution is to suspend the process, then kill it. To suspend the process, I can press ...
2
votes
2answers
1k views

How does 'strace' work?

Recently, I was using mv to move a large amount of files from my hard drive to a flash drive. I forgot to add a verbose flag so I had no idea "where" the move was at and how many transfers remained. ...
0
votes
1answer
305 views

How to identify whether a process is hanging?

In unix, if we see that some process is utilizing more cpu time, then how to identify if that process is hanging or not?
6
votes
2answers
5k views

Auto-restart process on crash [duplicate]

I have a Java server process which runs native code and the possibility of the entire process crashing due to a problem in native code is always there. Is there any mechanism offered by *nix operating ...
11
votes
8answers
6k views

How to run commands as in a queue

I need to do a lot of copying of various files to various folders. I can add all my copy commands to a bash script and then run that, but then I must wait until it finishes if I want to add more ...
3
votes
2answers
2k views

How to find which Tmux session a process belongs to?

Case in point is editing a configuration file in vim and inadvertently leaving it open. Then you go about your business, switch around in different Tmux sessions, eventually edit the same file from ...
1
vote
3answers
7k views

Monitor average CPU usage and RAM usage on one process linux

Is there any way to monitor one process' CPU usage and RAM usage over time on linux? I am trying to change to a cheaper VPS and need to work out what level of CPU and RAM I need!
21
votes
3answers
20k views

How do you find the parent process of a zombie process?

How do you find the parent process of zombie processes? When the child process is something where the parent is not entirely obvious... Is there some way to list processes in tree format or ...
5
votes
1answer
12k views

In UNIX, what are the Ss, Sl, and Ssl proccess types I see with ps aux?

When doing a ps aux command, I see some process listed as Ss, Ssl and Sl. What do these mean? root 24653 0.0 0.0 2256 8 ? Ss Apr12 0:00 /bin/bash -c /usr/bin/python ...
15
votes
4answers
7k views

How are PID's generated?

On *nix, PIDs are unique identifiers for running processes. How are PID's generated? Is it just an integer which gets incremented or a more complex structure such as a list? How do they get recycled? ...
2
votes
3answers
1k views

how to stop bash from printing alerts?

When killing a process with kill -9 $PID &>/dev/null in a script, a message is still printed to the terminal after the next command terminates. How do you stop this behaviour? For example ...
2
votes
3answers
2k views

How to access Stdout / Stderr of a detached process?

I'm having a php-cli script that is running (detached) in the background. Is there a way to attach to it's Stdout/Stderr in order to see the output of the application?
3
votes
3answers
8k views

How to get command line of UNIX process?

Is it possible to grab the command line that was used to invoke a process on Mac OS X?