6

scriptターミナルでのすべてのアクティビティを記録する優れたツールです ( http://linuxers.org/article/script-command-line-tool-recordsave-your-terminal-activity )。Macの組み込みscript実行可能ファイルは、typescript のタイミングを記録できません。パッケージ util-linux ( https://github.com/karelzak/util-linux、Linux バージョンを含むscript) をコンパイルしようとしていますが、成功しません:

$ 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用にコンパイルされた実行可能ファイルはありますか?

4

4 に答える 4

7

ttyrecタイミングの問題の修正が含まれており、すべての意図と目的のために、同じ機能を提供します (scriptマンページでは の派生物として説明されています)。brew install ttyrecbrew ( ) または MacPorts ( )から入手できますsudo port install ttyrec

  • ttyrec : 公式サイト
  • shelr.tv : 端末録画のYouTube
  • ttygif : 端末の記録をアニメーション GIF に変換します
于 2013-08-17T21:08:06.410 に答える
6

scriptOS Xのバージョンには、-rすべての入力、出力、およびタイミングを 1 つのファイルに記録するオプションがあります。オプションで再生でき-pます。

于 2016-05-06T09:01:31.270 に答える
0

パッケージ util-linux ( https://github.com/karelzak/util-linux、Linux バージョンのスクリプトを含む) をコンパイルしようとしていますが、成功しません:

「互換性のない型」に関するコンパイラからのエラー メッセージは、失敗した理由の手がかりです。OS X (BSD ベース) に常駐するシステム ヘッダー ファイルの宣言とutil-linux(GNU/Linux ベース) のインクルード ファイルの宣言の間に競合があります。

于 2013-08-03T10:58:50.543 に答える