Skip to content

Instantly share code, notes, and snippets.

@mamemomonga
Last active January 31, 2020 08:10
Show Gist options
  • Save mamemomonga/a63c5ea808090e34e9a5419de66d9eb9 to your computer and use it in GitHub Desktop.
Save mamemomonga/a63c5ea808090e34e9a5419de66d9eb9 to your computer and use it in GitHub Desktop.
busybox.exeとバッチファイルだけでWindowsでシェルスクリプトを実行する
: <<EOF_BAT
@ECHO OFF
REM ***********************************************************
REM busybox.exeとバッチファイルだけでWindowsでシェルスクリプトを実行する
REM ***********************************************************
REM 同じフォルダにbusybox.exeを入れておく
REM busybox.exe 入手先
REM https://frippery.org/busybox
REM https://github.com/rmyorston/busybox-w32
REM 参考
REM https://qiita.com/tetsuy/items/22cba0bc2048967b270a
REM ***********************************************************
"%~dp0busybox.exe" bash "%~f0" %*
exit /b %ERRORLEVEL%
EOF_BAT
#!/bin/bash
while true; do
echo "Hello World!"
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment