Posted On December 1, 2020

Linux: Init Process in the Background and Detach

kimconnect 0 comments
blog.KimConnect.com >> Linux >> Linux: Init Process in the Background and Detach
# Define program
program=remmina

# Method 1
nohup $program &

# Method 2
$program &
disown -h %1 # assuming jobs return [1] as the id

# Method 3
$program </dev/null &>/dev/null &

# Checking
kim@kimlinux:~$ jobs
[1]-  Running                 remmina &
[2]+  Done                    $program < /dev/null &> /dev/null

# Stop program abruptly
pkill $program

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

How to transfer files between Windows client to Unix Server

Download PSCP: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html Move the executable to C:\Windows\System32 Run CMD as Administrator and copy files,…

Ubuntu 19.04: How to Install Adobe Acrobat Reader

Back  in the days when Adobe Acrobat Reader for Linux was supported and available on…

Linux Mint 20: How to Disable the Annoying Keyring Prompts for Passwords

Update 03/2023: https://blog.kimconnect.com/linux-how-to-bypass-annoying-login-keyring-prompts/ The default installation of Linux Mint expects that the user would login…