Skip to content
Advertisement

Stop running script but not programm it started

I have a script on my Raspberry Pi that starts the browser in kiosk mode. But if I do so the script keeps running even if i pipe the output to /dev/null like this ./script 2> /dev/null If i stop the script with ctrl+c the browser gets killed as well. How can I run the script without having it to

simple read operating not reading any thing from char device linux

I have a simple code that suppose to read length sized and fetch data from character device in Linux C. This is my code and errno is set to 9. I made sure the file exists and it does. And able to read it with cat /dev/mychardev-0 but why bad file descriptor error at time of read. I am getting

Linux setting variables

I’m running a shell script into Linus and I have a unexpected behavior. It looks like it is not concat both strings but rather it is appending data at the beginning. Any suggestion? Regards Answer When the value of TOOLBOX_ROOT was set, it had a carriage return ($’r’) at the end of it. As a result, the value of the

How to change java version within a bash script?

I have one piece of a script that needs a different java version to the rest of the script, up till now I’ve always manually changed versions with sudo update-alternatives –config java and then just select the one I need. Is there a way to do that within a bash script? I’ve tried export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/bin/java which matches the path listed

How do I create the same directory in every subdirectories in bash?

I’ve been trying to create the directory “a” inside all the subdirectories of “example”. What I tried is the following: But it doesn’t take the ‘*’ as a wildcard, returning mkdir: can not create «example/*/a» directory: It doesn’t exist file or directory Note that I have too much subdirectories in example, so I can’t do it by creating a list.

Advertisement