non-compiled programs written in scripting languages (e.g. perl, python or tcl) or command line interpreters such as Unix shell.
Questions tagged [script]
248 questions
2
votes
2 answers
How do I make a Java application I made run as a deamon?
I have a Java Application is going to be my Discord Server's bot. How do I make this application run as a daemon on a Raspberry Pi, it uses the latest version of Raspbian and the Java application runs off a jar file, though it does require an env…
user3346931
- 297
- 2
- 6
- 14
2
votes
1 answer
Run bash script after New WiFi connection
Noobs installation. I've a script which needs to be run after a new WiFi connection is set. Is there any way to run this script automatically once we connect/set WiFi?
Entrepreneur
- 31
- 4
2
votes
2 answers
Raspberry pi starting shell script at boot not working
I've been trying to implement a custom procedure triggered by a button connected to my raspberry pi. To do that I've tried to launch a python script on boot that always listens to the button trigger. That's the python script I'd like to run (just…
Alex
- 23
- 1
- 4
2
votes
2 answers
Why doesn't my autostart file run a simple shell script
I am trying to launch a simple script (let's say it is /home/pi/python/python_code/hello-world.sh ) from the /home/pi/.config/lxsession/LXDE-pi/autostart file. I have added the following line to the autostart file to do this: @lxterminal -e…
Ian Simms
- 21
- 1
- 3
2
votes
1 answer
How to start a systemd service as a non-root user?
I've been using qbittorrent-nox on a headless Raspberry Pi 3 B+. The setup was a breeze. But then I wanted to autostart qbittorrent after boot, so I wrote a systemd service unit and enabled it. It worked and the service started on boot. But it was…
sixter
- 53
- 1
- 2
- 4
2
votes
2 answers
Waiting for network connectivity instead of just sleep fixed time
I'm new to the whole Raspberry Pi and Bash scripting thing, so bear with me. I run raspberry autopilot on a remotely controlled vehicle thru a 3G/4G connection. Raspberry Pi is installed onboard the vehicle. It connects to an OpenVPN server, and…
Vladimir P
- 43
- 7
2
votes
1 answer
Monitoring NICs on the Pi
Is it possible to have a script running as a service constantly monitor certain NICs and alert me throught LEDs if one of them has been disconnected or is not properly detected by the OS? Would running something like this use up a lot of the Pi's…
user942937
- 195
- 1
- 11
2
votes
2 answers
How did I launch this Python script at boot?
I have a Python script running at boot, on a Raspberry Pi, and of course I didn't write down how I set it up. Now I need to change it, and I can't for the life of me figure out how it's getting launched. How can I figure this out? I've searched for…
swizzlevixen
- 313
- 1
- 2
- 12
2
votes
3 answers
Run a shell script from a python script when a button is pressed
I'm trying to create a very simple python script that waits for a GPIO button press and then runs a shell script. I personally don't know much about python so what I've come up with is mostly from other sources with a similar issue. import RPi.GPIO…
Sam Cairns
- 29
- 1
- 1
- 2
2
votes
1 answer
Is there a key combination to get to the terminal?
Yesterday, I was trying to get a script to run on boot and it worked. I edited the rc.local script so it would do the commands I wanted. However, I rebooted my Raspberry Pi and I can't type in commands. Is there some way of skipping the script and…
Titchy2005
- 73
- 1
- 1
- 6
2
votes
1 answer
Issues when trying to open Chromium at a certain URL on boot
I am having some issues with automating tasks at boot on the Pi. I have tried numerous different methods to do this including the systemd method and the .bashrc method. The command is a simple one used to open chromium fullscreen and direct to a URL…
JayBuckel
- 49
- 3
- 10
2
votes
1 answer
Copy images from flash drive when inserted
I would like to automatically copy the contents of a USB flash drive to the internal storage of the Pi whenever I insert the flash drive into one of the Pi's USB ports. I have set up a python script to handle the copying: import os from shutil…
Daniel
- 161
- 1
- 4
2
votes
1 answer
using /etc/profile over /home/pi/.profile
Is there an advantage over using /etc/profile over /home/pi/.profile ? And when to choose which one to use?
clankill3r
- 202
- 1
- 3
- 10
2
votes
4 answers
Running multiple scripts from different languages
This is mostly a conceptual question. Is it possible to have two scripts running on a Raspberry Pi, where one is a Julia script, and one is a Python script? In the most general case of this, is there an obvious reason this wouldn't work?
Graham Chapman
- 123
- 3
2
votes
2 answers
How to easily "unload" images from timelapse rpi without display onto flashdisk
I am about to set up an outdoor timelapse with rpi and I wont have internet connection nor display on the site. What is a good way to prevent rpi clogging up with images? I am thinking maybe some script (can you point in the right direction?) that…
wesalius
- 121
- 1