2008. 5. 15. 20:13
[system-command] find / 검색시 stderr 안 보기 용-ILE/SH/BASH/CSH2008. 5. 15. 20:13
http://suite.tistory.com/
일반 계정으로 find / 검색시
==========================================
find: /etc/pki/CA: 허가 거부됨
find: /etc/lvm/backup: 허가 거부됨
find: /etc/lvm/archive: 허가 거부됨
~~~~~
find: cannot search /etc/ftpd/pids
find: cannot open /etc/opt/resmon/pipe
===========================================
등의 stderr 메시지를 볼수 있는데 이것들을 안볼려면 > 과 /dev/null 로 처리하면 된다.
bash 경우
ex) find / -name "find_str" 2>/dev/null
0 : stdin
1: stdout
2: stderr
참고:
http://wiki.kldp.org/wiki.php/DocbookSgml/Bash-Prog-Intro-HOWTO#AEN55
'용-ILE > SH/BASH/CSH' 카테고리의 다른 글
[CSH] ipcrm 계정 으로 공유메모리 내리기. (0) | 2008.05.15 |
---|---|
[CSH] 특정 계정 아파치 프로세스 죽이기 (0) | 2008.05.15 |
expr 숫자 계산 (0) | 2008.05.15 |
tar find 특정파일 만 묶기 (0) | 2008.05.15 |
C Shell & Bourne & Bash Shell DATE 포멧 문자열 파싱? shell substring (0) | 2008.05.15 |