101_restart.sh 316 B

1234567
  1. tmux new -d -s 101
  2. tmux new-window -t 101:0 -d
  3. tmux send-keys -t 101:0 "source 101evn/bin/activate" Enter
  4. tmux send-keys -t 101:0 "cd /home/mia/101" Enter
  5. tmux send-keys -t 101:0 "export OPENAI_API_KEY=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" Enter
  6. tmux send-keys -t 101:0 "sudo python3 main.py" Enter