4 ms·
I know what you mean, but again, I never need that and the investment in tmux is to high for edge cases. Btw: Long running jobs are easy with a cron job: echo
by Ringz 2y ago
I know what you mean, but again, I never need that and the investment in tmux is to high for edge cases. Btw: Long running jobs are easy with a cron job:
echo "/path/to/long_process.sh" | at now + 1 minute
- gitaarik 2y agoYou never let your PC sleep when you're having lunch or something?
- Ringz 2y agoI do. No Problem closing the lid on my MacBook M1. I can open the lid and keep on working where I left. I use kitty and the kitten ssh [1] to login easily to remote hosts, and automatically setup the environment. I can use a simple bash like #!/bin/bash kitty @ launch --type=tab --title='Server 1' bash -c "command1; exec bash" kitty @ launch --type=tab --title='Server 2' bash -c "command2; exec bash" kitty @ launch --type=tab --title='Server 3' bash -c "command3; exec bash" If I need several servers at once. Could be done with other shells too. I can run loooong processes on the host with a simple bash script and the marvelous `àt` [2] command that nobody seems to know any more like: echo "/path/to/long_process.sh" | at now + 1 minute And the team can reuse those simple bash scripts! If `at` is not installed, and you need to run multiple looong tasks, try `nohup` [3]. Another lost command full of great functions like: nohup command1 & nohup command2 & nohup command3 & If you and your team is happy with tmux, that's fine! But doing more or less the same things with easy linux commands is – in my opinion – the better way. [1]: https://sw.kovidgoyal.net/kitty/kittens/ssh/ https://sw.kovidgoyal.net/kitty/kittens/ssh/ [2]: https://linuxhandbook.com/at-command/ https://linuxhandbook.com/at-command/ [3]: https://www.howtogeek.com/804823/nohup-command-linux/ https://www.howtogeek.com/804823/nohup-command-linux/ and https://stackoverflow.com/questions/5164985/how-can-i-use-nohup-to-run-process-as-a-background-process-in-linux https://stackoverflow.com/questions/5164985/how-can-i-use-no... Edit: Formatting
- hiAndrewQuinn 2y agoOP here, today I learned about the `at` command. Thanks!