From 0d389e1d6c1aed4a92f82d9711f4564a12390fcd Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Mon, 16 Jun 2025 10:44:49 +0200 Subject: vault backup: 2025-06-16 10:44:49 --- Executing background tasks from a script.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Executing background tasks from a script.md (limited to 'Executing background tasks from a script.md') diff --git a/Executing background tasks from a script.md b/Executing background tasks from a script.md new file mode 100644 index 0000000..7db07be --- /dev/null +++ b/Executing background tasks from a script.md @@ -0,0 +1,7 @@ +--- +tags: + - bash +--- +[[Bash]] [[Executing bash commands as another user]] + +The easiest way I've found is via tmux: `tmux -d new-session -s somename 'command'`. Stuff with `nohup` and `&` tends to be a little bit painful. Especially so when executing this over ssh. \ No newline at end of file -- cgit v1.2.3