onthax
Explorer
- Joined
- Jan 31, 2012
- Messages
- 81
I've made a shell script to rsync to a remote server, the script is
which runs fine when I try it from the shell
i've added it as a cron job in the freenas gui
User: Onthax
every 5 minutes, every 1 day, every 1 month, every month, every day of the week
however it doesnt make the tmux session or start an rsync, any ideas?
Code:
!/bin/sh task=backup target=daedalus tmux list-sessions | grep "$task$target" > .$task$target.pid if [ -s .$task$target.pid ] ; then echo "$task$target is Running " else tmux new-session -s $task$target -d ./$target/$task$target.sh fi
which runs fine when I try it from the shell
i've added it as a cron job in the freenas gui
User: Onthax
every 5 minutes, every 1 day, every 1 month, every month, every day of the week
however it doesnt make the tmux session or start an rsync, any ideas?