Crontab Shell구동시 에러
·
Linux
#!/bin/sh ######################################## # DEV /usr/bin/find /data/resin-dev/log/ -type f -name access.log.* -mtime +2 -exec rm -f {} \; /usr/bin/find /data/resin-dev/log/ -type f -name jvm-dev.log.* -mtime +2 -exec rm -f {} \; /usr/bin/find /data/resin-dev/log/ -type f -name stdout-dev.log.* -mtime +2 -exec rm -f {} \; /usr/bin/find /home/assetplus2/homepage/logs/ -type f -name assetp..
[Linux]date (Unix)
·
Linux
# 3일전 가져오기(YYYY-MM-DD) DAYS=$(date +"%Y-%m-%d" -d "3 days ago") 출처 - http://en.wikipedia.org/wiki/Date_(Unix)