nohup :: shellscript를 데몬처럼 실행
$ nohup 명령어 & (&는 백그라운드로 실행된다는 의미)
nohup 사용시 shellscript 파일의 권한설정은 755
원하는 날짜 이전 로그 전부 삭제 쉘스크립트
DATE=`date '+%m/%d'`;
find ./ -name "*[^$DATE].err_log" -exec rm {} \;
tar.gz 압축
tar AND gzip
$> tar -zcvf 파일명 압축파일
tar.gz 압축 해제
$> tar -zxvf 파일명
'Server' 카테고리의 다른 글
redhat 마운트 이름 변경 mount, umount, e2label 사용 (0) | 2013.02.12 |
---|---|
linux ctags 사용법 (0) | 2012.12.13 |
redhat enterprise 6.2 네트워크(ip) 설정 (0) | 2012.10.09 |
rhel 5.5 setting - 2 (0) | 2012.09.19 |
rhel 5.5 setting - 1 (0) | 2012.09.14 |