|
发表于 2006-2-21 04:00:22
|
显示全部楼层
but it did redirect the output to a NON-TTY device even though it dup it to std out. And because it is a pipe, vi, su, etc those cmds just wouldn't accept pipe. if you doyou will see normally file descriptors will link to your tty device, pipe and "><" symbols will change that no matter what. script cmd is different, not sure what technology it uses, but it will not redirect fds to something else. It probably just simply grab whatever prints out to the terminal screen. To use script, pls see the man page. Its simple. |
|