Created
May 9, 2017 20:21
-
-
Save ale10257/c2d802def40d0d60bb55bf2d5b16f579 to your computer and use it in GitHub Desktop.
проверка на чётность bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
D=`date +%j` | |
USER=$1 | |
if [ $((10#$D % 2)) == 1 ];then | |
case $USER in | |
vet) | |
FILE=user_list_vet | |
cnf=.ydcmd_vet.cfg | |
;; | |
*) | |
FILE=user_list_all | |
cnf=.ydcmd.cfg | |
;; | |
esac | |
/bin/bash /root/rsync.sh $FILE $cnf | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Спасибо за помощь)