P
P
pixal2015-07-09 09:56:30
bash
pixal, 2015-07-09 09:56:30

Where to throw bash scripts in Raspbian, on Raspberry pi? And how are they launched?

Or can they be thrown anywhere?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan, 2015-07-09
@Ivanzor

You can run scripts via cron (Raspbin is Linux)
The main thing is that the script is executable. You can check with ls -lh.
Wherever you want, store it there, but it would be convenient to create a scripts folder in your home directory. Centralized and convenient.

I
Ilya, 2015-07-09
@mirspo

IMHO, anywhere. Usually either in your home folder or /usr/local/sbin:
The main thing is that there would be access and for convenience, the folder can also be listed in PATH.

M
Max, 2015-07-09
@MaxDukov

well, run (if they have an executable bit) - just specifying the name in the path.
example /home/my_user/scripts/my_script.sh you can check the bit (as Ivan Kuznetsov
already wrote ) via ls -l (execute the command in the directory with scripts, or specify the path - i.e. either cd /home/my_user/scripts/ && ls -l or ls -l /home/my_user/scripts/) you can set the bit with the command chmod +x ( chmod +x /home/my_user/scripts/my_script.sh)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question