有没有办法在erlang中打开终端设备文件?
我在Solaris上,我正在尝试以下::
Erlang (BEAM) emulator version 5.6 [source] [64-bit] [async-threads:0] [kernel-poll:false]
/xlcabpuser1/xlc/abp/arunmu/Dolphin/ebin
Eshell V5.6 (abort with ^G)
1> file:open("/dev/pts/2",[write]).
{error,eisdir}
2> file:open("/dev/null",[write]).
{ok,}
3>
从上面可以看出,erlang文件驱动程序在打开空文件时没有问题,但是没有打开终端设备文件!
由于文件驱动程序能够打开空文件,因此无法得出结论.
有没有其他方法可以打开终端设备文件?
谢谢