User:Eumal

From ICO wiki
Revision as of 13:30, 1 June 2011 by Eumal (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

QUEST 28

 #! /bin/bash
 #Erko Umal A21
 # Skript mis kustutab Opera veebibrauserist bookmarkidest kirjeldused
 #
 #Tuleb paigutada ~/.opera sisse ja muuta täitmisfailiks (chmod a+x)
 #
 mv bookmarks.adr bookmarks.adr.bak
 awk '!/DESCRIPTION=/' bookmarks.adr.bak > bookmarks.adr


PYTHONi KODUTÖÖ

#!/usr/bin/python
#Autor: Erko Umal A21
#Versioon 0.7
#Skript mis äratab ka kõige unisema pythoni skriptija


import time import os

not_executed = 1

while(not_executed): dt = list(time.localtime())

#Mis tunnil tahetakse äratust

hour = dt[3]

#mitmes minut

minute = dt[4]

if hour == 5 and minute == 45:

os.popen2("open /kaust kust tahetakse mingit heli võtta/xxx.mp3")

not_executed = 0

print("Tere Hommikust Unimüts")