1
vote
2answers
248 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: ...
2
votes
1answer
463 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
192 views

How to start a watch process for a bash script that sends notifications? (ubuntu 13.04)

I have written a bash script that monitors the output of sensors and uses notify-send to alert me when my notebook is overheating. I start the script with watch -n 15 fullscriptname and also added ...
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 ...
0
votes
2answers
3k views

Lots of defunct sh zombie processes

I have A LOT of defunct 'sh' processes running. When I execute this command, to count them: ps -ax | grep sh | wc -l It says I've got 2655 at the moment. Do they use up any system resources? I ...
1
vote
2answers
819 views

Can I use the HDD LED or another LED to get process activity?

Can I get the status of a process by using the HDD and Power LEDs as indicators? I'd like to use the green power LED to tell me that a status is available, and the red LED to tell me that it isn't.
2
votes
1answer
932 views

Ubuntu detect memory leak

I run watch free and then observe a continuous memory used increment, about 100 every 2s. How can I know which process contribute to the used memory increment? top and pmap does not help. BTW, after ...
3
votes
1answer
779 views

How can I find out which process in Ubuntu is using maximum memory and CPU?

Once in a while my Ubuntu desktop becomes slow because of a particular process. How can I find out from the command line which process is consuming the maximum memory and CPU?
7
votes
2answers
6k views

Removing the avahi-daemon on Ubuntu

My Ubuntu server basically servers a Python Django site using Apache and Postgre. We SSH to it to configure some stuff from time to time but that's about it for the server. Since I'm trying to harden ...
0
votes
1answer
67 views

Getting files open in all gvims

On ubuntu, is it possible to get the full path to all files currently open in gvim? The results from ps are only a relative path from where gvim was started. My end goal is to generate a shell script ...
0
votes
2answers
213 views

Ubuntu maverick 10.10 fails to shutdown

Occasionally, perhaps after one or two days since the last reboot, I find that ubuntu (maverick 10.10) will not shutdown. Rather than kill the power, what is the recommended procedure to deal with ...
1
vote
1answer
423 views

open 2X separate gedit's in ubuntu?

I am wondering if there is a way to force gedit (the default text editor in Ubuntu) to open a separate window when opening a second text file, with another already open. The default behaviour is to ...
5
votes
1answer
10k views

gvfsd takes up too much memory

On my Ubuntu 8.10, gvfsd takes up 128.6MB memory. What is the process doing actually? Can I reduce the memory it takes?
3
votes
2answers
2k views

Automatically kill processes that over time uses 95%+ of resources? Ubuntu

I don't know about your computer but when mine is working properly no process is sucking 95%+ over time. I would like to have some failsafe that kills any processes behaving like that. This comes to ...
1
vote
5answers
233 views

Alternative of procman in linux

I want a program which gives all information relating to a currently running process. In Windows, there is procman . What's the alternative in LINUX? Do I have to use tools like strace, etc. ...
2
votes
3answers
2k views

setting up process profiles on ubuntu

I was wondering if it is possible to set up profiles for my ubuntu laptop such that: Disable apache/mysql/postgresql if running on batterymode Disable all processes that are attempting to connect to ...
3
votes
1answer
4k views

How do I stop Ubuntu from hanging due to processes going into 'disk sleep'?

I'm using Ubuntu 9.04 64 bit on an AMD. It regularly hangs for a few minutes at a time when some of the processes's CPU usage % goes into 'disk sleep'. During that time I can't start new programs and ...