Skip to content

Instantly share code, notes, and snippets.

@atamsingh
Created April 3, 2017 23:59
Show Gist options
  • Save atamsingh/30a8ac65a254732c2632e07de1d935ee to your computer and use it in GitHub Desktop.
Save atamsingh/30a8ac65a254732c2632e07de1d935ee to your computer and use it in GitHub Desktop.
#[1]+ Stopped myprogram
$ disown -h %1
$ bg 1
#[1]+ myprogram &
$ logout
@jamesmstone
Copy link

jamesmstone commented Jun 10, 2017

Another similar method is to append &> /dev/null & disown to the command.

This can be made easier through the bash function

dis () 
{ 
    eval "$@" &> /dev/null & disown
}

so then you can just run dis command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment