0004. [sh ] 쉘 처음시작시 사용유저검색하기
IT2015. 6. 29. 13:08
#!/bin/sh
if [ $LOGNAME != horany ]
then
echo "Must have horany privileages to run this program"
cat << EOF
Warning: Must have horany privileages to run this program
Please Try Again this program.
Otherwise press Control C.
EOF
exit 1
fi
echo "Coding your program!"
'IT' 카테고리의 다른 글
0006. ExitProcess() 사용법 (0) | 2015.06.29 |
---|---|
0005. shell 도중 FTP 사용하기 (0) | 2015.06.29 |
0003. [sh ] shell 에서 sqlldr 사용하기 (0) | 2015.06.29 |
0002. [sqlplus ] 쉘에서 sqlplus 로 delete drop create insert 구문 사용하기 (0) | 2015.06.29 |
0001. [Solaris] (install) <환경설정> 솔라리스8 설치 후 환경 설정정리 (0) | 2015.06.29 |