0
votes
1answer
13 views

linux reverse engineer to find process source

A compromised wordpress site has started several processes that run as the apache user. I can find these processes by running ps and greping for the apache user. Then I take one of the process IDs and ...
0
votes
0answers
13 views

How can I monitor every newly created process of an entire Linux system?

I am on a gentoo Linux system and I want to monitor the time and name of every created and deleted process on an entire Linux system. How can I do that? If possible, I do not want to install new ...
0
votes
0answers
7 views

Start a service from inside a service and export command

I am making a service call from another service and trying to export a variable to the new service. I am not quite sure if the new service to start is a child of the former service. I read that export ...
2
votes
1answer
35 views

How can a process in “interruptible sleep” state use 100% CPU?

According to this reference, a process has the following states R running or runnable (on run queue) D uninterruptible sleep (usually IO) S interruptible sleep (waiting for an event to complete) Z ...
1
vote
0answers
20 views

Semaphores leftovers on linux machine

While managing large Linux servers environment I see sometimes machines reaching their IPC limits, more specifically, semaphores leftovers: Linux #ipcs -u | grep -B2 sema ------ Semaphore Status ...
0
votes
1answer
18 views

USER field in ps command(android env)

In android environment, What does USER in the ps command indicate? ps USER PID PPID VSIZE RSS WCHAN PC NAME root 1 0 748 608 c0267708 0001b95c S /init Here ...
0
votes
0answers
9 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
34 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
53 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
30 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
55 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
101 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 ...
1
vote
2answers
214 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
87 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
83 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
39 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
32 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
47 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
70 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
354 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
83 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
43 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
126 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
116 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
63 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
44 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
99 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
81 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
223 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
175 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
82 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
35 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
676 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
677 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
431 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
442 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
1k 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
260 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 ...
28
votes
3answers
28k 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
313 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
903 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
55 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
195 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
75 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
105 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
323 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
32 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 ...