All Questions
16
questions
1
vote
0
answers
46
views
any_name.sh (bash) runs in one directory, not in another
I have a problem with a specific directory (under Raspbian)
The shell I use is simple
===
pi@R4:~/log $ cat no_no.sh
#!/bin/bash
echo "juju"
exit 0
===
Problem directory is ~/log :
===
pi@...
-1
votes
1
answer
101
views
Computer Architecture – Why are they different even if the machine is the same?
I've got a Raspberry Pi 4.
If I install NOOBS / Raspbian and run the comand.
uname -m I get armv7l as an output.
If I install Ubuntu on the very same Pi (same hardware)
Running uname -m yields arm64.
...
1
vote
1
answer
829
views
Writing a systemd script that starts 2 applications in linux
OS: Raspbian
I'm failing to execute 2 applications at once with rc.local
I need to find a simple example for how to start an app with systemd
The problem is Im only finding specific examples for ...
1
vote
0
answers
381
views
Some key bindings in `screen` do not work as expected
I recently installed screen for Raspbian Buster using bash and it doesn't seem to work completely.
I am able to create a new window using Ctrl+a c and flip between the windows. I can see the windows ...
2
votes
0
answers
176
views
Udev, scripts and permission
Founds lots of other posts with "similar" problems, but none that are actually close to the issue I have.
Raspberry PI Raspian.
My Udev rule:
SUBSYSTEM=="block", ACTION=="add", RUN+="/bin/bash usr/...
1
vote
0
answers
237
views
RSS parser interacting with another software using Bash or Python
I'm trying to create a program or script (let's call it Worker) running in Linux environment (desirable would be Raspbian or Debian), that collects links from RSS feeds and sends them to another 2 ...
2
votes
1
answer
899
views
Why can't my RaspberryPi execute these basic commands as pi?
As it says in the title, my RaspberryPi can't execute some basic commands (e.g. ls, mkdir, su, ...) with the user 'pi'. I always get the following as output:
-bash: /home/pi/bin/ls: Cannot execute ...
2
votes
1
answer
92
views
Bash condition not met when executed by crontab
I have a small script to start a fluidsynth server and then connect it to my midi device on my rasberry (OS is raspbian stretch lite).
echo "Starting"
fluidsynth -is -a alsa --gain 3 /usr/share/...
1
vote
1
answer
2k
views
How to call a function inside a bash script on Raspbian?
I have this script that I use on Centos for many years. I am calling the same script on Raspberry Pi now and I get this error:
/media/Backups/backup_all.sh: 2: /media/Backups/backup_all.sh: source: ...
0
votes
2
answers
125
views
Confusing Debian PATH behaviour and `which` results with bash install script
I installed Raspbian Jessie which comes with node v0.X which is the latest version of node that is available on Raspbian repositories. So I made a script which installs v6.7.0:
#!/bin/bash
sudo apt-...
1
vote
2
answers
505
views
Cronjob not running script
I've created a script to get my external IP address, check if it's changed and if it has, email it to me letting me know.
Here's the script, aptly named ip.sh (server hostname is "odin"):
#!/bin/sh
...
2
votes
1
answer
979
views
How can I control my minecraft server when I run it at boot with a rc.local script?
I have a question your you guys.
I'm running a MC server so far so great. In order to make it autonomous I run it at boot with a bash script load in rc.local, simple.
#!/bin/bash
cd /home/minecraft ...
0
votes
1
answer
259
views
How to kill a pid based on the result of an if statement
I'm trying to make a program restart if it has only one pid associated to it (it has to have two pid). if it has more than one it is ok, i've tried to write a bash script to do it but I'm struggling ...
1
vote
2
answers
2k
views
Linux: How to kill a root owned process by parameter's name?
I would like to know how to kill processes owned by the root based on their parameter's information:
root 3176 0.0 0.8 3604 2252 ? S 21:33 0:00 sudo python main.py
root ...
4
votes
2
answers
8k
views
How to kill a continuous process started from rc.local?
I'm working on a Raspberry Pi with Raspbian (Debian-based) OS. For testing I added such a command in /etc/rc.local:
python /home/pi/test.py
It works fine starting this script. But the problem is ...