Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
#!/usr/bin/perl # # Script to provide a page where users can stop and start the java app. # use warnings; print "content-type: text/html \n\n"; # Tell perl to create some HTML print "<html>\n"; print "<head>\n"; print "<title>myapp Admin Page</title>"; print "</head>\n"; print "<body>\n"; print "<center><h1>myapp Admin Page</h1><br />"; print "<img src='/myapp/hourglass.jpg' /><br />"; print "<h1>Java App is being shut down.</h1>\n"; print "<a href='/myapp/index.pl'><img src='/myapp/proceedbutton.gif' alt='Proceed' /></a>\n"; print "</center></body>\n"; print "</html>\n"; system("sudo service myapp stop"); # Here endeth the script.
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.