script
是記錄終端(http://linuxers.org/article/script-command-line-tool-recordsave-your-terminal-activity)中所有活動的好工具。 Mac上的內置script
可執行文件無法記錄打印機的時間。我試圖編譯包util-linux的(https://github.com/karelzak/util-linux,其中包含Linux版本script
),但沒有成功:在Mac上記錄終端的腳本
$ make
make all-recursive
Making all in po
make[2]: Nothing to be done for `all'.
CC lib/libcommon_la-strutils.lo
In file included from lib/strutils.c:16:
./include/strutils.h:77: error: conflicting types for 'strmode'
/usr/include/string.h:168: error: previous declaration of 'strmode' was here
lib/strutils.c:351: error: conflicting types for 'strmode'
/usr/include/string.h:168: error: previous declaration of 'strmode' was here
lib/strutils.c: In function 'size_to_human_string':
lib/strutils.c:442: warning: format '%jd' expects type 'intmax_t', but argument 8 has type 'uint64_t'
make[2]: *** [lib/libcommon_la-strutils.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
有沒有爲Mac編譯excutable在那裏?
OSX High Sierra:'錯誤:端口ttyrec未找到,並且brew版本失敗'出pty's' :( –