Monday, February 16, 2015

Run a linux process in the background so you can log out of the console or not have to keep it up

I had a loooong mysql dump to run, and I didn’t want to risk it getting cut off part way through just because my local machine’s wireless network connection timed out or something.


This did it:


1. Run the process (mysqldump cmd with options)

2. Ctrl+z

3. bg

4. disown -h

5. Exit the terminal





No comments:

Post a Comment