Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Command
- MS Windows PE
- network
- Crack(Serial Key)
- Disk Partition
- javascript
- LiveCD(USB)
- explorer
- SSH
- webhard
- Windows 10
- calculator
- PC
- script
- 대항해시대
- MS windows
- UNIX
- Update
- portable
- program
- apm
- Linux
- H/W
- game
- Network Info(Tool)
- FTP
- Backup(Restore)
- web
- OS(operating system)
- Programming
Archives
- Today
- Total
<In Story>
Shell Script 자동화하기(대화형 명령어) // [Unix] [Linux] [Script] [Programming] [Command] 본문
Programming/Script
Shell Script 자동화하기(대화형 명령어) // [Unix] [Linux] [Script] [Programming] [Command]
<In Story, Hi story, History> 2015. 6. 6. 18:09특정 쉘스크립트로 명령어 실행후 yes / no 등 선택 입력이 필요할때
( i.g. rm 할때 강제 지울거냐고 물어볼때 -f 옵션주면되는데 없는 명령어를 사용할때 )
입력의 끝을 나타내는 EOF는 반드시 앞에 공백이나 탭이 있어서는 안된다.
<< 이용 뒤에 "END"는 아무 문자열이나 됨.(i.g AAA ,BBB ,CCC , OK)
$> execute_file -i file <<END
yes
END
또는
$> echo "yes" | execute_file
나. ftp 접속 스크립트 만들때 사용하면
ftp -n 10.96.181.14 12121 <<EOF
quote user ftpuser
quote pass passftp
ls
<<EOF