An interesting Bourne shell limitation

Presented in illustrated form, on at least Solaris 8, FreeBSD, andOpenBSD:

$ exec 9>/dev/null$ exec 10>/dev/nullexec: 10: not found

(And the shell exits.)

The genuine Bourne shell only allows redirection to (or from)single-digit file descriptors; if you give multiple digits, itinstead gets parsed as ' exec 10 >/dev/null '.

(The limitation has been faithfully copied by at least some Bourne shell


卓文君賣酒

第四十八枝 中平 卓文君賣酒

繡閣聽琴自起思 改妝寅夜最歡時
可憐沽酒臨邛市 才子佳人兩下廚

註解:

昔卓氏有女名文君,新寡,聽司馬相如彈琴,逐起心,乘夜奔往相處,成為夫妻但家貧,兩夫婦於臨邛市開設酒店,一箇是才子,

請聯署:就政府檢控參與拯救「天星」行動人士的聲明

被檢控人士,即係包括鄙人呢。 聯署請至此

就今天何來女士被政府檢控,我們表示憤慨!!!

月前,一群關心香港歷史文化保育人士為保護天星碼頭被拆卸,進行抗爭;參與行動的人士有過 百人,警方拘捕了包括何來女士的其

連結就是力量

身體又好轉了一點,雖然都在食藥,雖然那些藥吃了之後人很迷糊,也很疲累,但一切似乎仍得繼續,我們也要繼續談寫blog的事。

寂然世界成立之初,我考慮到blog最過癮的地方其實是連結,透過連結,一篇文章可以表達出更多資

A gotcha with inetd/xinetd and popular UDP services

We have historically had a small problem with our inetd s: every sooften when we attempted to restart it with a SIGHUP to make it pick up aconfiguration change, it would fail to bring up an important UDP-basedservice we need, reporting a failure to bind to the UDP port.

(We saw the same problem with xinetd ; I'm using ' inetd ' as as ageneric term.)

What was probably happening is that when this would happen, inetd hadjust spawned the program to handle


曲線

何來被落案起訴「刑事毀壞」和「藏有攻擊性武器可作非法用途」。「刑事毀壞」是指扯下遮蔽地盤的綠色帆布,「藏有攻擊性武器可作非法用途」,看來是指一把界刀。誰都有可能常常把界刀帶在身上——這個荒誕的罪名正正

滾滾長江東水逝水

三國演義

零七年第一篇文字 Blog,就是想當年了,實是有夠老氣橫秋。今次講一首歌。

話說當年亞視取得了國內央視的大型製作電視劇集版本《三國演義》的播映權,還請來馮兩努來每集解說,細數三國的種種。一時間還帶來了一陣「古裝


你眼中的我

________________________________

《寂寞人》

淡妝的杏臉,呷著一口又一口散滿鹽花的margarita,她的容顏帶點悲憫,畢竟她是個寂寞人。

這張臉,雖不至於令人暗暗驚呼,亦至少會讓你稍作停留

Solving an automounter timeout problem with brute force

Our central mail machine runs various cron jobs as part of its work.Starting recently, every now and then a cron job (or a command run outof an alias) would randomly die with an error like:

sh: /cs/foo/adm/script: cannot execute

(Where /cs/foo is NFS mounted through the automounter, and the cronentry just runs that script.)

I am pretty sure that this is a gift from the Solaris 8 automounter.

Our central mail machine is pretty old


醫院記

昨夜還是好端端的,

今早卻已入了急症室,

待在觀察病房內。

這該是一個驗證真心和誠意的機會,

但何必試煉別人呢?

所以,

當醫生要求繼續留院觀察,

我只能說:「不。」