IT 이야기/Linux
[RHEL 공통] 쉘 스크립트 제작중 일부 명령어가 실행 안될 때 방안
찬찬이 아빠
2019. 11. 21. 17:06
반응형
bash 쉘로 스크립트 제작 중 일부 명령어가 동작하지 않습니다.
예를 들어 history는 bash 쉘에서 동작이 안됩니다.
bash 쉘 스크립트 제작 시 interactive mode로 제작을 권장합니다.
스크립트 제작 파일의 최상단에 다음과 같이 입력해 주면 됩니다.
#!/bin/bash -i
Bash 스크립트에 대한 자세한 내용은 다음 사이트를 참고하시기 바랍니다.
http://www.tldp.org/LDP/abs/html/index.html
Advanced Bash-Scripting Guide
This tutorial assumes no previous knowledge of scripting or programming, yet progresses rapidly toward an intermediate/advanced level of instruction . . . all the while sneaking in little nuggets of UNIX® wisdom and lore. It serves as a textbook, a manual
www.tldp.org
반응형