Questions tagged [script]
non-compiled programs written in scripting languages (e.g. perl, python or tcl) or command line interpreters such as Unix shell.
248 questions
0 votes
0 answers
45 views
USB 4G Dongle disconnect with code
Using the command lsusb i am getting the following output: pi@raspberrypi:~ $ lsusb Bus 001 Device 005: ID 19d2:1405 ZTE WCDMA Technologies MSM ZTE Mobile Broadband Bus 001 Device 002: ID 1a40:0101 ...
0 votes
2 answers
88 views
what is preventing a cron job from running a python script?
I have a bash .sh script that sets up the python virtual environment and then runs some python code. This all works from the command line but nothing happens when I set it up in a cron job. The ...
1 vote
0 answers
70 views
Transmission script when done
I have osmc over a raspberry pi 3 and i use transmission for some downloads. When the download is completed it is automatically moved to a different folder. I use a script to change the owner of the ...
0 votes
1 answer
456 views
How to control the speed of fan in Argon ONE (v2) Pi 4 case on Debian 64-bit?
On Raspberry Pi OS, the original Argon ONE (v2) Pi 4 script just works, link to GitHub: curl https://download.argon40.com/argon1.sh | bash On Debian 12 Bookworm 64-bit, however, it does not, by ...
-1 votes
1 answer
323 views
Help with "-bash: syntax error near unexpected token `do' "
Background: Yes, I'm a noob. I've been learning Debian Linux the last several months. Here's the situation: I have 10 Raspberry Pi's (3B+) with hostname rpi-100 to rpi-109. I am trying to automate ...
2 votes
1 answer
2k views
How to turn monitor on/off? vcgencmd doesn't know about display_power
In times past, I used tvservice to turn the monitor on/off in a script. Now I understand vcgencmd is the current method. I'm running RPi OS 12.4 on a 4GB RPi 5. I installed lib-rasbperrypibin. ...
1 vote
2 answers
159 views
GPIO input pins high at 3V, and detect when ground is connected when I want it to detect when 3V is connected
This is on a Raspberry Pi Zero 2 W The physical pin 3 and 5 (gpio2 and gpio3) are the input pins I am using and for whatever reason, they are at default 3V and detect a change when they are connected ...
-1 votes
3 answers
430 views
Run a shell script on first boot [duplicate]
I want to make a script that runs on boot, as I'm making a PowerShell script to install the Raspberry Pi OS. It needs to install some things on boot. How do I make a script to run on first boot and ...
1 vote
1 answer
107 views
run script after some device from dhcp ip pool connect to hotspot raspberry pi 4
I was searching answer from over a week and still don't find it. I'm fresh user of raspi and linux and network config so be patient for my stupid questions :) I describe my problem. I used raspi to ...
0 votes
0 answers
45 views
Monitor lightbox project – does this exist yet?
I have a second monitor next to my iMac. What I’d like to do is set up a Pi that simply outputs solid colour to the monitor over HDMI or composite (it has both), thus allowing me to use it as a video ...
0 votes
1 answer
90 views
How can I have the raspberry pi run scripts portably?
I am a noobie and just got a raspberry pi yesterday and I want to create a wifi strength device with my raspberry pi. I have a wireless adapter and alreaady made a script for my linux machine. It ...
-1 votes
1 answer
172 views
New to PI-Automatically move files from sd card to Syncology NAS
My goal: To have video copied from an SD card that is inserted into a Pi 4B using a USB SD Card reader copied to a network share and put in folders based on dates. My scenario. I come home from ...
0 votes
2 answers
298 views
Can't get Cron to run python script
I'm trying to set up porkbun dynamic dns python script to run at reboot via Cron (later I'd like to run it hourly, but baby steps...) following porkbun's tutorial https://www.youtube.com/watch?v=...
1 vote
0 answers
154 views
Script only works after opening browser and closing it
I have a script to open 2 webpages one on each monitor. The end of the script selects one of the pages and enters in login credentials. The script works great and I have it working with systemctl to ...
-1 votes
2 answers
348 views
Script running from terminal after setting pythonpath and running "thonny&" command, but not when thonny ide is opened directly
I am using a Raspberry Pi OS 64-bit to run a script that will capture an image. I have gone through installing the right packages for libcamera for this OS and can run libcamera apps using my terminal....