工程提议

这里存放一些新工程的提议/点子, 以筹集更多想法或者筹集人手预备立项.

post spamfilter

output split redirector

split console into windows, and redirect app output into each window. 把程序输出重定向到 console 的下的多个窗口.

$ make
(全部输出都以行为单位交叉在一起)
$ sredir -n3 make
(stdout/stderr 分别输出到2个切分窗口上)

脚本

if ! echo >&4 ; then exec 4>&2; fi
if ! echo >&5 ; then exec 4>&3; fi
if ! echo >&6 ; then exec 4>&2; fi

echo test2
echo test3 >&3
echo test4 >&4
echo test5 >&5
echo test6 >&6

执行效果:

$ ./test.sh
(全部输出都以行为单位交叉在一起)
$ sredir -n6 ./test.sh
(stdout/stderr/4/5/6 分别输出到对应窗口)

None: ProjectProposal (last edited 2008-10-23 16:17:49 by mOo)