특정 페이지를 Cron으로 Copy.
February 18, 2008
Leave a comment
#!/bin/sh
/usr/bin/wget -q http://www.ABC.com/index.php -O/home/temp_directory/www/tmp_index.htm
find /home/temp_directory/www -name ‘tmp_index.htm’ -not -size 0 -exec cp {} /home/temp_directory/www/index.htm \;
/usr/bin/wget -q http://www.ABC.com/index.php -O/home/temp_directory/www/tmp_index.htm
find /home/temp_directory/www -name ‘tmp_index.htm’ -not -size 0 -exec cp {} /home/temp_directory/www/index.htm \;
cron에 걸어서 http://www.ABC.com/index.php를 1초에 한번씩 복사(copy)해 둔다.
http://www.ABC.com/index.php의 접속시
/home/temp_directory/www/tmp_index.htm의 파일이 열리도록 연결해 준다.
페이징 가는 페이지일 때의 처리문제는? (모두 copy해 두는가????)
결국 공지사항등 단일 페이지에 적합….














*Recent Comments