Advertisement
xrxrxr

cleanb4shutdown.py my first python script linux

Apr 21st, 2015
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.49 KB | None | 0 0
  1. #!/usr/bin/python
  2. # -*- coding: latin-1 -*-
  3.  
  4. print("Hello Amigo")
  5.  
  6.  
  7.  
  8.  
  9.  
  10. print("this script will run bleachbit cleaner and shutdown your computer")
  11.  
  12. raw_input("Press Enter to continue...")
  13.  
  14. print("follow me on twitter i follow back @sincerebroth")
  15.  
  16.  
  17. raw_input("Press Enter to continue...")
  18.  
  19. import os
  20. os.system("sudo apt-get install bleachbit")
  21.  
  22.  
  23. import os
  24. os.system("sudo apt-get install linuxlogo")
  25.  
  26.  
  27. import os
  28. os.system("linuxlogo")
  29.  
  30. raw_input("Press Enter to continue...")
  31.  
  32. import os
  33. os.system("bleachbit --list")
  34.  
  35. print("this is all what bleachbit can clean on your computer if you want to change my script")
  36.  
  37.  
  38.  
  39.  
  40. raw_input("Press Enter to continue...")
  41.  
  42.  
  43. import os
  44. os.system("bleachbit --clean apt.autoclean")
  45.  
  46. import os
  47. os.system("bleachbit --clean apt.autoremove")
  48.  
  49. import os
  50. os.system("bleachbit --clean apt.clean")
  51.  
  52. import os
  53. os.system("bleachbit --clean bash.history")
  54.  
  55. import os
  56. os.system("bleachbit --clean chromium.cache")
  57.  
  58. import os
  59. os.system("bleachbit --clean chromium.cookies")
  60.  
  61. import os
  62. os.system("bleachbit --clean chromium.current_session")
  63.  
  64. import os
  65. os.system("bleachbit --clean chromium.dom")
  66.  
  67. import os
  68. os.system("bleachbit --clean chromium.form_history")
  69.  
  70. import os
  71. os.system("bleachbit --clean chromium.history")
  72.  
  73. import os
  74. os.system("bleachbit --clean chromium.search_engines")
  75.  
  76. import os
  77. os.system("bleachbit --clean chromium.vacuum")
  78.  
  79. import os
  80. os.system("bleachbit --clean deepscan.backup")
  81.  
  82. import os
  83. os.system("bleachbit --clean deepscan.ds_store")
  84.  
  85. import os
  86. os.system("bleachbit --clean deepscan.thumbs_db")
  87.  
  88. import os
  89. os.system("bleachbit --clean deepscan.tmp")
  90.  
  91. import os
  92. os.system("bleachbit --clean firefox.cache")
  93.  
  94. import os
  95. os.system("bleachbit --clean firefox.cookies")
  96.  
  97. import os
  98. os.system("bleachbit --clean firefox.crash_reports")
  99.  
  100. import os
  101. os.system("bleachbit --clean firefox.dom")
  102.  
  103. import os
  104. os.system("bleachbit --clean firefox.download_history")
  105.  
  106.  
  107. import os
  108. os.system("bleachbit --clean firefox.forms")
  109.  
  110. import os
  111. os.system("bleachbit --clean firefox.passwords")
  112.  
  113.  
  114. import os
  115. os.system("bleachbit --clean firefox.session_restore")
  116.  
  117. import os
  118. os.system("bleachbit --clean firefox.site_preferences")
  119.  
  120. import os
  121. os.system("bleachbit --clean firefox.url_history")
  122.  
  123. import os
  124. os.system("bleachbit --clean firefox.vacuum")
  125.  
  126. import os
  127. os.system("bleachbit --clean flash.cache")
  128.  
  129. import os
  130. os.system("bleachbit --clean flash.cookies")
  131.  
  132.  
  133. import os
  134. os.system("bleachbit --clean gimp.tmp")
  135.  
  136. import os
  137. os.system("bleachbit --clean gnome.run")
  138.  
  139.  
  140. import os
  141. os.system("bleachbit --clean gnome.search_history")
  142.  
  143. import os
  144. os.system("bleachbit --clean google_chrome.cache")
  145.  
  146. import os
  147. os.system("bleachbit --clean google_chrome.cookies")
  148.  
  149. import os
  150. os.system("bleachbit --clean google_chrome.dom")
  151.  
  152. import os
  153. os.system("bleachbit --clean google_chrome.form_history")
  154.  
  155. import os
  156. os.system("bleachbit --clean google_chrome.history")
  157.  
  158. import os
  159. os.system("bleachbit --clean google_chrome.search_engines")
  160.  
  161. import os
  162. os.system("bleachbit --clean google_chrome.session")
  163.  
  164. import os
  165. os.system("bleachbit --clean google_chrome.vacuum")
  166.  
  167. import os
  168. os.system("bleachbit --clean google_earth.temporary_files")
  169.  
  170. import os
  171. os.system("bleachbit --clean java.cache")
  172.  
  173. import os
  174. os.system("bleachbit --clean kde.cache")
  175.  
  176. import os
  177. os.system("bleachbit --clean kde.tmp")
  178.  
  179. import os
  180. os.system("bleachbit --clean konqueror.cookies")
  181.  
  182. import os
  183. os.system("bleachbit --clean konqueror.url_history")
  184.  
  185. import os
  186. os.system("bleachbit --clean ‭opera.cache")
  187.  
  188. import os
  189. os.system("bleachbit --clean ‭opera.cookies")
  190.  
  191. import os
  192. os.system("bleachbit --clean opera.current_session")
  193.  
  194. import os
  195. os.system("bleachbit --clean opera.dom")
  196.  
  197. import os
  198. os.system("bleachbit --clean opera.download_history")
  199.  
  200. import os
  201. os.system("bleachbit --clean opera.search_history")
  202.  
  203. import os
  204. os.system("bleachbit --clean opera.url_history")
  205.  
  206. import os
  207. os.system("bleachbit --clean seamonkey.cache")
  208.  
  209. import os
  210. os.system("bleachbit --clean seamonkey.chat_logs")
  211.  
  212. import os
  213. os.system("bleachbit --clean ‪seamonkey.cookies")
  214.  
  215. import os
  216. os.system("bleachbit --clean ‪seamonkey.download_history")
  217.  
  218. import os
  219. os.system("bleachbit --clean seamonkey.history")
  220.  
  221.  
  222. import os
  223. os.system("bleachbit --clean skype.chat_logs")
  224.  
  225. import os
  226. os.system("bleachbit --clean system.cache")
  227.  
  228. import os
  229. os.system("bleachbit --clean system.clipboard")
  230.  
  231. import os
  232. os.system("bleachbit --clean system.localizations")
  233.  
  234. import os
  235. os.system("bleachbit --clean system.memory")
  236.  
  237. import os
  238. os.system("bleachbit --clean system.recent_documents")
  239.  
  240.  
  241. import os
  242. os.system("bleachbit --clean system.rotated_logs")
  243.  
  244. import os
  245. os.system("bleachbit --clean system.tmp")
  246.  
  247. import os
  248. os.system("bleachbit --clean system.trash")
  249.  
  250. import os
  251. os.system("bleachbit --clean thumbnails.cache")
  252.  
  253. import os
  254. os.system("bleachbit --clean transmission.cache")
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273. print("turn down the computer")
  274.  
  275. raw_input("Press Enter to continue...")
  276.  
  277.  
  278.  
  279.  
  280.  
  281. print("shutdown system in 10 second")
  282. print("shutdown system in 9 second")
  283. print("shutdown system in 8 second")
  284. print("shutdown system in 7 second")
  285. print("shutdown system in 6 second")
  286. print("shutdown system in 5 second")
  287. print("shutdown system in 4 second")
  288. print("shutdown system in 3 second")
  289. print("shutdown system in 2 second")
  290. print("shutdown system in 1 second")
  291.  
  292. import os
  293. os.system("shutdown -h now")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement