반응형
PREVDAY=`TZ=KST+15 date +%Y%m%d`
PREVDAY_MMDD=`TZ=KST+15 date +%m%d`
TODAY_MMDD=`date +%m%d`
ftp -n << EOF
open 192.168.1.1
user user1 passwd1
bi
prompt
lcd /home/DATA/
mput SAMPLE$PREVDAY_MMDD
quit
반응형
PREVDAY=`TZ=KST+15 date +%Y%m%d`
PREVDAY_MMDD=`TZ=KST+15 date +%m%d`
TODAY_MMDD=`date +%m%d`
ftp -n << EOF
open 192.168.1.1
user user1 passwd1
bi
prompt
lcd /home/DATA/
mput SAMPLE$PREVDAY_MMDD
quit