summaryrefslogtreecommitdiff
path: root/Executing background tasks from a script.md
blob: 7db07bed05ba39776b8638f6640ef5d0e8951c0d (plain)
1
2
3
4
5
6
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.