Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

non-compiled programs written in scripting languages (e.g. perl, python or tcl) or command line interpreters such as Unix shell.

0
votes
0answers
11 views

How can I monitor the input levels on a usb sound card?

I need a script to monitor the levels on a usb sound card and when they drop below a certain level make a post request to an api. I know this is possible but I'm having a hard time figuring out the ...
0
votes
0answers
11 views

How to execute a script.sh with a sequence of joystick+button

I would like to know if I could find a way to bind a combo like the "hadouken" (Hadouken is a combination of movement of a joystick: down, down-right, right + button ) of street fighter to make an ...
0
votes
1answer
39 views

“bin/bash: bad interpreter: No such file or directory” when running shell script

I wrote a shell script for my Raspberry Pi and made it executable. When I run ./filename.sh, I see an error: bash: ./filename.sh: bin/bash: bad interpreter: No such file or directory I wrote this ...
2
votes
2answers
41 views

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 ...
0
votes
1answer
26 views

My script in init.d fails on boot, fails as a service, but works fine when executed manually

I created the following script in /etc/init.d/bootscript.sh The script has these permissions: -rwxr-xr-x 1 root root 855 Aug 1 22:44 bootscript.sh # /etc/init.d/bootscript.sh ### BEGIN INIT INFO # ...
0
votes
0answers
60 views

Raspbian - Run Python script at startup

I have a Python script which is a Webserver. It works perfectly but I want it to start, automatically, at startup of the Raspberry Pi. I tested many things but nothing runs my Python script: crontab ...
0
votes
0answers
24 views

printing info from weather utility [duplicate]

I've download the weather-util on raspberry pi. Is there a way to print the info from a python script? Say you want the weather info for jfk, so the command is weather jfk.
3
votes
2answers
98 views

Setting timezone non-interactively

What's the best approach for configuring the Time Zone non-interactively? Previously for hostname, I've used sudo raspi-config nonint do_hostname However, I am unable to locate the equivalent ...
0
votes
3answers
39 views

Raspberry Pi Random Turns Off

So, I was doing a project with PWM (Pulse-width modulation) but something unsual happens, my raspberry pi turns off. I am using a RPi model 2B, and my circuit looks as follows simulate this circuit &...
0
votes
0answers
65 views

xdotool not working as expected at startup

I am trying to simply launch Chromium at startup, then have xdotool press F11 to make it fullscreen. I don't want to use --kiosk mode so please don't suggest that. My autostart file is: @lxpanel --...
1
vote
0answers
27 views

Unwanted calls of program with GPIO

