Run a command immune to hangups, with output to a non-tty.
2
votes
2answers
47 views
how to hit ctrl+c on a terminal, and its child terminals do not be closed?
this script opens 3 terminals, but if I hit ctrl+c where I run this script, all 3 child terminals will close too!
testChildDetach.sh
#!/bin/bash
echo $$
while true; do
nohup xterm -e "echo ...
0
votes
1answer
105 views
Nohup with mysql command
I need to run in background mode some mysql-query...
But how can i do this with nohup?
Standartly i do:
musql -uroot -p
use SomeDb;
Select * from blablalba;
But how can i do this with launching ...
2
votes
4answers
129 views
How to short this command?
Every time I need to use sublime to open a project from terminal, I have to do this:
nohup sublime . &
Is there a way to short it?
3
votes
2answers
697 views
Background process (nohup &) suspends/resumes when user logs out/logs in
Ubuntu Server 11.10
When a normal (non-root) user starts a process with nohup (nohup java ... &), when the user disconnects from the terminal (ssh) the process stops responding. When the user ...
0
votes
2answers
164 views
the relationship between terminal and the process
Mostly, if I closed the current terminal, the sub_process are also closed. Of course, if I use suspend the process and use `bg JobID wakeup it, the process is divided with the terminal and run in ...
5
votes
4answers
730 views
Keep a program running in terminal
So I am well aware of nohup and suffixing commands with & to ensure that they go into the background.
However if I run a graphical application - sometimes using neither seems to do the job. So ...
2
votes
3answers
1k views
Prevent an application from being closed on terminal exit
I have created a bash script that starts an application. Since I wanted the terminal window to close when the application is started, I used this line:
firefox & 2> /dev/null; exit;
It works ...
3
votes
1answer
2k views
Launch application via ssh
I am new to SSH. So now I can connect to a remote computer.
I also can launch an application on a remote computer and see it's GUI on my screen.
But I do not know how to launch an application without ...
2
votes
3answers
1k views
Bring nohup job to foreground
Consider the following nohup execution:
nohup script.sh > script.out &
Is there a way to log off the terminal, reconnect, bring the process back to foreground and interact with it using the ...