diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-06-16 10:44:49 +0200 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-06-16 10:44:49 +0200 |
commit | 0d389e1d6c1aed4a92f82d9711f4564a12390fcd (patch) | |
tree | ca4925547669a045d836c2aeb6d4b2309c3f5996 /Executing background tasks from a script.md | |
parent | 32422d2b9001291d7136036581122cf4b4eec75c (diff) |
vault backup: 2025-06-16 10:44:49
Diffstat (limited to 'Executing background tasks from a script.md')
-rw-r--r-- | Executing background tasks from a script.md | 7 |
1 files changed, 7 insertions, 0 deletions
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 |