[opensuse-buildservice] a puzzle about a bash script in buildservice/src/build/build
Hi,all I've a puzzle about a bash script in buildservice/src/build/build, -------------------------------------------------------------------------- exec 1> >(exec -a 'build logging tee' tee -a $LOGFILE) 2>&1 ========================================================================== I known this redirect stdout and stderr to $LOGFILE and stdout, and rename the cmdling look like this :" build logging tee -a $LOGFILE". but what's mean about "1>" and a blackspace, and what's mean about ">(...)" , I known "(...)" to exec a progress use fork, but when "(...)" done, a fd get ? thanks, all. -- Thanks from Jian Lee [HOME] http://jianlee.ylinux.org [MSN] lijian.gnu@hotmail.com -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Dne 12.10.2009 12:11, Jian Lee napsal(a):
Hi,all
I've a puzzle about a bash script in buildservice/src/build/build,
-------------------------------------------------------------------------- exec 1> >(exec -a 'build logging tee' tee -a $LOGFILE) 2>&1 ==========================================================================
I known this redirect stdout and stderr to $LOGFILE and stdout, and rename the cmdling look like this :" build logging tee -a $LOGFILE".
but what's mean about "1>" and a blackspace, and what's mean about ">(...)" , I known "(...)" to exec a progress use fork, but when "(...)" done, a fd get ?
Look for "Process Substitution" in the bash manual page. Michal -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Oh, thanks for you replay I'm sure find help in man before come here. I'll try to learn it. 在 2009-10-12一的 12:41 +0200,Michal Marek写道:
Process Substitution -- Thanks from Jian Lee
[HOME] http://jianlee.ylinux.org [MSN] lijian.gnu@hotmail.com -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Jian Lee
-
Michal Marek