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?
Asked
Active
Viewed 793 times
0
-
Please read [How to Ask](http://stackoverflow.com/help/how-to-ask) – David Feb 04 '15 at 06:41
-
Its more like a statement then a question. – Abubakr Dar Feb 04 '15 at 06:46
1 Answers
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