Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = raw_input("Escolha a hora desejada para efectuar o restart(xx:xx)- ")
- openfile = open('/etc/rc.local', 'r+')
- openfile.seek(405)
- openfile.write('shutdown -r ')
- openfile.seek(417)
- openfile.write(x)
- openfile.close()
Advertisement
Add Comment
Please, Sign In to add comment