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
31
questions
-1
votes
0
answers
12
views
character like '\' coming in SQL output while assigning the output to a variable in shell script [duplicate]
I am trying to run a SQL query in shell script and assigning its output to a variable.
When I run the script in Putty in the output variable character like \ is coming in data.
But when I run the same ...
0
votes
1
answer
16
views
Need help in downloading the artifact from Artifcatory and place it in the server through YAML
name: download jar and place it in server
get_url: url=https://{{ userName }}:{{ userPassword }}@repoURL/nexus/service/local/artifact/maven/redirect?r=public&g=GROUPID&a=ARTIFACTNAME&v={{...
0
votes
2
answers
78
views
Shell scripting: How to replace multiple lines by another set of multiple lines in a file [duplicate]
I am new to shell scripting and I ran into an issue with the following. I am trying to create a type of script which is able to replace multiple lines in a file with another set of multiple lines (...
-2
votes
1
answer
35
views
Is there any alternative way to matrix strategy in github action #35456
We are using Terraform as IaC in our organization. I am facing an issue where we need to deploy the same set of resources for multiple groups and divisions. For example, I have 'ABC' as a group, which ...
0
votes
0
answers
14
views
Generate Sonarqube Report In Gitlab
I'm trying to download the result of our scan in gitlab job.
In the documentation, there are no information about this topics.
I need to start any script shell, gradle to do that.
Any help ?
0
votes
0
answers
15
views
Trying to reset an android app to a state with a defined set of app data and settings automatically
I'm developing an automated testing process for an Android app that requires resetting the app to a consistent ground state between test sequences. The workflow is as follows:
Start with the phone in ...
0
votes
0
answers
35
views
How to use Activity Indicator in AppShell.xaml with TabBar?
I am using a logout buttom in Shell.TitleView in AppShell.xaml
Now I want to show an activity indicator in the middle of the screen when clicked on logout, irrespective of which tab I am in.
How to ...
0
votes
1
answer
39
views
sed command is not replacing the files in my directory [duplicate]
When I run my bash script(given below) the files are not changed. The replacement does not happen for some reason. I am running the command as sudo, and the html folder has permssions 775 with the ...
0
votes
0
answers
82
views
Generated empty mock file - (Cuckoo mocking framework)
I have created a project for unit testing I have used Cuckoo mocking framework for generating mocks.
With Cuckoo Version: 1.10.4 GeneratedMocks.swift was successfully generated with the expected ...
0
votes
0
answers
17
views
zsh case-insensitive completion match not working
Problem
I've recently made some changes to my terminal development tools. Everything has been working as expected, except for case-insensitive match completion, which before it would match completions ...
0
votes
1
answer
43
views
trigger a foreground app by a script runnning in background (in same tty, linux)
tui.c: a simple ncurses hello world tui app:
// gcc -o tui tui.c -lncurses
#include <ncurses.h>
int main() {
initscr(); // start curses mode
printw("Hello, World!&...
0
votes
0
answers
17
views
Zsh shell automatically converts into Docker interactive shell
I pushed some changes from my code into my GitHub repository. Now, after trying to rebuild my docker image, I'm trying to run some commands and my zsh shell automatically converts into a docker image ...
-2
votes
0
answers
24
views
Unable to read multiple output returned from a sql query in shell script [closed]
How can I read multiple columns output from a sql and assign them to a variable and then read each row returned one by one and use those variables in each loop run to perform my if else function
...
1
vote
1
answer
39
views
run an input/output waiting application in function in background getting output of that function
I have a shell function
func() {
read < /dev/ttyUSB3 &
PID=$!
echo "$PID"
}
do not focus on its exact purpose, the thing is that I need to run some app (in this case read)...
0
votes
1
answer
32
views
Does inline assigned variable followed by shell built-ins accessible by the subsequent commands?
I am trying to understand how posix shell behave when command is in the form,
# variable assignment followed by a shell built-ins.
var=value shell_builtins;
in scenario like this, posix manual says,
...