Questions tagged [bash]
For questions pertaining to the `bash` shell command processor.
268 questions
2 votes
1 answer
87 views
Play different playlists of music on a music player, changing playlist at fixed time of the day [closed]
I have a Raspberry Pi 4 Rev 1.5, with Linux version 6.6.62-rpt-rpi-v8. I want to use this system to stream music to a icecast server, and I am using BUTT and Rhythmbox. I would like to change the ...
0 votes
1 answer
86 views
Can't use tkinter, and may have multiple versions of python at once?
Unfortunately, I wasn't able to make this post with all the information I wanted to give. I was originally going to post it from the RPi 400 that I was having all these problems on, but apparently ...
1 vote
1 answer
866 views
Cross compiling file cannot execute: required file not found
I am struggling in trying to cross compile C program using wiringpi library in the ubuntu host, then transfer it to raspberry pi 4. My instruction used old version of wiringpi, which is not available ...
0 votes
1 answer
91 views
Writing bash script to reboot pi 10 times and log output
I have written a Python script and scheduled it to run @reboot using cronjob. Sometimes this script throws an exception sometimes it works perfectly. I want to write test scripts for this. Preferably, ...
0 votes
2 answers
112 views
Cronjob not executing when raspberry pi reboots
The following is the Python script that I want to execute every time Raspberry Pi reboots. When I run this Python script directly from the terminal it works. Not only does IP gets stored in the file ...
1 vote
1 answer
151 views
How to put Raspberry Pi into shutdown by keypress/hold?
I am running latest retropie on a rpi3b+. I am also using retrogame to map GPIO pins the keyboard keys to arcade buttons. What I would like to do is run the sudo shutdown command if a designated key (...
1 vote
0 answers
141 views
bash who command does not give datetime correctly on testing
Edit : We are still looking for differences that would explain why who does not work on testing for user lines (it works for boot lines for instance), this is differences on the code for following ...
2 votes
1 answer
199 views
Error mounting drive at service startup (ExecStartPre)
As a precondition for starting my Syncthing service, I wish to mount an external USB drive (label MyBook). The action must be synchronous, so putting it anywhere else besides the service's ...