Skip to content

Instantly share code, notes, and snippets.

@ejlp12
Created November 21, 2015 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ejlp12/da557d7d5f0e6da7ded0 to your computer and use it in GitHub Desktop.
Save ejlp12/da557d7d5f0e6da7ded0 to your computer and use it in GitHub Desktop.
cat > Advertize.sh << __EOF__
#!/bin/bash
if [ ! -f "Advertize.class" ]
then
  curl https://raw.githubusercontent.com/modcluster/mod_cluster/master/test/java/Advertize.java > Advertize.java
  javac Advertize.java
fi
java Advertize 224.0.1.105 23364
__EOF__
chmod 755 Advertize.sh
./Advertize.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment