General :: Close All Background Processes In Unix?
Jan 4, 2011
I have something like:cd project && python manage.py runserver &cd utilities && ./coffee_auto_compiler.pyAnd I want both of them to close on Ctrl-C (or some other command). How can I accomplish that?EDIT:I tried using jobs -x kill and kill `jobs -p `, but it doesn't seem to kill what I need. Here is what I mean:oon 8119 0.0 0.0 7556 3008 pts/0 S 13:17 0:00 /bin/bashmoon 8120 6.8 0.4 24568 18928 pts/0 S 13:17 0:00 python manage.py runserverjobs -p give me just process 8119, but I also need to close 8120, since it's the thing that the first command opened.If it helps, the commands are actually in a Makefile, and I want it to run two daemons at the same time (and somehow close them at the same time).
Using h allow me to hide the table header. Is there a way to tell ps to not print the pts/13 S+ 0:10 cmd part in order to get a list of children process ids separated by carriage return?
I'm trying to get the end result to have the same format as this as well:
1 bin 2 daemon 67 erozner
[code]....
Where the numbers are the number of processes being run by the user (the name right next to it).if I input the command egrep myFile into the terminal, it should look for every line with the letter x in myFile, right?
i am using ubuntu 10.4, i have attachedd my desktop screenshot , my problem is that i use no software that uses network but still OS uploads data from my pc, is it something to worry about my network security ? and is any way to check which file is using network and how much it is using. [URL]...
I have two queries,when am using skype e.g and I close it,it remains running in the background however I cant maximise it again.(have to kill it and then start it again).ALT+ TAB brings the other processes but not skype.It's still running and I can see notifications.2.In firefox,when am scrolling down a page,the text gets mingled into each other,i have tried to edit options in firefox (autoscrolling and smooth scrolling) but no positive change.
Using Ubuntu server 10.04.2 64-bit all up to date.
I am running multi-threaded processes. These use OpenMP in my own code and the multi-threaded ACML maths library. When run in the foreground, everything is fine i.e. if I have set
export OMP_NUM_THREADS=8
then when I start all 8 cores are in use and things whizz along. However, when running overnight and logged out using e.g. 'at now + 1 minute' then the command, I am only getting about 130% CPU and it slows down accordingly. I have tried renice'ing and calling from within a bash script in case sh is doing something odd but nothing seems to solve it. I am sure that in the recent past this wasn't the case.
The libraries being used are shared versions in case that might have any bearing.
Anyone know why each time I boot up the machine the cube background image goes away and the background colour is left. This image i am placing is in Apparency/Skydome
i have been using samba to gain access into windows computer through my pc which has fedora 8 ..can i access the unix machine from another unix machine? is yes then what is the procedures ?
I tried to run % mvdir earlier and it said command not found. I then ran a search for it and still not found.Is there a place I can download the script for the command, and is there any information I should know post-download to get it to work?
I wonder if the unix commands (cp, mv, grep, args etc) are the same for Mac and Ubuntu. Do they have the same parameter lists and so on or do they try to stay the same but are slightly different?
What Linux or Unix version underlies Mac OS, OS X 10.6? Is there a good documentation for that version, specifically regarding security, networks and similar topics?
I want to code some simple personal projects on the Unix-like partition while doing everything else on my XP partition. Can someone recommend the solution that takes up the smallest footprint in size and processing power that still delivers value? I want to learn how to code in a Unix environment.
I'm trying Cygwin but my first impression is its a bit clumsy. Would a dual boot with BeOS be better? And how would I do it? EDIT: I need to be able to run both OS'es at the same time. This is very important for me. my laptop is pretty crappy and that's why I ask for something that has a low CPU/RAM footprint.
I have an NCR UNIX hard disk I need to mount it on a Linux box The FS Type in fdisk on linux is '63' for the partition How can i mount on my linux box ? what is kernel module i needed ?
I have Solaris at my workplace. Currently Esm was configured.It's listing conflicting configurations against policy standards. Few of them are like usrid's/guid's of users are below 100 so I am planning to change it above 100. For eg. I have ops id for an operations team.If I change uid and group id of this particular user/group, do I have to just find files of that particular users/groups ownership and change it accordingly.Or else something elese I have to do. Will it affect any running applications owned by user/group whose ID I am going to change. Also there are few ids owned by applications whose secondary gid is 0, how do I proceed with those, as its very risky to change in prod environment.
i am now running Slitaz 2.0 and i would like to know how to run windows applications on my system. My OS didnt come with this wine ive been hearing about so i dont know what do do.
Whenever i want to start tomcat server I need to go totomcatdir>inand execute startup.sh file.How would i make this happen whenever i start my machine?Also want to know How would i set the variable at startup.
I had this error when installing and running a vncserver before, which I have now removed. However, the xterm's seem to remain in the system and are regenerating themselves. Should the pid IDs stay the same each time I run this?