How to run several comands in the database using nohup

An example of how to run unattended commands

How to run several comands in the database using nohup
Photo by K. K. / Unsplash

Let's say we want to run three gather schema stats using nohup.

We would create a file called gatherstats.sql using vi with this content: