-
-
Pages
Categories
Tags
압축 64bit android bash commands cpan debian development dmidecode dns find firefox flash forensics fuser git gpg gzip hacker http ipw3945 links::eunchul linux m1330 mail mysql passenger pdf perl php ps2pdf rails ruby security spam spamassassin ssh subroutines system tar tunneling ubuntu virtualization wireless xenArchives
Tag Archives: bash
logger 이용해서 syslog 에 메시지 남기기.
Logger 명령은시스템 기록 모듈인 syslog(3) 함수를 쉘 명령으로 구현한 것이다.
Logger makes entries in the system log. It provides a shell command interface to the syslog(3) system log module.
logger manpage description.
서비스 중인 웹 어플리케이션중에서,
back-end 로 동작하는 스크립트들이 있다.
이 스크립트가 죽지 않고 계속 돌아야 하는데, 어떤 이유에서 인지는 모르겠지만 종종 죽는 일이 발생하고 있다.
그래서, 모니터링을 [...]
압축할때 특정 디렉토리 포함하지 않기.
subversion 을 사용하면서 코드관리를 하고 있는데
checkout을 하게 되면 .svn 이라는 정보 디렉토리가 생성되어 있다.
다른 디렉토리에 export 를 해도 되지만 귀찮기 때문에 .svn 을 제외한 나머지 파일을 압축할 방법을 궁리해봤다.
find 와 tar 의 조합.
#!/bin/sh
FIND=/usr/bin/find
TAR=/bin/tar
TARGET_DIR=”penguin_mail”
PKG_FILE=”${TARGET_DIR}.tar.gz”
${FIND} ${TARGET_DIR} -name ‘.svn’ -type d | ${TAR} cvzf ${PKG_FILE} ${TARGET_DIR} –exclude-from=-
exit 0
완료.
참고: find manual(man find), tar manual(man tar)
Linux cron 관련 팁(?)