All Questions
4,950
questions
0
votes
0
answers
18
views
Script that checks whether agents running on workstation need idea where to write output [closed]
I want to write a script that checks whether specific software is running on a computer, i manage around 200 computers and I think this is the best way to check whether the necessary security agents ...
1
vote
1
answer
15
views
bash autocomplete custom script with possiblities from a text file
I have a shell script that I want to run that accepts one argument (it's actually a short hostname). All of the legal hostnames for that script are stored in a plain text file, one entry per line. I'd ...
1
vote
1
answer
25
views
How to run sendmail as another other user?
I am witnessing behaviour I cannot explain.
If I run sendmail as another user by executing the following commands seperately - that is, typing each command and pressing enter before entering the next:
...
-1
votes
0
answers
48
views
Letter "b" in terminal doesn't work only in terminal and other letters is fine in Parrot OS
In Parrot OS when I try to write "bash" for example it's written ^[[1;5Dash letter b in terminal displays as ^[[1;5D and this just happens in terminal in any other app it works:
In other ...
1
vote
1
answer
116
views
Using sed to edit filepath variable
I am trying to use the sed command to edit a value in the .git/config file. When running the remote origin command, the config file creates the line of text like this":
url = https://github.com/...
0
votes
0
answers
10
views
Start vlock as a screensaver on console only debian
I am using a revived Chromebook as a secondary laptop. The eMMC is mostly fried, but I have a UEFI grub settup that boots Debian from an SD card. It is console only - no X11, etc.
I can get the screen ...
0
votes
1
answer
56
views
Desktop shortcut with a command line argument which contains filename with random numbers
I'm trying to create a desktop shortcut which launches a terminal app with commandline arguments which contains a path to a file with a randomly generated number in the filename.
I've tried everything ...
1
vote
1
answer
45
views
SSH from A through B to C, using private key on B
Schematic:
ssh ssh
A ------> B ------> C
^ ^
using A's using B's
ssh key ssh key
Preconditions:
A is running ssh-agent
A can access B
B can access C
A can't ...
1
vote
0
answers
29
views
How to Identify and Terminate Idle tmux Sessions on a Debian Server
I have a Debian server with multiple tmux sessions running. Some of these sessions are idle and not running any active processes. How can I identify and terminate all tmux sessions that are not ...
2
votes
1
answer
85
views
Provide argument while starting a service using systemctl
I have a service installed on an old server and it is started using;
service load-simulator start medium
The value medium acts as a profile of sorts. It can have values like low, medium, high, and ...
3
votes
2
answers
447
views
bash see if element inside array is inside a different array
I am trying to test to see if an element inside an array exists. A test case is
array1=(a b c)
array2=(c d e)
for ((i=0; i < ${#array1[@]}; i++)); do
if [[ ${array1[$i]} == "...
0
votes
1
answer
24
views
Font size issue with xterms started through icewm's hotkeys
Recently got a new laptop with 1920x1080 monitor instead of 1366x768 on old laptop. All my many xterms suddenly smaller and text illegible. After investigation, decided easiest solution was an alias ...
0
votes
1
answer
28
views
Dealing with whitespaces in file names after git grep -l
I'm trying to run the script below and I'm struggling with pathspec error when the filename has whitespaces.
I have already read some other posts around here, but since I am not an expert I was not ...
1
vote
1
answer
95
views
How to merge all mp3 files located in the same directory?
The command below used to work but stopped around ubuntu/kubuntu 20.04.
ls *.mp3 | sed -e "s/\(.*\)/file '\1'/" | ffmpeg -protocol_whitelist 'file,pipe' -f concat -i - -c copy output.mp3
...
0
votes
0
answers
31
views
Grep’s result coloring, and right-to-left scripts
I have a text file with a single line that contains the single Yiddish word azoy, in Hebrew script: אַזױ. Then I grep for occurrences of the oy character, ױ.
(This is highly simplified of course, in ...