The Stack Overflow podcast is back! Listen to an interview with our new CEO.
    Post Closed as "duplicate" by goobering of
2 added 134 characters in body
source | link

I have a python file that I would like my Raspberry Pi 3 B to run, the instant that I plug the power cable in. I dont want to have to log in or connect a computer to it before the file starts running. Ive looked around on the internet and a lot of them say to edit the /etc/inittab file, which is a file I dont have on my Raspberry pi. Ive also tried editing raspi-config and set the login to automatic but it still asks for a password when ssh ing in.

Please could someone help me with this?

edit: I didnt mean the "instant" literally, I just would like for it to run without me doing anything to it after it is plugged in.

I have a python file that I would like my Raspberry Pi 3 B to run, the instant that I plug the power cable in. I dont want to have to log in or connect a computer to it before the file starts running. Ive looked around on the internet and a lot of them say to edit the /etc/inittab file, which is a file I dont have on my Raspberry pi. Ive also tried editing raspi-config and set the login to automatic but it still asks for a password when ssh ing in.

Please could someone help me with this?

I have a python file that I would like my Raspberry Pi 3 B to run, the instant that I plug the power cable in. I dont want to have to log in or connect a computer to it before the file starts running. Ive looked around on the internet and a lot of them say to edit the /etc/inittab file, which is a file I dont have on my Raspberry pi. Ive also tried editing raspi-config and set the login to automatic but it still asks for a password when ssh ing in.

Please could someone help me with this?

edit: I didnt mean the "instant" literally, I just would like for it to run without me doing anything to it after it is plugged in.

1
source | link

Running python script on power up

I have a python file that I would like my Raspberry Pi 3 B to run, the instant that I plug the power cable in. I dont want to have to log in or connect a computer to it before the file starts running. Ive looked around on the internet and a lot of them say to edit the /etc/inittab file, which is a file I dont have on my Raspberry pi. Ive also tried editing raspi-config and set the login to automatic but it still asks for a password when ssh ing in.

Please could someone help me with this?