Does rbash restrict the use of functions?
I’ve built a sandbox that restricts the user to the rbash shell. But what I’ve found was that the user was still able to execute functions which can be bad for the environment because it enables the use of a fork bomb:
Does rbash restrict the use of functions?
I’ve built a sandbox that restricts the user to the rbash shell. But what I’ve found was that the user was still able to execute functions which can be bad for the environment because it enables the use of a fork bomb:
Why does my program started from a bash script get stopped when the script is backgrounded, but only when it gets stdin from a named pipe?
As described in the title, I am trying to run a program from a bash script, but it is getting stopped when I background the script. However, this is only the case when I redirect its stdin to a named pipe and keep the pipe open from the same script.
How can I use Bash to listen to multiple input devices on Linux?
I’m trying to write a shell script to wait for input from any one of multiple devices, then from the input event determine which button was pressed and which device it came from.
How to parse Raw Value from smartctl linux
Trying to write a script in Unraid using hdd smart values. How Can I parse the RAW_VALUE of a sensor? In my case it is 45
Why is the PID and PPID of subshell same as that of the main shell?
The old.sh
file contains the following code:
‘Rev’ and ‘Cut’ Commands ginving weird output
While working on a personal ETL (Extract-Transform-Load) project, where weather data from an open-source project (wttr.in) is downloaded and relevant data is extracted and formatted into record fields for a report.
Backup files to Cifs Share and locally
i need to mv files from a directory to a cifs share and wanted to do a copy locally first to still have the original files. right now we had the problem that if the cifs share is somehow down those files get moved into the void.
i thought after copying the files locally i could to a logrotate on these files to archive them (audiofiles) and get them removed after 60 days.
Xargs seems not to pass some files
Xargs seems not to pass some files.
Function in bash ignoring options when called through command substitution
Here is a script I have written for logging in bash called echoline.sh
. When called with the flag -e
, echoline prints to stderr instead of stdout. With the flag -o
, the script writes to a given file.