Doodle3D-Slicer/three.js-master/utils/servers/perl_server.sh
2017-06-22 13:21:07 +02:00

5 lines
144 B
Bash
Executable File

#!/bin/sh
cd `dirname $0`/../../
perl -MIO::All -e 'io(":8080")->fork->accept->(sub { $_[0] < io(-x $1
+? "./$1 |" : $1) if /^GET \/(.*) / })'