Linked Questions

19
votes
9answers
13k 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
4k 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 ...
5
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
1k 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
323 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 ...
0
votes
1answer
1k 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
248 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 ...
576
votes
3answers
235k views

Difference between nohup, disown and &

What are the differences between $ nohup foo and $ foo & and $ foo & $ disown
34
votes
7answers
34k 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 ...
23
votes
5answers
49k 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
881 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
3k 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
4k 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 ...
2
votes
2answers
2k views

How can I make a process I start during an SSH session run after the session has ended? [duplicate]

Possible Duplicate: Keep SSH Sessions running after disconnection. I have a process which is basically a web-server, I start it during an SSH session. However, when I leave the session (by ...

15 30 50 per page