Entries from 2024-02-21 to 1 day
以下のようなコマンドで動くnodejsのプログラムがあって、これを永続化させたいということがあった。 sudo npm run example -- examples/hoge.ts' そこで以下のようなhoge.jsを用意した。 const { exec } = require('child_process'); // 実行したいコマンド…
以下のようなコマンドで動くnodejsのプログラムがあって、これを永続化させたいということがあった。 sudo npm run example -- examples/hoge.ts' そこで以下のようなhoge.jsを用意した。 const { exec } = require('child_process'); // 実行したいコマンド…