Notes: March 2007 Archives

AcroRd32.exe /t file.pdf 可以直接把 PDF 檔印出來, 適用 7.0.x 版 (Acrobat Reader 7.0.9 中文版)
若有大量的 PDF 檔要印, 用 /t 參數寫批次檔是最快的.
但是在 Adobe Reader 8 此參數好像拿掉了, 試了沒反應.

mtop - MySQL top

| | Comments (0)

mtop 可以列出 MySQL Server 目前有那些 user, 從那邊連過來, 下什麼 SQL 指令

[Shell Script] Sort IP Addresses

| | Comments (0)

# cat host
140.117.1.77
140.117.11.7
140.1.99.1
# sort host
140.117.11.7
140.117.1.77
140.1.99.1
# sort -t. -nk1,1 -k2,2 -k3,3 -k4,4 host
140.1.99.1
140.117.1.77
140.117.11.7

BIND dump cache

| | Comments (0)

BIND 8
kill -2 `pidof named`

BIND 9
rndc dumpdb

cache will saved as named_dump.db in named directory.

主機若沒有跑 mail service, 要用 PHP 透過其他 SMTP 來寄信,
Windows 下可以改 php.ini
[mail function]
SMTP = smtp_server
其他 UNIX 環境, 不支援上面的方法, 真怪.
大致有兩種做法:
1. 使用現成 Class, 如 PEAR::Net_SMTP, phpguru.org - SMTP class, 這些 Class 是透過 fsockopen() 的方式寄信
2. 裝 Light SMTP Agent, 如: mini_sendmail
然後改 php.ini 裡的 sendmail_path
sendmail_path = /usr/local/sbin/mini_sendmail -s smtp_server -t

July 2008

Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

About this Archive

This page is a archive of entries in the Notes category from March 2007.

Notes: February 2007 is the previous archive.

Notes: April 2007 is the next archive.

Find recent content on the main index or look in the archives to find all content.