Notes: February 2004 Archives

html 信件

| | Comments (0)

MIME-Version, Content-Type header 為 html 信件必備, 缺一 html 信無法正常顯示

cat $TEMP | formail -k -X From -X To -X Subject -X MIME-Version -X Content-Type -I "To: $EMAIL" -I "Subject:$SUBJECT" | sendmail -t

ftp daemon when anonymous login failed

| | Comments (0)

Login failed.
No control connection for command: No such file or directory
當出現上述, 表示 /etc/passwd 裡 ftp 帳號的 home 目錄不存在

自解 script 範例

| | Comments (0)

把以下存成 script 檔 test.sh, 把壓好的 file.tgz 附加在後面 cat file.tgz >> test.sh
exit 0 以上的地方可以再加任意指令

#!/bin/sh
tail +$((`grep -an "^### end of script" $0 | head -1 | cut -d: -f1`+1)) $0 | tar zxf -


exit 0
### end of script ### by pank

Pages

March 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 February 2004.

Notes: January 2004 is the previous archive.

Notes: March 2004 is the next archive.

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