일정 시간이 지나면 디렉토리 지우기 ?

bluesid의 이미지

proftpd 로 ftp 를 구성하고 있습니다.

어떤 특정 디렉토리를 읽어 생성시간의 일정 시간이 지나면

그 디렉토리를 지울려고 생각중입니다.

어떻게 하면 될까요 ?

정태영의 이미지

tmpwatch + cron 의 조합을 쓰세요
생성시간이라면 --ctime 옵션을 사용하면 되겠지요 ;)

man tmpwatch wrote:
-c, --ctime
Make the decision about deleting a file based on the file's
ctime (inode change time) instead of the atime; for directories,
make the decision based on the mtime.

오랫동안 꿈을 그리는 사람은 그 꿈을 닮아간다...

http://mytears.org ~(~_~)~
나 한줄기 바람처럼..