webalizer ¸¦ Á¦¿ÜÇÏ°í ½ºÄûµå ·Î±×ÆÄÀÏÀ» ºÐ¼®ÇØÁÖ´Â ÅøÀ» µÚÁö´Ù°¡ ³ª¿Â°Å´Ù.
perl ·Î µÇ¾îÀÖÀ¸¸ç ÇöÀç ÀúÀåµÈ ·Î±×ÆÄÀÏ À§Ä¡¸¸ Àâ¾ÆÁÖ¸é µÈ´Ù.
ex)
echo ""
echo "Rotating squid logs"
/usr/local/sbin/squid -k rotate
echo ""
echo "Generating squid usage reports"
"/usr/local/bin/squeezer2.pl /var/squid/logs/access.log.0 >/var/www/htdocs/squeezer/SQ`date +%Y%m%d`.html
/usr/local/bin/squeezer2.pl >/var/www/htdocs/squeezer/all.html
[root@localhost]# /usr/local/sbin/squid -k rotate
[root@localhost]# perl squeezer2.pl /home/squid/logs/access.log.0 > test.html Use of uninitialized value in printf at ./squeezer2.pl line 1127 (#1) (W uninitialized) An undefined value was used as if it were already defined. It was interpreted as a "" or a 0, but maybe it was a mistake. To suppress this warning assign a defined value to your variables.
To help you figure out what was undefined, perl tells you what operation you used the undefined value in. Note, however, that perl optimizes your program and the operation displayed in the warning may not necessarily appear literally in your program. For example, "that $foo" is usually optimized into "that " . $foo, and the warning will refer to the concatenation (.) operator, even though there is no . in your program. |
ÆäÀÌÁö¸¦ ¿¾îº¸¸é...¾Æ·¡Ã³·³