0

I want to create a text file in a USB flash drive and write to it from a python script . this has happen everytime on autostart (crontab) too. Can anyone tell me how to this?

Abubakr Dar
  • 4,078
  • 4
  • 22
  • 28
bhuvan
  • 65
  • 1
  • 1
  • 9

1 Answers1

0

Well, you sure don't want to use crontab -- that will run on a time-wise schedule.

You probably would have a better time appending your write-script logic (or an execution of your write-script) to the rc.local script in /etc (actually, I forget if it's in /etc or /etc/rc.d on rasperian...

Oh look! Rasperrypi.org has a link to do just that! How convieeeeeenient!

http://www.raspberrypi.org/documentation/linux/usage/rc-local.md

PaulProgrammer
  • 16,175
  • 4
  • 39
  • 56