Questions tagged [script]

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

249 questions
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
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
2
votes
2 answers

Hello world script doesn't work

I'm trying to get a simple script "test1.sh" to work on my pi, but keep getting -bash: test1: command not found the script is literally: #!/bin/bash echo "Hello World!" and called test1.sh, located in the /home/scripts directory. I can navigate…
reggie
  • 1,121
  • 4
  • 14
  • 30
1
vote
3 answers

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 to update my date on boot and now realize the…
user2144480
  • 111
  • 2
1
vote
2 answers

Run something after login

Let's say I used raspi-config to set my raspberry pi to auto-login to the 'pi' user. How would I have something run after login? My desired effect is that I plug in the pi, and without giving it any input, it boots to a desktop and then runs a shell…
Charles Noon
  • 113
  • 1
  • 1
  • 4
1
vote
1 answer

login information for website from linux command line

My internet connection is provided by the university. It is protected to a username/password combination. This means when I start up my computer, I have to start a web browser and open an arbitrary website. I am then redirected to a page, which…
Lkaf Temravet
  • 1,195
  • 4
  • 15
  • 32
0
votes
1 answer

I want to do this, what programming languages and libraries do I need to know?

I want to run a program or script on Raspberry Pi 3B+, which allows the user to set an amount of time for it to connect to WiFi 1, after the expiry of that time it has to connect another WiFi 2 for another amount of time, after the expiry of this,…
0
votes
1 answer

autostart script stop working

i have a script in /etc/init.d name: vinh.sh used to call another sript, Its contents are as follows: #!/bin/bash cd /media/usb/demo source ./list.sh and contents of list.sh: #!/bin/bash cd /home/pi/matrix while true; do sudo timeout 20…
Pham Vinh
  • 3
  • 1
0
votes
2 answers

Launch terminal ro run hangoutbot on raspberry start

I'm a bit newbie in the raspberry world, and Linux commands, etc.. I installed a hangoutbots in Raspberry and I launch it in terminal as tutorial said. But my problem is that I need it to have "24/7", so I need to launch terminal and start…
Shudy
  • 103
  • 3
0
votes
1 answer

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. vcgencmd and the man page refers to the display_power…
-2
votes
1 answer

Two or possibly more scripts running at the same time

I am thinking of using a Raspberry Pi for controlling some hardware. The first of which is an actuator that a push button would rotate one direction, then a second push rotates it back. The second script would be for keeping the unit cool: I am…