Score:0

How to keep a tool running in an Ubuntu VPS server?

ir flag

I am ready to be ridiculed and embarrassed ha! So I have a Ubuntu VPS, and say I SSH into it and start Hydra, Hydra can take a while. And I usually don't stay on the VPS for that long, nor the computer. Is there a way to have tasks like Hydra stay running even when I close the session? And when I SSH back into it, have the results either in a file, or if it's still ongoing then for it to come back? I'm super sorry! Hydra is just an example, I mean any programs that need to run for awhile.

Score:0
zw flag

Use tmux for this. You can attach processes to it that will stay alive after you've exited from ssh. Tmux can be installed from the repositories

An alternative would be to create systemd service, that starts your code independently from your ssh session. The creation of a simple systemd service is described here

GuerillaRadio avatar
ir flag
That's awesome! Thank you so much, I'll check out both of those options.
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.