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