Skip to main content

Questions tagged [scripting]

A script is a sequence of commands or instructions that are executed by an interpreter program rather than compiled into a standalone executable program.

Filter by
Sorted by
Tagged with
0 votes
4 answers
66 views

I would like to mount a partition of an external hard drive from a script using udisksctl mount --block-device /dev/sda1 and in the end of the script I would like to unmount it. However, it may ...
Alexey's user avatar
  • 2,380
1 vote
1 answer
39 views

I'm trying to compile the drm-subtree of JSM because I want to enable the panfrost driver on the RockPro64 / KHADAS EDGE-V / RK3399. The code is here: https://github.com/jsm222/drm-subtree He improved ...
john_connor's user avatar
1 vote
1 answer
39 views

made a simple command to change my power mode to "balanced-performance" (lenovolegion power mode for custom mode), works fine in terminal and running the file, but when listing it as a ...
bomby's user avatar
  • 11
0 votes
7 answers
2k views

Bash allows to export read-only variables and functions to the environment. Also, when a bash script is run, Bash sources the file BASH_ENV was set to, unless invoked with -p. How do you protect ...
anick's user avatar
  • 601
2 votes
1 answer
78 views

The goal is to get modbus ascii working with a Wallbox from ABL. So I placed a RS485 to TCP converter in the box, created a pseudo tty for my application and got the wrong frame. The answer starts ...
martin's user avatar
  • 21
0 votes
3 answers
569 views

I have a third-party service. Its API and credentials let me scrape service data on my local Linux machine. I want to use this API inside a bash script and launch it via cron, but I don't want to ...
Aleksey's user avatar
  • 75
0 votes
0 answers
52 views

Does anyone know of an open source application or perhaps how to integrate an existing find dupes script with some OS tool (emacs, vim, Finder.app, mc, etc...) to open a file before marking that file ...
atod's user avatar
  • 155
0 votes
2 answers
97 views

I am using Ubuntu Linux and Mageia Linux... I wish to do the following: in a text file (sample.txt), find and delete every line comprising the symbol '#' (or '?') or a specific word (e.g. 'mobile') ...
Vinz M's user avatar
  • 11
0 votes
1 answer
82 views

My program involving Numerical Mathematics takes a long time to run (12-15 hours). I usually leave it running overnight and check the results the next morning. However, I want to prevent the over-...
Shuxue Jiaoshou's user avatar
0 votes
0 answers
70 views

I'm trying to pass a command through to ffmpeg, but I'm struggling to get it to work with spaces in the name. I've tried this: filters="-vf subtitles='$filename.$format':force_style=Fontsize=24&...
Cestarian's user avatar
  • 2,583
0 votes
1 answer
395 views

I'd like my log files to be named after a variable. Since this isn't possible: #SBATCH --output some_software.${var}.out #SBATCH --error some_software.${var}.err I came across this work around but ...
Caterina's user avatar
  • 103
-3 votes
1 answer
139 views

In Linux with Bash, there is the File numbers_in_one_line. In this file there is only one line with several numbers, all separated by spaces. These numbers are the value in bytes for creating files ...
user447274's user avatar
3 votes
3 answers
452 views

bit of a strange issue for you. I have an old 2-in-1 laptop tablet thing that works well enough, except the driver for the touchscreen occasionally crashes, leaving it unusable. I have a simple script ...
Gridzbi Spudvetch's user avatar
1 vote
1 answer
99 views

I am running various scripts on Debian 12.X currently with the following bash: GNU bash, version 5.2.15(1)-release (x86_64-pc-linux-gnu) I have the following methods/options to execute the script. ...
ReflectYourCharacter's user avatar
-3 votes
1 answer
65 views

There are many files in this format: IMG_20240717_191421.jpg IMG_20240620_165358_BURST001_COVER.jpg IMG_20240624_173513_2.jpg how can they renamed in Linux in Bash to: 20240717_191421.jpg ...
user447274's user avatar
1 vote
2 answers
257 views

How automatically open a URL after rebooting on a Debian desktop? 1- Running the command by terminal: xdg-open http://homeassistant.local:8123 OK it works and opens the URL above 2- creating any ...
carlos rother's user avatar
0 votes
0 answers
48 views

Situation: I have a HTPC running Nobara linux (flavor of Fedora) and I have an Xbox controller that is connected to it and will wake it from sleep. Problem: HDMI-CEC is not supported by my hardware. ...
Fader's user avatar
  • 1
-1 votes
2 answers
97 views

whats wrong with this bash script: acme2=$(dig txt @$1 _acme-challenge.$1.de) acme3=$(echo $acme2 | grep "^_acme") ...
dg1kpc's user avatar
  • 1
0 votes
1 answer
134 views

I need to run script on remote server which require root access using sshpass and its failing with eror script not found. I ran below command. sshpass -frhelpass ssh user@IP 'echo mypass | sudo -S &...
user29368204's user avatar
5 votes
4 answers
614 views

I would like to execute a script on a host machine (script_on_host.sh), which then reaches inside a docker container in order to grab some data using a second script (script_in_container.sh). The data ...
teeeeee's user avatar
  • 305
1 vote
1 answer
184 views

with the following command line, which I turned into an alias, I would like to open the pdf files from my terminal. alias pdfLoad="fd . '$HOME/OneDrive/DBCalibre' -t f -e pdf | fzf | xargs -0 -I ...
Salvatore Di Fazio's user avatar
1 vote
1 answer
73 views

there are 4 scripts that should be started after reboot as user "appian": /opt/appian/appian_home/services/bin/start.sh -p Password -s all /opt/appian/appian_home/data-server/bin/start.sh /...
Arjun S's user avatar
  • 11
0 votes
3 answers
229 views

I am attempting to generate a file that I can append to visudo. The task itself is not too important as I'm just trying to dig a little deeper Bash. My current script looks like this: #!/bin/bash ...
Ambre's user avatar
  • 111
-4 votes
2 answers
135 views

How to write in Linux in Bash in shellscript a part that can do something like this enter a number must be in a range from 4-999 if not, ask again to enter enterednumber * 5 * randomnumber [1-9] (...
user447274's user avatar
0 votes
1 answer
223 views

i want make it automatically to start with no-cursor: startx -- -nocursor this is worked but this is command..i want to autostart to user: kiosk.. (but i don't want to use "unclutter") i'm ...
Manuel songokuh's user avatar

1
2 3 4 5
92