Score:0

Background scripts on Ubuntu server

lc flag

I have a .sh script that runs an import of more than 6 thousand big SQL files.
I'm connecting to my Ubuntu server via ssh.
I want to start the script and close the connection for example. But in this case, the script stops.
I've read about nohup and disown, but I would want to check the progress of the script every once in a while.


What would be the optimal solution in your opinion?

Thanks in advance!

Artur Meinild avatar
vn flag
Does this answer your question? [How to run a shell script in background?](https://askubuntu.com/questions/88091/how-to-run-a-shell-script-in-background)
Artur Meinild avatar
vn flag
Use the above solution, and redirect the script output to a file, so you can check ..
I sit in a Tesla and translated this thread with Ai:

mangohost

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.