0
votes
0answers
7 views

CGroup Processes Not Terminated even when main process has been killed through Systemctl stop command

I am running systemctl stop process command for some process. Please find the output for systemctl status process below: Loaded: loaded Active: deactivating (stop-sigterm) CGroup: ...
1
vote
1answer
33 views

Copying processes in Linux

I would like to make a copy of process (On Linux). Let say that I have an application that on startup makes lot of calculations, and that takes it a long time. I want to start this application few ...
0
votes
1answer
41 views

How to find process stop time in linux?

I have one application which runs 24x7 in my system. But some how it was killed abruptly. I observe it 2 or 3 times from last 10 days. Now I want to find from how much time my application is stopped. ...
0
votes
0answers
22 views

When is SIGSTOP/SIGCONT safe?

I often find myself wanting to pause a long-running operation so I can quickly do something that needs computer power. I find myself scared of using SIGSTOP/SIGCONT. One alternative would be to use ...
0
votes
1answer
45 views

How can I tell the exact memory of a process in linux (Ubuntu?

I've found many posts on this website detailing how to find the usage of processes in linux, but most of these return the percent memory/cpu usage per process. I need to know the exact usage per ...
1
vote
2answers
73 views

Start Linux process/script via web interface

I have a bunch of Java programs/shellscripts that needs to be manually started every now and then (mostly in the mornings), and stopped every evening (same there). I would like a possibility to start ...
0
votes
2answers
99 views

How to kill all processes returned by pgrep

I need to kill a few Python processes. I can get a list of the process numbers using pgrep python, but how can I kill them all at once instead of killing one by one? I'm looking for something like: ...
1
vote
1answer
75 views

Process With No Name: A Possible Linux Rootkit?

Situation When I was looking at gnome-system-monitor one time, I saw a process without a name. Didn't bother me at first. Later, my laptop seemed to be heating up, and would see spikes in CPU ...
0
votes
1answer
67 views

How to name a process for command and kill it later by name?

I need to make a short aux bash script to clear the logcat buffer and output afterwards in a file (new process). The problem is that at every run I need to kill the previous process which dumps in ...
1
vote
1answer
35 views

Init process in linux

Who or Which process is the parent of INIT process? INIT is the first process which is initialized by the Kernel, kernel is not one process, So what is its parent process id value?
0
votes
0answers
29 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
0answers
59 views

User still logged in with active processes after disconnected via ssh timeout

I've noticed that when I am disconnected from an ssh session to my server do to inactivity, that my user is not logged out and active processes are still running. When logging back in, running the ...
0
votes
0answers
215 views

linux - kill -9 doesn't work on running process

I have apt-get process running on my server and I cannot kill it. root 26386 99.7 0.0 25588 2844 ? RN 06:52 956:49 apt-get -qq -y update I used kill 26386 first, then tried kill -9 ...
0
votes
0answers
67 views

nohup process commands to detect if process is still running and if not, re-run process in lamp stack

I am running nohup to keep a php script running in the background. Is there anyway to ensure the process keeps running? Is there a command that can check to see if the process is still running and if ...
0
votes
1answer
40 views

Extra low priority processes in linux?

On Linux processes have "nice" values ranging from -20 to 19. I wish I could assign even lower priority like 100 so that "background work" will yield as much as possible to other process but still ...
2
votes
1answer
104 views

Can a kernel that supports multi-core reduce cpu overhead, reduce cpu overheat

I found only a single core as identified by kernel from /proc/cpuinfo. Therefore I am installing a 686 pae kernel to identify all cores and get multi-core functionality. I read about how a process ...
0
votes
1answer
90 views

Find which processes are using the dedicated video card

I'm working on a simple Bumblebee GUI tool. One of its features is to show a list of processes which are currently using the dedicated video card. For now I list all of the running processes and check ...
0
votes
1answer
60 views

What happens on a force quit?

I was using Eclipse. It hanged after a while. When the force quit dialog came up, I pressed on force quit. Then, my Eclipse disappeared! I can't find any trace of it in my system. What happened? ...
0
votes
2answers
40 views

How do I get the number of processes that have been created since the last boot on a Linux machine

How do I get the number of processes that have been created since the last boot on a Linux machine? I want to get it from a C++ program. Which proc file stores it?
0
votes
1answer
40 views

What is xfce4-indicator doing with over 1GB of my RAM?

I noticed that xfce4-indicator is using up 24% of my RAM (I have 6GB). What's going on here? For comparison, Firefox is using up 18%, and I have a ton of tabs open.
0
votes
0answers
81 views

What can cause a sudden increase in the number of processes at my VPS?

My VPS (Ubuntu 12.04.3 LTS ) dies few times a month. Only restarting whole VPS through hosting panel helps. I discovered that the cause of that is a sudden increase of the number of processes. I've ...
1
vote
1answer
66 views

Can't kill firefox process

I have firefox that crashes every so often on my Ubuntu machine. I can't seem to kill the process when this happens. The process' name is /usr/lib/firefox/firefox I've tried: pkill -f firefox pkill ...
0
votes
3answers
192 views

How to run process in background with output in file after some foreground input/output actions on linux?

I start a process and interact with it (some input actions) in foreground, then it works for a long time, so I put it to bg and logout. I want to redirect error messages in text file, while process in ...
5
votes
1answer
167 views

How an unprivileged user could kill a process she didn't start?

I stumbled upon something very surprising which I cannot understand on a Red Hat EL 5.6 box : the user hri (which is in the group dba) is able to kill processes owned by user oracle (which is also in ...
0
votes
2answers
79 views

Is there a way to create a process which can be killed by anyone in Linux?

For example, I would like to start running a process in the background SECRETLY on a Ubuntu server , but whenever anybody except me logins to the server, the process must be killed by that user. Is it ...
0
votes
0answers
34 views

list all the information of a process under commandline in osx or linux

Is there any command to list all the information associated with a process, include all parameters in PS command, open files and ports and so on? Thanks!
1
vote
1answer
526 views

How to find out is a program run with nohup or not?

There is no difference in ps -ef | grep sleep output to commands: nohup sleep 60 & sleep 60 & In which way can I discover that program is run with nohup?
3
votes
1answer
583 views

What exactly determines if a backgrounded job is killed when the shell is exited, or killed?

This question has come up quite a lot (really a lot), but I'm finding the answers to be generally incomplete. The general question is "Why does/doesn't my job get killed when I exit/kill ssh?", and ...
0
votes
1answer
41 views

Disk writing percentage on linux

How can I get what process uses disk(hdd). In windows there is Disk tab in task manager. Don't pay attention to that arrow, I found a random image from the web. I really like htop but it does not ...
2
votes
1answer
313 views

Linux: Kill process on specific port

How to kill a process if its port is known? For example if a process is running at port 12345 then how it can be terminated in linux/ubuntu.
1
vote
1answer
395 views

Screen sessions getting killed but processes still live on and run

This is a weird situation I've run into. We have a test server off site (or off site from where I work). To access the server, I need to VPN into its network. I ran screen to execute a long running ...
0
votes
2answers
984 views

Bash processes - reattach process started in background

Is there a way to reattach to a specific terminal a process that was started from terminal with &? For instance, I started Kate by: kate & and now I want to reattach the process to a given ...
1
vote
3answers
222 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 ...
24
votes
3answers
22k 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
1answer
283 views

Linux command line: Kill vs Kill -9?

So I've set up some shell scripts to auto-deploy a fresh war file to a tomcat server. I call the shellscript to stop tomcat (shutdown.sh), and then I kill the catalina PID, however I've noticed that ...
2
votes
2answers
790 views

Why is it quicker to switch between threads than to switch between processes and share data between them?

Why is it quicker to switch between threads than to switch between processes and share data between them? For example, in the apache web server running on ubuntu can use either the Prefork MPM ...
0
votes
1answer
51 views

Python process has no traces after unix terminal session is closed or timed out

I have started a long running python script. It was supposed to be running for more than 4 hours. I have started the script in a background redirecting console output to some text file. I was ...
1
vote
1answer
188 views

How to kill screen session with running sudo command?

I'm trying to write a bash script which would relaunch my NodeJS server. This is how I'm launching the screen with the server: screen -S web-server -d -m node web-server.js which end up in this ...
0
votes
1answer
74 views

Find processes using a network device

How do I find which processes are using a given network interface at any given moment? I am using Fedora and Ubuntu.
0
votes
0answers
45 views

How to keep a completed process in memory?

I have a program that has a large startup delay. (it needs to load lots of data from hard drive). So, I call it from the command line and provide it the name of input file, it processes that and ...
1
vote
1answer
98 views

How can I reboot system using Upstart?

I'm using Upstart on Ubuntu 12.04 to control and monitor a service defined by me, where the service is a user process running as a daemon. I need to monitor it so, when it fails/crashes it respawns, ...
2
votes
1answer
308 views

Is it possible to kill a loop in bash without killing the instance of bash running the loop?

Suppose I execute (in an interactive bash shell) a loop that spawns a bunch of processes in sequence, such as the following. for i in `seq 15 42`; do if [ -f F$i.flv.mp3 ]; then play F$i.flv.mp3; fi; ...
0
votes
1answer
31 views

Linux command for creating/leaving/returning to shells

I was using a command a long time ago to manage my background processes and I can't remember wich one. I had to install it. I could create a shell and go into it Run a process Leave the shell with ...
0
votes
0answers
65 views

activity monitor - alert over an email when no activity detected (file changed or via http request)

Is there any reliable and configurable utility for linux severs that sends email notifications when no specified/configured/scripted activity is detected for a given period of time? I'm not looking ...
0
votes
0answers
101 views

Which processes were running yesterday?

We have a production machine that keeps crashing on regular basis. Our staging environments run fine, but when the application is deployed to production, the production machine crashes after two or ...
6
votes
1answer
2k views

What killed my process?

Been having a problem with application that keeps getting killed. This is running a RHEL5 server. We ran strace against the process and at the end of the trace file I get a bunch of +++ killed by ...
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 ...
-1
votes
2answers
142 views

How does ssh work on a processor? [closed]

If I am having many ssh instances running at once on a server to many client computers, then how are processor time and cores set up? For example, I have a 2 Core box with lubuntu running on it. How ...
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 ...