Ubuntu :: Closing Terminal Kills The Process It Opened
Feb 21, 2011if i start an application using the terminal.. it gets closed if i close the terminal.. how can i not let this happen?
View 4 Repliesif i start an application using the terminal.. it gets closed if i close the terminal.. how can i not let this happen?
View 4 Repliesone tell me the internal working of kill command. that is how it kills a process internally or from where it picks file to continue its process.
View 3 Replies View Relatedim a having a problem whit the terminal on my CentOS 5.3.After i installed the kernel-xen and activate it at:/boot/grub/grub.conf.I tried to start a terminal from my root gnome sesion and it shows this error:There was an error creating the child process for this terminal.I know swithcing the kernel made the problem because when i use the old kernel the terminal works fine.and even when i tried to connect to my Centos server via ssh it shows an error after asking for password:Server refused to allocate pty.
View 9 Replies View RelatedI downloaded Ubuntu 10.10 and made created a DVD. When I started installing it, I'm not able to do it. I think its hanging. This is what happening: First I found a screen saying 'ubuntu 10.10' and it loaded for some time then I got a screen with a black color task bar at the top of the screen, then after some time it turned into white color and after some time it disappeared. Nothing else happened. I didn't find any pop-up window to start installation of OS..
But when I tried this in my friends house, I found that instead of 'ubuntu 10.10' there came 'Ubuntu' LOGO and it was little bit slow but a pop-up window opened to start installation..
Why its not coming in my PC..
my computer configuration :
Windows XP, SP 2
256 MB RAM, 1.81 Ghz
AMD 64 Athlon Processor 1800+
I want to shift my OS to Ubuntu completely.
$ cat important_file > /dev/null &
[1] 9711
$ rm important_file
[code]....
I am using putty to interact with Linux server. I have started a process using putty.
The process is running and will take 5-6 hours. I want that process to keep running after I close the putty session. How can I keep that process alive after closing the putty session? I do not want to keep the computer ON all the time. Is there any way to do this?.
I am using pine as email client for a while, and I noticed that if I got a new email, all terminal opened will show a notification if you type any command.
I just wondering is there any tool/command I can customize my own notification like this and work combine with crontab?
I search google for a little bit, no useful clue so far?
I have installed guake recently. The problem I am facing is its presence in all workspace.Is there any way to modify this behavior and show the guake terminal only in the workspace it opened first?
View 1 Replies View Related[using Ubuntu 10.04 - Gnome] I know this is probably a dumb question, but after few years of not using linux i'm back to it and trying to catch up what i already forgot... i'm trying to make a shell script were when all the commands end or when i interrupt it (using ctrl+c) it wont close my terminal window.
i made a test scrip like this:
#!/bin/sh
echo hi there
and created a launcher by right clicking create launcher, selected console application, naming it and putting in the command field: sh "<path to file>/test.sh". (without sh at start it wont work)
so how can i avoid shell window closing after running/terminating the script? and is there any way i can do this by doing something like right click>add new link... i think that in kde it works like that...
I wrote this little function that I use from my '~/.bashrc' (from a script I also made, with help) to run a program on a timer, however there is one small issue I'm having.
Code:
##### Run program on a timer
# Usage: program-timer <program> <runlength (in secs)>
function program-timer()
{
$1 &
mypid=`eval ps ax|grep "$1"|grep -iv "grep"| awk '{print $1}'`
[Code]...
Basically, it works just fine, but the issue I'd love to get help with is when the timer runs out, it doesn't shutdown the program. That is, not until I close gnome-terminal. I've tried 'exit' in several places, but it doesn't seem to close it.
Now, the above script does what I want, but using 'killall gnome-terminal' not only closes the gnome-terminal window I am running the function on, but ALL gnome-terminal windows I may have open.
Does anybody see a simple way to fix my small dilemma, to have it close only the gnome-terminal window I'm running the function on?
I've made custom launchers for programs that can only run in terminal. They open fine within the Terminal window, but it closes right after the program is finished, before I can read the report.
Is there a way to keep the Terminal window open, using launchers? I don't want to manually type the commands after opening a Terminal.
Is there a way to send a terminal command to an already opened xterm terminal
View 4 Replies View RelatedRunning Gnome on Jessie. Have had Gnome hang a few times over the past few months. The hangs seem to be related to having open and / or closing a root terminal. It has happened on a Gateway AMD Phenom II tower and on my Gateway NV59 lappy with Pentium P6200.
View 7 Replies View RelatedWhen closing the gnome-terminal a dialogue box opens that says:
Close This Window?
There is a process still running in this terminal.
Closing this terminal will kill it.
Nothing is running it's complete, so I have to close the box then the terminal closes. I know I'm a perfectionist. how to get rid of this?
There were a ssh session, but client side crashed and after reconnect, here is still pseudo terminal and process attached to it. Is there any way how to reattach the pts or reattach process to another terminal? (Please ignore screen or another terminal multiplexer, as long as I'm just curios if there is any solution of this situation, cause I use screen).
View 8 Replies View RelatedI am running Ubuntu 10.10, and I am trying to run a java process in the background of a terminal, so I can continue to use that terminal.
Other applications will run in the background just fine, but when I run my java application, I cannot change the status of the process from "Stopped" after suspending it.
Here is my command syntax, along with some commands I have tried and their outputs:
There were [1]- entries, but I removed them for simplicity.
I want to run programs from Terminal as a separate process, so that for example gedit file
will launch gedit and return to the terminal prompt (so no need to open up another terminal).
If a process becomes unresponsive in WINDOWS then we press "alt+ctrl+del" to invoke the task manager & then terminate the process.Is there any similar way to invoke the Linux Terminal so that we can end a process by the 'kill' command when it becomes unresponsive?
View 2 Replies View RelatedI get the error
Code:
there was an error creating the child process of this terminal
When I run this code:
Code:
gnome-terminal --window-with-profile=Scripts
how to start a process in Ubuntu terminal window that is not killed when the terminal window closes.
View 9 Replies View RelatedI'm running a process on my university's supercomputer that takes several hours to run every time. Is there a command I can use to exit my ssh session without killing the process I'm running?
View 1 Replies View RelatedThere is text based game in the Ubuntu repos called gomoku (just 5 in a row) it comes with the package bsdgames. The manual page [URL] lists an option (-b) to run it in the background. I want to try that and if I know how it works create a simple graphical front-end. When I start the program with:
Code:
gomoku -b
it starts and remains active, the terminal does not return to prompt which is OK as the command is not finished. The manual says the program reads from stdin, and this might sound stupid but how to get anything there?
I've tried to pipe an echo command to gomoku which works but ends the program after is receives input.
Code:
echo "black" | gomoku -b
just finishes. After that when you type another command like:
Code:
echo "justsometext" | gomoku -b
gomoku tells it expects either black or white as input. So it forgot the previous "black" because it is a new instance.
How do I pass text to an already running gomoku?
when I use the fork() function in C it creates a child process but all the output and input is binded to the same terminal as the father process.my question is, how do i make the new process open a new terminal window in linux?
View 2 Replies View RelatedI have a file opened in vi running in a terminal(xterm), if I directly closes the terminal without first closing the file then I can see the vi still running in the background(ps x). Now is there any way to attach that process i.e. vi to some other terminal so that I can continue my work on the file. I have also tried fd command but it fails.
View 4 Replies View Related(yes a,vim a,copying data etc) via any terminal .please dont give me kill fg,bg at some instances kill -STOP pid,kill -CONT pid .
View 2 Replies View Relatedhow to send any pause process into running condition from one terminal to other terminal in linux!
View 1 Replies View RelatedHow can I send a job running in one bash instance to another? I tried disowning the job, and resuming it with a "fg %cmd" from another terminal, but that doesn't work.
View 3 Replies View RelatedI am trying to create two processes , a parent process and a child process where each of them have their respective CLI. At any point, the user should be able to switch between the CLI of the parent and child processes. I could find three possible approaches to the problem
1) fork the child process into a new terminal
2) activate the CLI of only the process which is currently in the foreground.
3) Write a script (.bashrc triggers this script on login) to start the two processes separately in two different terminals, such that the second process is triggered once the first process reaches a certain stage in execution.
The first approach probably requires the controlling terminal of the child process to be changed. Can this be achieved ? The second approach will require for the process (parent/child) to itself to know everytime it is put in background / foreground so that its CLI operations can be suspended/resumed respectively. Is this possible? Can a script start programs in a new terminal other than the one it is running in?
Urgent: on reboot, the Fedora 11 lower bars reach about 70-80%, then I get the message:
/dev/mapper/VolGroup-lv_root: (There are 22 inodes containing multiply-claimed blocks.)
File /home/burnie/.thumbnails/normal/[bunchofhexits].png (inode #15826, mod time Mon Nov 2 04:24:26 2009) has 13 multiply-claimed blocks, shared with 1 file:
[code]....
Just in case this is relevant, yesterday I spent several hours attempting (and failing) to build IcedTea in order to run a Java web service that required it. After the failure occurred, I exited Linux and went to Windows Vista to run the web service, and found that Vista cannot support 64-bit Firefox, so I rebooted to Linux, and ran make clean on the Iced Tea installation, which balked because a stamps directory could not be deleted because it was not empty; I followed this by make distclean which made the same complaint. So I manually deleted the files in the stamps subdirectory, ran make distclean "cleanly", and then rebooted to reach my current very unsatisfactory state.
There are often times when the best way to launch an application is from the terminal, but it is a graphical application and after it is launched the terminal is useless.
Examples of places where a terminal is convenient are when a process starts lots of child processes and is also unstable; you can be sure to kill all of its children simply by using Ctrl-C at the terminal. Also it allows me to read program output and to set up the terminal environment to be optimal for the application (for example "unset LIBGL_ALWAYS_INDIRECT")
With GNU screen, I can get around the hassle of having a terminal window open by using something like the following in a terminal window:
Code:
screen
my_command
Ctrl-A d
and then I can close the terminal and the program will keep running. Then I just type "screen -r <Tab>" (the tab will get me my screen session if there is only one such session) in any terminal window, even a tty, and I can get the screen session back and use Ctrl-c or something.
So my question is, is there a way to do this automatically so that a launcher or script will start a screen session, inside that screen session start a process, and then detach from that screen session without me having to manually open and close a terminal and type the commands?