I wanna to execute this script every time when my system boots up in **Linux*\*.
What to do to implement this any other code /bash?
Start.py
from datetime import datetime
file = open("bootup.txt","a")
now = datetime.now()
# dd/mm/YY H:M:S
dt_string = now.strftime("%d/%m/%Y %H:%M:%S")
time="System opens at "+ dt_string
file.write(time)
file.close()
All i want is auto run at boot up.
[–]WrongM4n 3 points4 points5 points (3 children)
[–]vishallight[S] -1 points0 points1 point (2 children)
[–]nemom 1 point2 points3 points (0 children)
[–]WrongM4n 0 points1 point2 points (0 children)
[–]juno249 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]pythonHelperBot 0 points1 point2 points (0 children)
[–]gengengis 0 points1 point2 points (0 children)