[raspberry-vi] Re: Auto-start shell/batch scripts on a pi?
- From: Tim Chase <raspberry-vi@xxxxxxxxxxxxxxxxx>
- To: raspberry-vi@xxxxxxxxxxxxx
- Date: Fri, 18 Nov 2016 05:30:04 -0600
On November 18, 2016, Jacob Kruger wrote:
Ok, Tom, yes, that then executes the python code - thanks.
If you're lazy like me, you can add
export PATH=$HOME:$PATH
to your .bashrc so you don't need the "./" prefix. I prefer to keep
my scripts in another folder, usually ~/bin so I'd
mkdir ~/bin
echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc
mv 1 ~/bin
(if you have other scripts, move them in there too)
That way, they don't clutter up your home directory but are still
accessible on your $PATH
-tim
===========================================================
The raspberry-vi mailing list
Archives:
//www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi
Foundation.
This list is not affiliated to the Raspberry Pi Foundation and the views and
attitudes expressed by the subscribers to this list do not reflect those of the
Foundation.
Mike Ray, list creator, January 2013
Other related posts: