Last active
January 31, 2020 08:10
-
-
Save mamemomonga/a63c5ea808090e34e9a5419de66d9eb9 to your computer and use it in GitHub Desktop.
busybox.exeとバッチファイルだけでWindowsでシェルスクリプトを実行する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: <<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