Advertisement
Guest User

Untitled

a guest
Feb 6th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. M110
  2. #! /usr/bin/python
  3.  
  4. fo = open('status.html', 'w')
  5. info = '''
  6. <HTML>
  7. <HEAD>
  8. <meta http-equiv="refresh" content="60"> <!-- Refresh every 1 minute -->
  9. <TITLE>Machine Running</TITLE>
  10. </HEAD>
  11. <BODY>
  12. <p>Cutting Part</p>
  13. </BODY>
  14. </HTML>
  15. '''
  16. fo.write(info)
  17. fo.close
  18.  
  19. M111
  20. #! /usr/bin/python
  21.  
  22. fo = open('status.html', 'w')
  23. info = '''
  24. <HTML>
  25. <HEAD>
  26. <meta http-equiv="refresh" content="60"> <!-- Refresh every 1 minute -->
  27. <TITLE>Change Part</TITLE>
  28. </HEAD>
  29. <BODY>
  30. <p>Change Part!</p>
  31. </BODY>
  32. </HTML>
  33. '''
  34. fo.write(info)
  35. fo.close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement