Questions tagged [shell]
The term 'shell' refers to a general class of text-based interactive command interpreters most often associated with the Unix & Linux operating systems. For questions about shell scripting, please use a more specific tag such as 'bash', 'powershell' or 'ksh'. Without a specific tag, a portable (POSIX-compliant) solution should be assumed, though using 'posix' in addition or 'sh' instead is preferable.
shell
92,816
questions
0
votes
0
answers
5
views
Shell script repeating command for 1 argument (of 3) 3 times
I'm using a shell script in a gitlab ci pipeline to update .env variables depending on the branch's context. Overall it is working as expected, except that 1 of the 3 variables is being repeated 3 ...
-1
votes
0
answers
6
views
How to fix problem with configuring compiler/debugger when running C++ on vscode?
I have installed MinGW on my computer. I have made sure that it is up to date and that the location returned by "where gcc" command is the same as my path.
here's my launch.json file
However ...
0
votes
0
answers
25
views
Script to back up Kafka yaml files, export the files uploaded onto cluster [closed]
I want to export all the files in my kafka cluster, all the YAML, and put them into a local folder on my C: drive, where the files are saved based on the namespace I give the script, and then the ...
0
votes
1
answer
20
views
SSH-Shell, GitLab Container Registry, docker-compose: Denied Access Forbidden
I have the following problem and have not yet found a solution in any other post.
I am currently working in an SSH shell and should "move" one or more apps from another SSH shell. The apps ...
0
votes
0
answers
21
views
How to Log all commands executed by any user in Linux [closed]
I saw the following command log in /var/log/audit.log on the internal server
2024-07-08_23:05:10 --- <username> pts/2 (10.220.200.2) --- 1000 --- less /var/log/message
...
I would like to ...
-1
votes
0
answers
36
views
need a bash script to list all jobs in jenkins under my username or in folder [closed]
I'm on enterprise version and using a windows machine.
keep it basic jq is not installed
in parameters
JENKINS_URL="https://xxx/xx/xx" in google people are using something with /8080 i'm not ...
0
votes
1
answer
18
views
Delete files based on availability on another directories
I have two directory, Faces and Faces_v2, I want to delete every file in Faces directory that does exist in Faces_v2 directory. This is a output from fdupes.
383051 bytes each:
livecpk/Faces_v2/Asset/...
0
votes
2
answers
67
views
Bash: Reading in a string from a file with variable substitution
I have a weird situation where I have a command stored in a file and that file contains references to variables.
I'm able to read the file just fine, but I'm having trouble getting variable expansion ...
0
votes
0
answers
19
views
Autosys Command Job is not triggering Teradata BTEQ script
I have autosys job with below JIL configuration
insert_job: APP.C
command : /NAS_MOUNT/run_bteq.ksh FOLDERNAME SCRIPTNAME.btq
machine : serverA.com
owner : John
profile: /NAS_MOUNT/.John_profile
If I ...
0
votes
0
answers
31
views
For loop of bash script not working, reading lthe next lines within the previous loop [duplicate]
I cannot solve the for loop error in bash script.
The bash script is for extracting data from remote server, copying mapped files locally, and then executing a tcl script.
The above process should ...
1
vote
1
answer
45
views
Bash: How to continue for loop when condition X is satisfied
I'm trying to start a process on multiple VMs using GitHub Actions. However, the command doesn't complete (as it needs to continue running) so my for loop just kind of hangs.
What I need, is a way to ...
-2
votes
0
answers
9
views
Problem with Vagrant and shell provisioning on CentOS 7 [closed]
I'm having trouble provisioning a CentOS 7 virtual machine using Vagrant. My Vagrantfile is configured as follows:
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. ...
1
vote
1
answer
70
views
Create an alias in bashrc file [duplicate]
In Linux terminal, normally I can copy files from another unix server using:
scp -r [email protected]:/data/filename ./
which secure copies the remote file to my current directory. I've made sure ...
0
votes
3
answers
77
views
Pass multiple arguments to single command in custom position xargs
I want execute a command where I have the args as single string but they need to be in a custom position. E.g. in the following example I want the args to be positioned before any fixed args that I ...
0
votes
1
answer
47
views
ExecStart in systemd service does not support file names containing * [closed]
sage-server.service
[Service]
ExecStart=/usr/local/jdk-21.0.2+13/bin/java -jar /home/freedom/local/sage-app*.jar
When I run systemctl start sage-server, it fails.
Error: Unable to access jarfile /...