Tweeted twitter.com/#!/StackRaspi/status/497370762958082049
4 corrected spelling mistake in header
source | link

autoruning autorunning a python script at startup not working

I have a script called BOAT.py and it lives in /home/pi/.

I want to autostart it at boot and I did a lot of research about doing so. I found many ways but none of them work.

I tried writing sudo python BOAT.py in the /etc/rc.local, I created a launcher.sh script and added it in crontab -e, I created a desktop file and added it to the autostart folder in the .config file, and I tried writing to .bashrc (that one says unexpected end but) nothing works.

The script just has to start at login or boot.

Thanks for any help

Edit:

Yes. The script runs if invoked from the terminal. In the /etc/rc.local I have this:

sudo python BOAT.py&

and in the crontab U have a script called launcher.sh. The launcher.sh file has this code:

cd /
cd /home/pi/BOAT.py   
cd/

autoruning a python script at startup not working

I have a script called BOAT.py and it lives in /home/pi/.

I want to autostart it at boot and I did a lot of research about doing so. I found many ways but none of them work.

I tried writing sudo python BOAT.py in the /etc/rc.local, I created a launcher.sh script and added it in crontab -e, I created a desktop file and added it to the autostart folder in the .config file, and I tried writing to .bashrc (that one says unexpected end but) nothing works.

The script just has to start at login or boot.

Thanks for any help

Edit:

Yes. The script runs if invoked from the terminal. In the /etc/rc.local I have this:

sudo python BOAT.py&

and in the crontab U have a script called launcher.sh. The launcher.sh file has this code:

cd /
cd /home/pi/BOAT.py   
cd/

autorunning a python script at startup not working

I have a script called BOAT.py and it lives in /home/pi/.

I want to autostart it at boot and I did a lot of research about doing so. I found many ways but none of them work.

I tried writing sudo python BOAT.py in the /etc/rc.local, I created a launcher.sh script and added it in crontab -e, I created a desktop file and added it to the autostart folder in the .config file, and I tried writing to .bashrc (that one says unexpected end but) nothing works.

The script just has to start at login or boot.

Thanks for any help

Edit:

The script runs if invoked from the terminal. In the /etc/rc.local I have this:

sudo python BOAT.py&

and in the crontab U have a script called launcher.sh. The launcher.sh file has this code:

cd /
cd /home/pi/BOAT.py   
cd/
3 fixed grammar, improved formatting
source | link

I am limited on time so please answer vastly. I have a script called BOAT.pyBOAT.py and it lives in /home/pi/ I/home/pi/.

I want to autostart it at boot and iI did a lot of research about itdoing so. I found mainsmany ways but none worksof them work.

i tried writing sudo python BOAT.py in the /etc/rc.local i created a

launcher.sh script and added it in crontab -e i created a desktop and

added it to autostart folder in the .config file...

I tried writing sudo python BOAT.py in the /etc/rc.local, I created a launcher.sh script and added it in crontab -e, I created a desktop file and added it to the autostart folder in the .config file, and I tried writing to .bashrc (that one says unexpected end but) nothing works.

oh and i tried writing to the .bashrc... that one says unexpected end

NOTHING WORKS. theThe script just has to start at login or boot.

Thanks for any help

edit Edit:

Yes. The script runs if invoked from the terminal. In the /etc/rc.local I have this:

sudo python BOAT.py&

sudo python BOAT.py&

and in the crontab iU have a script called launcherlauncher.sh.sh The launcher.shlauncher.sh file has this code:

cd /

cd /home/pi/BOAT.py

cd/

cd /
cd /home/pi/BOAT.py   
cd/

I am limited on time so please answer vastly. I have a script called BOAT.py and it lives in /home/pi/ I want to autostart it at boot and i did a lot of research about it. I found mains ways but none works.

i tried writing sudo python BOAT.py in the /etc/rc.local i created a

launcher.sh script and added it in crontab -e i created a desktop and

added it to autostart folder in the .config file...

but nothing works.

oh and i tried writing to the .bashrc... that one says unexpected end

NOTHING WORKS. the script just has to start at login or boot.

Thanks for any help

edit

Yes. The script runs if invoked from the terminal. In the /etc/rc.local I have this:

sudo python BOAT.py&

in the crontab i have a script called launcher.sh The launcher.sh file has this code:

cd /

cd /home/pi/BOAT.py

cd/

I have a script called BOAT.py and it lives in /home/pi/.

I want to autostart it at boot and I did a lot of research about doing so. I found many ways but none of them work.

I tried writing sudo python BOAT.py in the /etc/rc.local, I created a launcher.sh script and added it in crontab -e, I created a desktop file and added it to the autostart folder in the .config file, and I tried writing to .bashrc (that one says unexpected end but) nothing works.

The script just has to start at login or boot.

Thanks for any help

Edit:

Yes. The script runs if invoked from the terminal. In the /etc/rc.local I have this:

sudo python BOAT.py&

and in the crontab U have a script called launcher.sh. The launcher.sh file has this code:

cd /
cd /home/pi/BOAT.py   
cd/
2 added 123 characters in body
source | link

I am limited on time so please answer vastly. I have a script called BOAT.py and it lives in /home/pi/ I want to autostart it at boot and i did a lot of research about it. I found mains ways but none works.

i tried writing sudo python BOAT.py in the /etc/rc.local i created a

launcher.sh script and added it in crontab -e i created a desktop and

added it to autostart folder in the .config file...

but nothing works.

oh and i tried writing to the .bashrc... that one says unexpected end

NOTHING WORKS. the script just has to start at login or boot.

Thanks for nyany help

edit

Yes. The script runs if invoked from the terminal. In the /etc/rc.local I have this:

sudo python BOAT.py&

in the crontab i have a script called launcher.sh The launcher.sh file has this code:

cd /

cd /home/pi/BOAT.py

cd/

I am limited on time so please answer vastly. I have a script called BOAT.py and it lives in /home/pi/ I want to autostart it at boot and i did a lot of research about it. I found mains ways but none works.

i tried writing sudo python BOAT.py in the /etc/rc.local i created a

launcher.sh script and added it in crontab -e i created a desktop and

added it to autostart folder in the .config file...

but nothing works.

oh and i tried writing to the .bashrc... that one says unexpected end

NOTHING WORKS. the script just has to start at login or boot.

Thanks for ny help

I am limited on time so please answer vastly. I have a script called BOAT.py and it lives in /home/pi/ I want to autostart it at boot and i did a lot of research about it. I found mains ways but none works.

i tried writing sudo python BOAT.py in the /etc/rc.local i created a

launcher.sh script and added it in crontab -e i created a desktop and

added it to autostart folder in the .config file...

but nothing works.

oh and i tried writing to the .bashrc... that one says unexpected end

NOTHING WORKS. the script just has to start at login or boot.

Thanks for any help

edit

Yes. The script runs if invoked from the terminal. In the /etc/rc.local I have this:

sudo python BOAT.py&

in the crontab i have a script called launcher.sh The launcher.sh file has this code:

cd /

cd /home/pi/BOAT.py

cd/

1
source | link