Shell script for automatically detect the extension of a given script and execute its code.
For the implementation, it is highly recommended the use of Play with Docker.
git clone https://github.com/adechlien/dockerexec/
cd dockerexec./autoexec.sh sample.<ext>samples/ directory contains the following files:
sample.cpp: For C++sample.py: For Pythonsample.js: For JavaScriptsample.rb: For Rubysample.java: For Java
Running
./autoexec.sh sample.jsHello from JavaScript!
Time execution: 820ms🐺 Kidman Cabana
🐨 Alejandro Hernández