Linked Questions

19
votes
9answers
14k views

How to make sure that a command is not interrupted, even if terminal is closed? [duplicate]

In Linux. Say I want to run a command and it takes too long. I just want to ensure it's done. How?
6
votes
3answers
5k views

Launching application from terminal [duplicate]

Possible Duplicate: How can I close a terminal without killing the command running in it? How to launch a GUI application (e.g. gedit) from terminal and detach it from there in one step?
9
votes
2answers
2k views

How can I tell a running process to disregard SIGHUP? [duplicate]

Possible Duplicate: How can I close a terminal without killing the command running in it? I have a very low-end "server" running Debian Squeeze that I occasionally ssh to. The system tends to be ...
6
votes
1answer
2k views

Launch independent process [duplicate]

Possible Duplicate: How can I close a terminal without killing the command running in it? If I open a terminal emulator, type firefox & and then close the terminal, the process it launched -...
2
votes
2answers
2k views

Exit php script somehow, but keep it running [duplicate]

I have a PHP script running which is taking hours, and I have to close my computer. I ran the script using php script.php. Is there any way I can close this script while keeping it running? (It's ...
2
votes
2answers
407 views

is there a way to keep a session alive even when logging out? [duplicate]

While I am always logging into a CentOS server for simulations it got me thinking: why can't I keep running the simulations even if my session is closed? I know that when a session is ended or a ...
7
votes
1answer
302 views

How can I launch a GUI program from a terminal but close the terminal once it's launched? [duplicate]

I like to start GUI programs from the terminal, e.g. emacs myfile.txt. But doing that leaves a terminal window open with that process, so now there are two windows for me to keep track of. And if I ...
0
votes
1answer
2k views

Submitting non-interactive jobs over ssh [duplicate]

I have SSH remote access to a machine I'd like to use for long-running jobs. What I currently do is simply ssh user@remote command-to-run This has several drawbacks: I can't simply suspend my ...
1
vote
2answers
256 views

How to run regular programs as daemons/services [duplicate]

Possible Duplicate: How can I close a terminal without killing the command running in it? I'm using Debian for my Server. I just installed MediaCore, which works well. Now I want to have it ...
630
votes
3answers
284k views

Difference between nohup, disown and &

What are the differences between $ nohup foo and $ foo & and $ foo & $ disown
37
votes
7answers
39k views

How can I close a terminal without killing its children (without running `screen` first)?

sometimes I run an app in the gnome-terminal, but then I suddenly have to restart gnome or something. I guess the answer to the question is also useful then I want to disconnect from SSH where ...
28
votes
5answers
59k views

I am using `&`: why isn't the process running in the background?

I know that I can append & to a command to run the process in the background. I'm SSH'ing into an Ubuntu 12.04 box and running a python program with $python program.py & -- but when I go to ...
9
votes
1answer
934 views

Trying to write a shell script that keeps testing a server remotely, but it keeps falling in else statement when I logout

Trying here to write a shell script that keeps testing my server and email me when it becomes down. The problem is that when I logout from ssh connection, despite running it with & at the end of ...
5
votes
3answers
4k views

Why do I get permission denied error when I log out of the SSH session?

I have to run some tests on a server at the University. I have ssh access to the server from the desktop in my office. I want to launch a python script on the server that will run several tests during ...
0
votes
1answer
5k views

How to execute shell commands in a loop from within a bash script?

I want to write a script which will run on my android phone & perform the following things: echo "1" > /sys/kernel/mm/ksm/run wait for 2 minutes: then echo "0" > /sys/kernel/mm/ksm/run ...

15 30 50 per page