引述:
on the contrary意思是單純相反之意
by the contrast 則帶有一些相反的意思 不過重點在相對比較方面
I love Chinese food, on the contary,she hate it.
我喜歡中國菜 而跟我相反的 她討厭中國菜
darren2000 發表在 痞客邦 留言(0) 人氣(6,417)
用sconadm這個指令
帳號還是要到
www.sun.com 上註冊,在照下面做 ,man page有寫~
Example 1: Registering a New System
darren2000 發表在 痞客邦 留言(0) 人氣(238)
放棄是用來換取更有價值的東西,
而不是作為逃避的結果。
darren2000 發表在 痞客邦 留言(0) 人氣(19)
syslog不熟,反而syslog-ng比較熟
在solaris以syslog-ng取代syslog
1.關掉syslog
2.安裝syslog-ng
darren2000 發表在 痞客邦 留言(0) 人氣(168)

要寫個程式去run一些system command
用exec...
while(<>)
{
darren2000 發表在 痞客邦 留言(0) 人氣(62)
加上-n選項
-n Avoid calling sync(2) and do not log the reboot to
syslogd(1M) or to /var/adm/wtmpx. The kernel still
attempts to sync filesystems prior to reboot, except
if the -d option is also present. If -d is used with
-n, the kernel does not attempt to sync filesystems.
darren2000 發表在 痞客邦 留言(0) 人氣(60)
darren2000 發表在 痞客邦 留言(0) 人氣(58)
.*不能比對包含\n的字元
可以靠\s幫忙比對\n
\s:很多時候,我們回看到要比對的字串中有一些空白,可是很難分辨他們到底是空格,跳格符號或甚至是換行符號 (註一),這時候我們可以用\s來對這些字元進行比對。而且\s對於空白符號的比對掌握非常的高,以處理(\n\t\f\r )這五種字元。除了原來的空白鍵,以及我們所提過的跳格字元(\t),換行字元(\n)外,\s還會毊??藉以表示回行首的\r跟換頁字元\f。 |
參考來源:perl手札
darren2000 發表在 痞客邦 留言(0) 人氣(53)
安裝portupgrade時有看到這段注意事項:
NOTE: If you upgrade, it's recomended to run pkgdb -L to restore lost
dependencies. Fill ALT_PKGDEP section in pkgtools.conf file for portupgrade
be aware of alternative dependencies you use.
E.g.
ALT_PKGDEP = {
'www/apache13' => 'www/apache13-modssl',
'print/ghostscript-afpl' => 'print/ghostscript-gnu',
} Note also, portupgrade knows nothing how to handle ports with different
suffixes (E.g. -nox11). So you should explicitly define variables
(E.g. WITHOUT_X11=yes) for the ports in /etc/make.conf or pkgtools.conf
(MAKE_ARGS section) files.
另外要加上make參數時,需修改/usr/local/etc/pkgtool.conf
MAKE_ARGS = {
'multimedia/mplayer-*' => 'WITH_GUI=1 WITH_FREETYPE=1',
}
darren2000 發表在 痞客邦 留言(0) 人氣(62)
實用性很高~
http://www.hp.com.tw/ssn/unix/0408/unix040801.asp
darren2000 發表在 痞客邦 留言(0) 人氣(19)