General :: Kill All Programs On A Specific Display?

Jul 31, 2010

how to kill all Programs on a specific X display? In example, I need to kill all Programs on Display :1. How is this possible?

View 2 Replies


General :: Script To Kill Process With Specific Character

Feb 11, 2011

I have a command that outputs as follows:

# lostjobs
user1 12983 1 0 Feb04 ? 00:00:00 dbr UT:msmenu
user1 18253 1 0 Feb09 ? 00:00:00 dbr UT:msmenu


I know I can grab the ones with what I want to kill (which are the ones with question marks) with:

# lostjobs | grep ?

what I need to know is how can I loop through the results of the second one and kill them by id (the second column).

View 2 Replies View Related

General :: Finding A Cmd That Will Kill All Processes That Are Accessing A Specific Filename?

Dec 16, 2009

I thought 'killall' would work, but I need to provide the "command" to kill. I'm really looking for a command that will kill all processes that have a particular file/directory open. Currently, my script fails on an 'umount' because there are several processes that have this filesystem open. The command 'lsof' is a good tool to determine which processes have a filesystem open, but I don't really want to write a script that parses through the 'lsof' output to capture PSIDs. Is there a linux command that can kill all processes that may have a particular filesystem open?

View 2 Replies View Related

Programming :: Kill Pids For All Sessions For A Specific User Except Their Current One?

Oct 20, 2010

I have several users on handhelds and they like to let their sessions time out. Their zombie processes then cause record locks.I've come up with calls for killing the pids for any prior sessions started by a given user. This procedure would be executed in the .bash_profile.

View 3 Replies View Related

General :: Display Specific Block Of Contents Or Lines In Output?

Apr 23, 2010

Consider a situation in which you want to display only specific lines of contents from a file or of a command's output. Yes, we have head and tail commands. But, how to view all the lines of a file except the last one or vise versa when we don't know the count of lines in advance?

Consider this output:


[root@localhost ~]# ps au | grep bash
root 6316 0.0 0.0 4672 1440 tty1 Ss+ Apr22 0:02 -bash
root 20847 0.2 0.0 4672 1432 pts/0 Ss Apr23 0:12 -bash
root 21167 0.0 0.0 3920 660 pts/0 S+ 01:00 0:00 grep bash

Here, I don't want the last line (in italic) to be included in the result since the last line is due to "grep bash" in the devised command "ps au | grep bash". Well, we can rewrite the devised command:


"ps au | grep bash | head -n 2"

But, again, here we are specifying the count of lines to be included. But, in the presented problem we don't know any count in advance!

View 6 Replies View Related

Ubuntu :: Set Certain TTY's To Show Specific Programs Upon Login?

Jul 7, 2010

Can anyone imagine a way to set certain TTY's to show specific programs upon login?

If I were to log in under my normal account, it'd be cool if I could set one up to load top upon authentication, maybe watch tail /var/log/syslog on another, and so on.

I know they require authentication, but would there be a way to say on startup if isTTY and TTYnum=y and if user=x execute script z?

View 1 Replies View Related

Ubuntu :: Specific Location For Installed Programs?

Jan 9, 2011

Yesterday, I downloaded qt and gcc by using "synaptic package manager" tool.Where does those programs intstalled?Well, in windows the programs are installed in c:Program Files folder. Similarly, is there a specific folder that the newly installed programs are placed?

View 4 Replies View Related

Ubuntu :: Find Programs Installed On Specific Date

Sep 4, 2010

Is it possible to find programs that were installed on a specific date or within a specific date range? If so, how?

View 6 Replies View Related

Ubuntu :: Launch Some Programs At The Boot (in Specific Places)

Nov 11, 2010

My wish is to launch some programs (chromium, pidgin and xchat on the first virtual desktop and the terminal, the file manager and geany on the second one). I also wish them to have the same size and place than they've had the last time I used them (just to keep them always at the same place). My researches haven't been successful for the moment cause the only idea I found was lxsession-edit which doesn't do exactly what I want..

View 5 Replies View Related

Ubuntu :: Opening Many Programs And Placing Them In Specific Monitors / Workspaces?

Jun 16, 2011

I am fairly new to Ubuntu and was wondering if anybody knows of a way to open up a number of programs and placing them in specific spots programmatically. Basically, I'm trying to avoid having to open my IDE, multiple terminal windows, browsers, etc... and then having to place them all in the exact position I want when my machine boots up. Ideally, I could say:Program A, is placed on Monitor 1, workspace 1, at position 0, 0, with height and width 600 x 400. Program B, is placed on Monitor 2, workspace 2, at position 600, 500, with height and width 1000 x 600

