All Questions
Tagged with shell-script terminal
203 questions
0
votes
2
answers
24
views
create unique folder on startup with rpi cam
I have a pi cam on a pi zero that needs to run for the whole duration of being on. this pi camera module is being used in stratospheric launch and during our last one we were able to get videos back, ...
0
votes
0
answers
71
views
Why is the startup script specified in the ENV variable executed twice in sh?
I want to put some actions when a non-login terminal is opened, but for some reason, it is executed twice. On the system default shell is sh, symlink to bash.
I set the value in environment variable ...
2
votes
2
answers
365
views
How to prevent a bash script from running repeatedly at the start of the terminal
I am physically connected to the machine an I use Arch linux. I use Arabic in the terminal and I use BiCon to add bidirectional support for the terminal (I am using st).
I want the program to start ...
-1
votes
2
answers
264
views
Is it possible to translate bash to another human language like Arabic?
Bash commands are written in the Latin alphabet, is it possible to translate them to another language? In this case, Arabic. Arabic is written rtl and I remember I tried it using alias before when I ...
3
votes
3
answers
908
views
Alternatives to file polling?
In the following code, I have to poll $tmp_input to continue executing the code because wezterm cli send-text is asynchronous. This makes sure that $tmp_input is ready.
tmp_input=$(mktemp ./tmp_input....
1
vote
2
answers
5k
views
How to run the command "sudo sh /path/to/script.sh" by double clicking?
I have a question from this thread How to run a bash script by double clicking by entering the path in sudoers?. Since it was explained to me that it is unsafe to grant sudo privileges to the script....
0
votes
0
answers
51
views
How to run a process in the background using a bash script? [duplicate]
When I run the command in the terminal: sudo badvpn-tun2socks --tundev tun0 --netif-ipaddr 10.0.0.2 --netif-netmask 255.255.255.0 --socks-server-addr 127.0.0.1:8080 I get a terminal with packet data ...
-3
votes
1
answer
243
views
What happens if you put /dev/urandom into a shell script and run it?
I want to know what happens when you run the contents of /dev/urandom as a shell script. I know when you cat it into a terminal it will set off a bunch of random things in the terminal environment. ...
0
votes
0
answers
73
views
BASH: Is there a way to READ the current foreground and background color in use? Not CHANGE them... just see what the user is using NOW? [duplicate]
Some background for any who find this later
This is a question about colors being applied in the shell. NOT about how to CHANGE said colors (there's a bajillion answers for that). But how to READ them....
0
votes
1
answer
90
views
Is there any way to permanently have shell aliases on an imutable system
I'm on blendOS https://blendos.co/ which is an immutable operating system which means I cant just add a file to /bin/ like you would do normally to add a custom command
right now I'm keeping it simple ...
1
vote
2
answers
613
views
How to scan with ocr bash script
To streamline the scan process I intend to create a script that scans and applies OCR in one step. However my bash skills are rather poor, so I would be very thankful for a bit of help. Here my ...
1
vote
0
answers
297
views
Login directly through terminal to a new GNOME session passing user and password as input parameters
I would like to know if there is any possibility to login directly to a new GNOME session without the need to put the login and password using automation tools like pyautogui, xdotool, uinput... (I ...
0
votes
1
answer
507
views
Run a scheduled command on open terminal
A task/script scheduled with cron or at (AFAIK) can not run inside a specific terminal: it can only print the output (through redirection) of a task/script to a specific terminal.
Instead, I would ...
0
votes
0
answers
703
views
Unbound variable when passing to npx
I'm trying to create a simple script in my package.json file of my node project
{
"scripts": {
"db:create-migration": "echo 'Enter a filename' && read name &&...
0
votes
1
answer
400
views
terminal output is broken in docker compose output
Im facing an issue with how the log in docker compose looks like, seems somehow broken as shown below
==> Emulator is ready : '1' is not completely override the previous output "please wait&...