Skip to content

Instantly share code, notes, and snippets.

@EStepiuk
Last active March 16, 2022 22:48
Show Gist options
  • Save EStepiuk/4ff3d37c7945bf1426626ec8df9f93c0 to your computer and use it in GitHub Desktop.
Save EStepiuk/4ff3d37c7945bf1426626ec8df9f93c0 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Лончит тмукс со скриптом (по ссылке текстовый файл с таргетами через \n)
# и топом (диспетчер)
# Тмукс дает возможность скриту прододжать работать даже если отвалится ssh
# + к нему можно переатачится после реконнекта:
# находим id сессии: tmux ls
# атачимся: tmux attach-session -t $session_id
# шпаргалка по хоткеям: https://gist.github.com/MohamedAlaa/2961058
tmux new-session 'python3 runner.py -t 100 --debug -c https://pastebin.com/raw/yBbeLVMS' \; split-window -v 'top' \; attach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment