CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/scripts/g-tmux.sh
Views: 687
1
#!/usr/bin/env bash
2
3
tmux new-session -d -s mysession
4
tmux new-window -t mysession:1
5
sleep 2
6
tmux send-keys -t mysession:1 './scripts/g.sh' C-m
7
sleep 2
8
tmux send-keys -t mysession:0 'pnpm database' C-m
9
tmux attach -t mysession
10
11