run a command which will survive terminal close?

source:

https://superuser.com/questions/448445/run-bash-script-in-background-and-exit-terminal

 

nohup CMD &

OR

CMD &
disown

for example

nohup python3 /home/scripts/apps/mallasupply/migration/products/migrate_table_product.py &

Leave a Reply

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