From 8ae9e79d0850bb34ad3d0936b37c46aabe8b114f Mon Sep 17 00:00:00 2001 From: Songmin17 Date: Wed, 29 Nov 2023 14:31:18 +0900 Subject: [PATCH] git fix: actually add cron_routine to git --- cron_routine.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 cron_routine.sh diff --git a/cron_routine.sh b/cron_routine.sh new file mode 100755 index 0000000..00f012e --- /dev/null +++ b/cron_routine.sh @@ -0,0 +1,14 @@ +# kill all existing tmux sessions +tmux kill-server || true + +# create a new tmux session +tmux new-session -d -s ml_session + +# make the script executable +chmod +x recommendation_pipeline.sh + +# run the script inside the tmux session +tmux send-keys -t ml_session "./recommendation_pipeline.sh" C-m + +# detach from the tmux session +tmux detach-client -s ml_session \ No newline at end of file