Do 2 things in the terminal

I have an alias for this. When I run it from a terminal,

I can't do anything else in the terminal.

Can I fix it so I can do other things in the terminal?

geany /home/andy/bin/blank.sh

Thanks.

You can throw that process in the background by adding an & at the end. That process will be put on the background it will show as [1] 12788 and you can do other things on the terminal. To bring back that process, you type fg

I found this which is similar.

nohup geany /home/andy/.bashrc &> /dev/null &

This is essentially what pavlos_kairis wrote. The 'nohup' prefix is "no-hangup,' or in other words, disconnect the process from the running shell so it will continue to run even if the parent process dies. the '> /dev/null' simply redirects any output to null so it doesn't show on the console. The final ampersand ('&') may be superfluous.

1 Like