본문 바로가기

Study/Linux

send: command not found / interact: command not found



[root@★]# sh ce_sync.sh
ce_sync.sh: line 2: spawn: command not found
expect: invalid option -- r
usage: expect [-div] [-c cmds] [[-f] cmdfile] [args]
ce_sync.sh: line 5: send: command not found
ce_sync.sh: line 6: interact: command not found
ce_sync.sh: line 7: /root: is a directory
ce_sync.sh: line 8: /root: is a directory
ce_sync.sh: line 9: /root: is a directory


아 이런 어이가..

[root@★]# ./ce_sync.sh
하시면됩니다. 


rsync로 백업 스크립트 만들어서 크론탭에 넣으려다가..