Pages - Menu

Wednesday, October 3, 2012

Terminal - Start application the background

Hi fellas!

My objective was to make sublime text run from terminal, simple task solved with:

sudo ln -s /opt/SublimeText2/sublime_text /usr/bin/sublime

Now the problem is that when I start it from terminal the process will run in foreground and is not what I was looking for, sad!

The "solution"?

~$ sublime &

The problem?
Close the terminal and the application will also be closed.

The real solution?
~$ nohup sublime &

From nohup documentation:

Run a command immune to hangups, runs the given COMMAND with hangup signals ignored, so that the command can continue running in the background after you log out.

Problem solved.

No comments:

Post a Comment