hack のためのネタ帳, etc,,,

タグ検索でbinfmt3件見つかりました。

20220218: Ubuntu - x64 の CLI バイナリが実行できない

nux ネイティブのコードじゃないので binfmt に補足されて最終的には /usr/bin/cli が実行するんだけど、設定は以下のようになってる。 =|| $ cat /proc/sys/fs/binfmt_misc/cli enabled interpreter /usr/lib/binfmt-support/run-detectors flags: offset 0 magic 4d5a ||= =|| $ cat /var/lib/binfmts/cli mono-runtime magi…

https://seesaawiki.jp/w/kou1okada/d/20220218%3a%20... - 2022年02月18日更新

20210217: Linux - ELF 以外のバイナリを直接実行

m/q/180112]] にたどり着き、binfmt が目的の機能だってことが判明した。 で、本来の目的は何だったかと言うと、JScript や VBScript のような WSH (Windows Script Host) のスクリプトを Cygwin から実行する際に cscript.exe を打つのが面倒なので、ファイルのマジックナンバーから cscript.exe を自動的に呼んで欲しいなと。 それで、もし Cygwin でそういうことが可能なら、Linux で使ってるメカニズムの名称と Cyg…

https://seesaawiki.jp/w/kou1okada/d/20210217%3a%20... - 2021年02月18日更新

Linux - binfmt_misc

ous Binary Formats (binfmt_misc)>https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html]] * 関連 - [[20210217: Linux - ELF 以外のバイナリを直接実行]] …

https://seesaawiki.jp/w/kou1okada/d/Linux%20%2d%20... - 2021年02月17日更新

ai(22) android(29) bash(40) c++(52) cxx(54) cygwin(128) debian(39) deeplearning(32) diary(765) excel(21) font(30) free-book(47) git(21) github(28) gnu-r(77) google(26) hdd(22) html(25) java(26) javascript(118) latex(57) lcd(22) library(24) linux(97) machinelearning(31) memo(462) microsoft(42) oss(25) pdf(38) powershell(65) programming(32) proxy(23) python(100) r-lang(47) ruby(86) security(72) ssh(34) tex(37) tips(397) troubleshooting(443) ubuntu(114) unicode(22) usb(21) virtualization(24) vscode(28) windows(126) windows10(50) wsl(26) zfs(32) 数式(21)

管理人/副管理人のみ編集できます