Ubuntu :: Send Process To Working Backgroud For CTRL+Z Processes?
May 18, 2010
I would like to set process in background in such a way that it will be running.For example, I started vim editor and pressed CTRL+Z command to put the process in background. But this process is in stopped status, which I can check with 'jobs' command.Is there any way that stopped job can be put into running background process?
View 1 Replies
ADVERTISEMENT
Dec 5, 2010
I'm trying to write a init.d script to daemonise a sagemath notebook server. Here's what I've done so far, I've copied /etc/init.d/single for the structure, and tried to use dtach to provide a handle to access the process. However, my main problem is issuing the signals to kill the process (Ctrl-C) from a bash script and exit dtach (Ctrl-`)
[Code]...
View 1 Replies
View Related
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
Sep 14, 2010
I have to monitor the %MEM that processes are using, so I use the ps and sort command like this ....
ps -aux | sort -nk4
So this will sort by column 4 so I can see the all the processes that are using the highest %MEM. What I really want is to be able to just display the process name and the %MEM next to it. how to do this?
View 2 Replies
View Related
Oct 24, 2009
Optimum number of processes for procesor In Linux based os are there a optimum number of process for a processor that gives 'maximum performance' for system(or process range depend on cpu speed,cache etc...)? By 'maximum performance' I mean better performance?
View 5 Replies
View Related
Jun 3, 2011
How do you list processes, get a process's std(in|out|err) stream, or wait until a process is finished in C?
View 3 Replies
View Related
Aug 18, 2009
I have p1,p2,p3,p4 some processes created by me in C. p1, p2, p3 are started individually from several consoles. And I want process p4 to terminates processes p1, p2, p3 if they are running. Which is the easiest way to accomplish that? put all processes in the same process group and send from p4 a kill signal to the group. But I couldn't do that because I cannot call successfully setpgid(getpid(), 15000) from p1-p4. It's there some way to put them in the same group? the processes don't have a child-parent relationship, they are launched manually from consoles.
View 1 Replies
View Related
Nov 2, 2010
I would like to give a non-root user (nicollet) the ability to detect and send a signal to processes started by Apache2 (those processes are FastCGI scripts and the signal tells them to empty their cache). The processes are owned by the web user (www-data), and I'm running on Debian unstable.
I can't find any way to have the nicollet user see those processes.
The processes are running and can see by both root and www-data:
root@linux-01:~# ps -Af | grep baryton
www-data 17649 17648 0 10:27 ? 00:00:00 baryton
www-data 28145 1 0 Nov01 ? 00:00:12 baryton --bot
root 18701 18700 0 10:46 pts/0 00:00:00 grep baryton
root@linux-01:~#
[Code]....
The most surprising is that the grep process is indeed run by www-data (because it's started from a setuid executable) and is visible, but the baryton process isn't.
What's going on here? Why can ps run by www-data show those processes, but ps run by a setuid executable running as www-data cannot, when it's started by nicollet?
View 1 Replies
View Related
Apr 1, 2011
I write a script to read a file which is something like a pipe (or) queue , which shows the running status.In normal case, if i open this file with cat command, i have to use ctrl+c to exit this . What command shall i use to do the same inside a shell script ? I have tried ^C in my script , but it does not exit the process.
View 6 Replies
View Related
Jun 18, 2010
How to tell the kill command to ignore processes if that process is not alive?
For example: 3453 is an alive process but 44534 is not.
kill -9 3453 44534
View 4 Replies
View Related
May 30, 2009
I just installed ushare on Fedora 10 (yum install ushare is all it took to do), and followed the guidance then to configure sharing for an Xbox 360, [URL] the code below. Notice the last line...due to stopping process in the terminal via Ctrl+C. It appears to me, based on this ending UPNP sharing, that the first line will need to be run each time want to turn on sharing, right? I thought this would simply configure ushare sharing one time, and possibly intiate some sort of file sharing service on each boot, but this appears not to be the case. If I am right, does anyone know how I can develop a script to run at boot to allow ushare to open sharing and keep it open?
[Code]....
View 3 Replies
View Related
Jan 5, 2010
I have 3 layouts: USA, Russian and Hebrew. In Hebrew the W key is mapped to apostrophe, so Ctrl+W in Hebrew layout doesn't close tabs in Firefox. There is no workaround for it as I see by now, so I am trying to get it work this way:I want to map Ctrl+W in Hebrew layout(which is actually a Ctrl+') to be a Ctrl+w. Here is what I got from xmodmap:Code:$ xmodmap -pke | grep 25keycode 25 = w W Cyrillic_tse Cyrillic_TSE apostrophe WAs you can see, there are pairs for each layout, each pair tells what happens without and with the Shift key pressed.
View 2 Replies
View Related
Jul 22, 2010
I am facing an issue where the process starts hanging. When I closely look at the logs I come to know that some of the child processes that are forked by the parent process are not finished.
1) Is it possible that the child processes that are not finished occupy the socket memory of the parent process and ultimately a point is reached where no socket memory is available to fork new child processes.
2) What is the standard limit of socket memory in linux?
3) What is the fate of such child processes (as I have mentioned above)?
4) How to debug such cases so that the exact problematic area is identified?
View 2 Replies
View Related
Feb 15, 2011
well i have just started with shell scripting...how to find all child processes of a parent process given to script as argument.
View 10 Replies
View Related
Dec 27, 2010
I am doing a project on rdesktop. My aim is to setup a write/copy protected session. I have made rdesktop connection between two Linux machines using Xrdp.Next I want to disable the ctrl+x,ctrl+v keys and the cut and copy option in mouse right click at client side
View 1 Replies
View Related
Aug 19, 2009
i am using gcc 4.3i need to recognize ctrl+c,ctrl+l,ctrl+d in my C program without terminating the program when i get a ctrl+c...
View 1 Replies
View Related
Jun 4, 2010
Today I did a fresh installation of Ubuntu 10.04 server (64bit) on my machine and found that CTRL-c (i.e., control key plus c) does not work in emacs 23.1 (from emacs23 package), which means I cannot quit the emacs by "CTRL-x CTRL-c" any longer.
Whenever I type CTRL-C, the emacs says "<cancel> is undefined". The "describe key (i.e., CTRL-h k)" command for CTRL-c leaves the following message in the message buffer: "<cancel> (translated from C-c) is undefined".
Until 9.10, I have never had such problems and wonder whether this has been introduced by 10.04.
In fact, I found that the behavior of CTRL-c has been slightly changed in a terminal (e.g., putty session) as well, and googling gives the following: [URL]
But I'm not sure the above has something to do with the said issue with emacs.
View 1 Replies
View Related
Aug 12, 2010
For some strange reason I am not able to highlight/select words using Ctrl , Shift and the arrow keys together. Each of them work individually with the arrow keys but. Is there anyway I can find out if I have assigned a shortcut to that particular combination ? (Nothing is listed in keyboard shortcuts)
View 2 Replies
View Related
Oct 14, 2010
I have been using Ubuntu for many years now and pressing ctrl + alt + d used to minimize all windows and show the desktop, but this stopped working with 10.10. I checked keyboard shortcuts but don't see a way to turn it back on there.
View 3 Replies
View Related
Feb 18, 2010
I have been tasked with sending a kill -s SIGHUP (a reload) to a Daemon process owned by root running on a centOS 5.4 machine.
Obviously, Apache cannot normally do this, so I'm going to have to use the sudoers file.
My problem is, how do I allow the Apache user to only run the kill command? nothing else.
in testing, I've gotten Apache to basically run every command prefixed with sudo and no password prompting. But I want the added security to only run the kill command without the password being prompted everything else should prompt for a password.
I'm trying to understand the sudoers file, and i must say, its non-trivial.
is there a simple 1 line I can put in the sudoers file like
PHP Code:
apache ALL=(ALL) NOPASSWD: /bin/kill
View 6 Replies
View Related
Jun 9, 2011
I'm building a Linux From Scratch system and partially automating it. I will likely want to do it again, and I would like to try to almost completely automate it.
My current approach is a script that takes an input file and sequentially runs each line in a new instance of bash. If one fails, it gives me the number of the step that failed so that I can use the "--step" option to resume after I fixed the issue.
This has some problems:
A varible created on one line will not be accessible on the next line. This is because each line is run in a separate shell (the reason for this is so that the commands in the input file and the script's internal variables can't interfere). You can't switch users or use chroot, again because each line is run in a separate shell.
What would be nice is to be able to start a bash process in the background and send commands to its stdin. I guess that a named pipe would work, but the named pipe will be gone after a chroot. Is there a way to do it without relying on the filesystem? Also, how do I know if the command failed?
View 14 Replies
View Related
Sep 5, 2010
I can not copy/paste ctrl+C or ctrl+p from one folder to another with the mouse. i was trying to move an item to another folder.
I looked in the keyboard short cut and it was not there. i tried to add it and it put it in custom as disabled and I could not enable it.
View 2 Replies
View Related
May 1, 2011
Long story short, my HTPC has a keyboard, but no mouse.I'd gotten pretty good at working the machine with no mouse, but after my upgrade to Natty Narwhal today, the Ctrl+Esc shortcut to open the Applications window no longer works. Alt+F2 only works when another application is already open.I can get to the Applications menu using Ctrl+Alt+NumLock and mouse emulation, but it's pretty painful.Have I messed something up here? My install went a little messy, but I've managed to get everything else working and I doubt a keyboard control would be a bad install/upgrade.
View 2 Replies
View Related
Mar 12, 2010
Right Ctrl has traditionally been the key used to un-grab the keyboard/mouse in VirtualBox. I've never had a problem with it before, but on my laptop it doesn't work. When I press the key, I get this xev output code...
So, I am pretty confident that the key itself is functional. However, it doesn't seem to do anything in applications. For example, keyboard shortcuts in Kate (such as Ctrl+a to select all) do not work with the right Ctrl key.
View 4 Replies
View Related
Aug 1, 2009
On fedora 10 and backwards you could use Ctrl+ALT+Backspace to restart X, this was massively useful in resolving any issues with hanging x processes and so forth... without losing session data.... it seems to not work in fedora 11...
View 1 Replies
View Related
Apr 5, 2011
Holding CTRL and B followed by another command key usually gives me nothing.I have no .conf file so I'm not overwriting it.
View 1 Replies
View Related
Nov 11, 2010
I just installed Ubuntu 10.10 x64 and already am really annoyed by Firefox, which freezes my mouse after changing a tab (with ctrl+tab, alt+#) or closing it (ctrl+w). After about one second, i can continue working as usual. Changing Tabs by just clicking on one does not freeze anything...Maybe some of you would think now if I am crazy because of complaining about such a little thing, but it is really annoying if you are used to work fluently with ff.Edit:I today noticed, that not only shortcuts in firefox, but all Hotkeys freeze my mouse for a second. For examle ctrl+c, ctrl+v, super+e or anything else.Do you have any Idea what causes this behaviour? Reinstalling ubuntu didn't change anything
View 4 Replies
View Related
May 26, 2011
I don't know why but show Desktop Ctrl-Alt-D suddenly stopped working for Firefox only (in all workspaces).
Any ideas what might have caused this? Any work-arounds? (apart from Ctrl-Alt-(arrow) / switching to a different workspace - which is a fair workaround)
View 1 Replies
View Related
Nov 28, 2010
" Mark the start of the text with "v", "V" or CTRL-V. The character under the cursor will be used as the start.""With CTRL-V (blockwise Visual mode) the highlighted text will be a rectanglebetween start position and the cursor."I can mark the start with "v" or "V".But it doesn't work when I push ctrl+V.
View 14 Replies
View Related
Oct 3, 2010
anyone has a clue why 'ctrl+a, k' nor 'ctrl+a, :kill' doesn't work for killing one of screen windows? Other screen's commands invoked with 'ctrl+a'seem to work.
View 3 Replies
View Related