View 1 Replies View Related

Ubuntu Multimedia :: Install A Specific Display Driver?

Oct 21, 2010

I am running an ubuntu 10.10 with an Intel i3 on a Gigabyte motherboard. I use it mainly as an HTPC, so it is connected (via HDMI) to a Samsung LCD TV (LA40A450C1V).
Do I need to install a specific display driver? if so - how do i do that?

View 7 Replies View Related

Ubuntu :: Keyboard Shortcut For Moving A Window To A Specific Display

Feb 23, 2010

I noticed that while Compiz has every keyboard shortcut imaginable for moving windows between desktops, there's no shortcut for moving a window to a specific display when using dual monitors.

So far, I've found the best method is to use the command line automation tool: xdotool - [url]

Here's what I did:Test out the xdotool in a new terminal window using this command

This should move your terminal window 100 pixels in from the top left of the leftmost display.

Find out the top-left coordinates of your rightmost display by using the Nvidia X Server Settings tool in Main menu > Administration or via the terminal:


Go to X Server Display Configuration and click the rightmost Display in the layout section. Its position offset should be displayed in the position field. Make a note of these two numbers.

Create a script to move your window, either to the leftmost screen or the rightmost screen, using this code or similar:


Remember, the number at the end is an argument that denotes the display (1 for left, 2 for right). Assign a keyboard shortcut to your custom shortcut. Repeat for the right display. Now when you press the keyboard shortcut, the active window should be moved to either the left or right display!

View 9 Replies View Related

Ubuntu :: Kill Doesn't Kill, Killall Is Powerless?

Oct 21, 2010

Today I run extensions update and it freezed fter showing me that everything was successful.When i xkilled it it refused tolaunch without any problem indication.killall soffice.bin didn't report "No process found" after 1,2,3...20 times.So I tried killall soffice.bin -i

$ sudo killall soffice.bin -i
Kill soffice.bin(3319) ? (y/N) y


View 1 Replies View Related

General :: Change A Specific Characters To Capital In A Specific Text?

Dec 2, 2010

for example

