On my development setup I have an active session with multiple windows, I'd like to spit out the cronjob's output to this active session into a specific window .
I wrote in the crontab the command:
so the backup script looks quite straightforward:
#!/bin/bash # Setting up all environment variables: export LC_ALL=C.UTF-8 export LANG=C.UTF-8 export PATH=$PATH:/usr/local/bin/ export DISPLAY=:0; tmux new-session -d -s <session-name> -n <window name> tmux send-keys "/usr/bin/rsync /home/user/input /home/user/output/" ENTER
BUT the script writes the output to the currently active window in tmux, how do i make sure to output into window name i mentioned in the script?
Thank you all!