I configured a Raspberry Pi 2 with a button. I have a script in python, which will call a command, if someone press the button. The command doing a sip phone call to a phone server (cisco ...
-1
votes
1answer
64 views

Force Sensing Resistor with Raspberry Pi

I have a school project where I have to make a car park with a fully functional parking lot checking system. The FSRs job is to detect any weight and send a signal to the raspberry pi that the ...
0
votes
0answers
84 views

Turn On Raspberry Pi and Modem GSM/GPRS with only raspberry

I am new in Raspberry and I am looking a way to turn on my raspberry and my modem GSM/GPRS with only the switch of the raspberry. I am using Raspberry Pi 3 model B and this modem: https://www....
-2
votes
1answer
48 views

How to write a script which execute multiple commands on multiple terminal windows

I am trying to make a script on the following basis: Open a terminal window (keep it open) and run cd ~/dir/dir/dir ./exec Open a second terminal window (keep it open) and run /usr/bin/xterm -font/...
0
votes
1answer
40 views

Run script to setup Socks Proxy on Pi Startup

I'm new to the Pi, and have come across heaps of streams that seem to need you to pair using the same IP before they will play - Openload etc... I read and found you can create a socks proxy that ...
0
votes
2answers
55 views

Run script on boot.

I want to know my Public IP address of PI using script and script should be start running automatically when my raspberry pi boot and Store output in some file, so that i can use later on. Actually, ...
0
votes
1answer
83 views

how to run rtl_fm from a bash script

I'd like to know if it's possible to run rtl_fm from a .sh file: I know it's possible, but what I'd like to do is to run it, record for 5 seconds (I can place a sleep here) and stop the process (in ...
0
votes
1answer
26 views

Web App on computer : Ssh connection to PI + script execution possible?

I'm sort of new with web app programming so sorry if it is obvious for you guys! I appreciate the time you take for me ! I tried to explain my problem the best I could in the title! :p I am building ...
1
vote
1answer
1k views

Remote full reset (re-install) of a Raspberry

I've had a Raspberry Pi now for some time. I did a lot of fun stuff with it. A lot of the fun stuff is still on there, and that's not always fun. I could reset my Raspberry Pi by walking over to it, ...
0
votes
0answers
61 views

How to run scipt using camera automatically at bootup?

I am trying to make a cane that uses the Raspberry Pi to take a picture, analyze it through an API and output it through a speaker. It is supposed to start on bootup. The raspberry pi is connected to ...
4
votes
2answers
602 views

How to set up dashboard for monitoring PI processes

I have PIs that use a schedule to play videos on loop. The PIs also use a daemon file 'surround.sh' to control the video player, and the daemon script allows the user to check the service status of ...
0
votes
0answers
106 views

Start python script using screen at start up

I've copied a project from github and I'm trying to make it work but I don't have much experience with programming. Here is the original project. https://github.com/sujay2002/door_lock_pi I need a ...
0
votes
0answers
36 views

3g usb stick for Internet and sms

In a remote place that there is not any DSL connectivity i deployed a rpi with a 3g usb stick (E169) from 'Three'. With that stick and sakis3g https://github.com/Trixarian/sakis3g-source i have 3g ...
1
vote
1answer
59 views

How can I create a new Login menu for the pi and run my own script? (run script before pi login)

I want to run a script after pi boots but before log in (Raspbian Stretch Lite). It should run after all the other configurations are done. So I thought about finding and changing the RPi log in ...
0
votes
0answers
182 views

python code to restart script from within itself?

I'm interested in trying to restart a script if a certain condition is met. My goal is, if this condition is met, do the equivalent of clicking the "Interrupt/Reset" button, and then clicking the "Run ...
0
votes
2answers
1k views

How to start a python3 script on startup without login? (stretch image) [closed]

I am trying to start a python script called "irremote.py" on startup (currently in my home directory). I am running raspbian-stretch on a Pi Zero W, and I would like the script to start without a ...
0
votes
2answers
2k views

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 ...
1
vote
1answer
325 views

UDEV won't run any script, file or inline

I have a Raspberry Pi 3 model B. I installed Raspbian using NOOBS, and it worked great. I had a project that needed to execute certain actions when a USB device was connected. I learned about udev, ...
2
votes
1answer
49 views

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 ...
0
votes
0answers
153 views

help with script/code for controlling a relay based on 2 temp sensors

I have looked through the basic "control a relay with a temp. sensor" threads and have been able to activate a relay based on the temp of one sensor. What I would like to do is control a relay on my ...
1
vote
1answer
150 views

Run script on terminal at startup

I want to run a command in a terminal (not background) every time my pi is completely booted (once it loads the desktop). I tried to edit the rc.local and add these commands sleep 10 chromium-browser ...
1
vote
0answers
266 views

Boot script to check for dirty bit/corruption on a USB stick or SD card

I posted this question on the Raspberry Pi forum but got no activity. If it is a dumb question or something else, please say so... While not often, I do experience power outages which stop one of my ...
0
votes
1answer
503 views

RuntimeError: No access to /dev/mem

I'm using the PXfmini with the raspberrypi3 for a project and I need to use mavros and python code. My operative system is Frambuesa. I created the catkin workspace and I tested the c++ file ...
0
votes
0answers
113 views

autorun sh on USB

I'm working on a simple project for storage at home. I'd like to create an automated sh file, place it on a usb and have it move files from a directory on the USB to a local storage. Simple enough, ...
0
votes
0answers
40 views

Script using “Coproc” command behaves differently at startup vs. CLI

I am working on a cool little project for my 3 year old. It is a small box with a telephone handset in which, he can walk up an push either the "Dad" button or the "Mom" button. It will then call one ...
0
votes
2answers
3k views

Update Node JS and delete old one

I've a lot of Raspberry Pi clients, which I've initialized with a 4.5.0 Node JS version, using the following lines of code: wget https://nodejs.org/dist/v4.5.0/node-v4.5.0-linux-armv7l.tar.gz tar -...
-1
votes
1answer
887 views

Automating web page login with bash script

I have been looking to write a script to automate login on an internal company website that is used as a Ping Board to monitor a network of IP connected cameras. I am pretty new to bash scripting and ...
0
votes
1answer
421 views

start omxplayer with matchbox window manager

I have a RPI 3 with Raspbian Jessie, set up to boot in cli mode, autologin with user pi. I have installed matchbox window manager because it's lighter than lxde and I use only chromium and omxplayer. ...
1
vote
1answer
646 views

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 ...
0
votes
1answer
75 views

Running Alexa processes inside Screen to save desktop real estate

Here's the story (TL;DR is at the bottom): I've followed the tutorials in the github page and pimylifeup for setting up Alexa on a RPi3. I now have a working Alexa, started with a nice script. Great ...
1
vote
1answer
306 views

Run shell script from PATH using root

I have added a shell script to my ~/bin folder. When I type the script name normally in the terminal it finds the script just fine. However, when trying to launch the script using the sudo prefix, I ...
0
votes
2answers
1k views

RPi3 running bash script on boot

I've tried several times with slightly different tutorials (including here) to run a bash script when my Pi boots, however still no luck. I have a simple script that uses screen which I installed so I ...
0
votes
2answers
239 views

rc.local is recreated each boot?

This has to be the strangest thing I have seen on Linux yet. It's almost like I'm running a live CD but clearly not. I did a standard raspberry install and have been using it for a long time. I wanted ...
1
vote
0answers
37 views

Bluetooth pairing Galaxy Tab

I would like connect my Galaxy TabS2 to my Raspberry Pi. After that, I would like write a script to do it automatically. When I do this with bluetoothctl, I have a message (Pairing Requested) at the ...
1
vote
1answer
76 views

libtbb sh script not working

I am trying to obtain opencv on my raspberry pi 3B. I noticed there is no official guide for this so I am following the linux guide on the opencv website. and as many others have encountered, libtbb ...
0
votes
1answer
3k views

(python 3) Auto-Conversion from .h264 to .mp4 [closed]

I have a Python 3 code that is supposed to record video. Unfortunately, I do not ant it in .h264, I need it to convert to .mp4. I thought the easiest way to do this would have been to use subprocess....
1
vote
1answer
2k views

Execute python script with web server apache2

I have a problem, I can't execute a Python script on my Raspberry Pi 3. I set an Apache server to execute a python script by following a tutorial. I can execute the following script: #!/usr/bin/...
2
votes
2answers
2k views

Run script or command after boot [duplicate]

I need to run sudo mount -a after boot since auto mount of the share doesn't happen as needed (/etc/fstab contains the right code for that ). How can I do this on Jessie Pixel?
0
votes
5answers
2k views

omxplayer won't play on boot

I have a python script that needs to run the omxplayer after the pi is finished booting on the latest version of Raspbian whit Pixel. I have tried the 3 different methods from the accepted answer ...
1
vote
0answers
67 views

Cron job won't run bash script [duplicate]

I'm trying to create a cron job that will run at the beginning of every hour on raspbian My script is as follows: #!/bin/bash timeout 150s chromium-browser http://touchcast.com/tjin_daily/...