How To Write A Python Script In Raspberry Pi . There, select the new file option, which should open a new text editor window. The terminal commands that i've been using are. Running A Python Script At Boot Using Cron Raspberry Pi Spy from www.raspberrypi-spy.co.uk And the command will be completed by adding the path name of the file which you want to make executable. Your question doesn't make sense. This is how the crontab line looks like for my foodnotifier.py: