Kirupa Tutorial on php Socket Server and Flash 8

Hi,
I was reading the tutorial, which gave information on getting the socket server running with a .bat file; does anyone know a way to get it running on linux? (linux doesn’t run .bat files)

I read about shell scripts, but I don’t quite understand how to get it running.

Thanks,
-Danny