RUN AUTOMATIC A PYTON SCRIPT on NVIDIA JETSON NANO while start or reboot with Crontab!

RUN AUTOMATIC A PYTON SCRIPT on NVIDIA JETSON NANO while start or reboot!
To get into ROOT

$ sudo su

root $ crontab -e

mm hh DOM MON DOW Command (Minute,hours,dayOfMonth,Month,DayofWeek,Command)
A * means allways on, a number will set a date/hour etc.

press i for INSERT
write down the next line for python3 use and allway running the script.

* * * * * /usr/bin/python3 /home/(YOUR NAME)/(WHERE THE FILE IS LOCATED)/ (.py FILE NAME)

Press ESC to get out of the file
To save and exit press
:wq

You must use the double dots!!!

#CTRL-D to get out of root

#Now reboot and chilll !!!

1 Like

Nice! Thanks for your sharing to community!

1 Like

@kayccc , and another tip, for people who use OPENCV, turn the cv2.IMSHOW off when you use this way. If you don’t , the script get on and off and on etc.
From start jetson nano to the start of the desktop can take upto 60 or 90 sec, and in the worst case 105 sec (1min45sec) if you use OPENCV to load the script automatic.
FYI people, relax and chill.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.