else {
for fileDOC in $location/*.doc


View 12 Replies View Related

Ubuntu :: Does'nt Display The Programs Or Folders Open On The System?

May 12, 2010

i'm having a problem with my bottom panel, after changing from ubuntu 9.10 to ubuntu lucid lynx it does'nt display the programs or folders open on the system

View 1 Replies View Related

Ubuntu :: After Hibernating Fonts Display Weird In Kde And Gnome Programs?

Aug 16, 2011

When I return to my plasma desktop from hibernating, the font display is broken - kind of stripes It affects all kde and gnome programs, and all window decorations, but f.e. chrome displays the webpages well.What could cause this, and how can I fix it? My system is a dell inspiron 1525 with intel 965gm graphics card running kubuntu 11.04 with no kde ppas enabled.

View 1 Replies View Related

Software :: Unable To Kill Process With Kill -9

Jan 13, 2011

the process is mcelog. When I do as root kill -9 2323 which is pid of mcelog the process is not killed. I tried doing the same from top, press K and enter pid of mcelog. doing ps auwx | grep mcelog I see there are several results. I tried killing all of them like kill -9 2355 2341 3425 2345. But re-running the above commands still shows them as running. How else would I troubleshoot this to avoid restarting of the box.

View 5 Replies View Related

Debian Configuration :: Enable 3d Acceleration - Display / Screen Deformation When Using Some Programs

Jun 7, 2010

I installed new ati radeon drivers in the morning because i was getting display/screen deformation when using some programs (like vertical lines and so on). Now everything is just fine but i can't get 3d accelerator to work and due to this some games are running very slow. I am a new linux user. I have done everything i know and searched this from the internet but i can't get 3d acc. to work again. i have installed new drivers over the old ones (or i don't know; mesa?)


View 4 Replies View Related

General :: Run A Program For A Specific Amount Of Time Starting At A Specific Time?

May 18, 2010

I want to record an internet radio station starting at 2:00am tomorrow morning. The specific program on the radio station lasts until 6:00am. The command I need to run to record the station is: Code:mplayer -ao pcm:file=indie_heat_of_the_night.wav -vc dummy -vo nullI'd use cron, but 1. I'm not sure how to and 2. it seems unnecessarily complicated for something that I only want to run once. If cron is the only/easiest solution, I guess I'll just have to resort to that, but I'd rather not.

View 12 Replies View Related

General :: What Is The Meaning Of Kill %1

Jul 30, 2011

I have seen the following command:

$ kill %1

What is the usage of this statement?

View 2 Replies View Related

General :: How To Kill The Grub2

Sep 24, 2010

How to kill grub2? Even with a 20 second hard-drive delay grub2 throws a error: no such partition and will not boot to a floppy. I know there is no partition I deleted all and started over. How do I kill grub so I can install fresh? I can boot to a thumb drive with gpart how do I clear the partition table and bootstrap?

View 7 Replies View Related

General :: Using The Kill Command In Ssh?

Feb 18, 2010

use kill command in ssh? some of my friends are always disturbing me while i'm programing using ssh...

View 1 Replies View Related

General :: Know Which Display Number For The Variable DISPLAY To Be Exported When Ssh To Server?

Dec 26, 2010

When i ssh to server using -X, i always confuse about which display number i should export. It seems to me sometimes the display number has been used by something, so what i can do is only

export DISPLAY=localhost:0 && xclock
export DISPLAY=localhost:1 && xclock
export DISPLAY=localhost:2 && xclock


View 1 Replies View Related

General :: Kill The Process In Different Group But Not One-by-one?

Apr 5, 2010

Can we just put all the processes in one group and kill that group? Is there any other way to do this?

View 3 Replies View Related

General :: How To Kill A Process With Name Having Spaces

Dec 10, 2010

A process with name=example can be killed by killall -9 example

How to kill multiple instances of following command which contain spaces?

"valgrind --tool=lackey ./testcases/kernel/syscalls/waitpid/waitpid03"

Following command returns valgrind --tool=lackey ./testcases/kernel/syscalls/waitpid/waitpid03: No such file or directory

View 3 Replies View Related

General :: What To Do When Ctrl-c Can't Kill Process?

Feb 9, 2011

Ctrl-c doesn't always work to kill the current process (for instance, if that process is busy in certain network operations). In that case, you just see "^C" by your cursor, and can't do much else.What's the easiest way to force that process to die now without losing my terminal?

Summary of answers below:Usually, you can Ctrl-z to put the process to sleep, and then do "kill -9 process-pid", where you find the process's pid with 'ps' and other tools.On Bash (and possibly other shells) you can do "kill -9 %1" (or '%N' in general) which is easier. If Ctrl-z doesn't work, you'll have to open another terminal and kill from there.

View 6 Replies View Related

General :: How To Kill Same Group Process

Feb 18, 2011

How to kill a process initiated by another user, who is in same group as me?

View 1 Replies View Related

General :: Get It To Kill FreeBSD Install?

Aug 22, 2010

This is a humbling experience for a long time MS admin/tech.I am wanting to build a file server fr my home network. So, I downloaded and installed FreeBSD 8.1 last night.Wanting a more familiar interface, I downloaded and tried to install KDE. It loads and asks for language. Then I select "Install kubuntu".

The kubuntu logo and a progress meter pop up for a while. Eventually the screen goes black and nothing else happens. I have to reboot. If I take the CD out it boots to FreeBSD.Am I missing something? Kubuntu never asks anything regarding partitioning. Is FreeBSD an os like DOS and kubuntu a GUI like Win 3.1 or is kubuntu more like XP with a GUI built in to the os? If it is the latter, how do I get it to kill the FreeBSD install?"Try kubuntu without installing" does the same thing.

View 3 Replies View Related

General :: Cannot Kill Mbusd Process And Cannot Run It Again

Oct 30, 2010

I have a big problem with one of my processes named "mbusd" ;it is an opensource modbus RTU/TCP gateway when I plug USB to serial convertor to it my laptop without this process linux makes virtual ttyUSB very fine and when I unplug it it removes except some times (SOME TIMES not all the times) that I run mbusd process to work with, at that time during mbusd process work when I unplug USB/serial converter the virtual ttyUSB does not disappear and mbusd does not exit too and it turnes in something like this when I get ps -aux: mbusd [defunc] at this time I can not even kill it with -9 or -15 signals and pluging back the converter does not solve the problem too and mbusd does not exit or start to run again.

View 3 Replies View Related

General :: Cleaning Up Kill Command?

Jul 19, 2011

Using Ubuntu 11.04. I use this command to kill frozen Flash processes ...

pgrep -P1 -f 'npviewer.bin' | xargs kill -9
IF there are no hung processes, I get the error ...
kill pid ... Send SIGTERM to every process listed.


View 4 Replies View Related

Copyrights 2005-15, All rights reserved