Making A Shell Script Run Forever

mx flag

I have an Ubuntu 20.04 VM. I connect to it via SSH and run ./ It runs for as long as I am connected to the VM, but the moment I disconnect, it stops running.

I understand that I can use crontab, but as per my understanding, it will run ./ every minute, instead of running ./ once and then letting it run.

I wish to make it run forever. How can I do this? Will I have to make it a service?

Thank you.

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.