Skip to main content

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.

0 votes
0 answers
18 views

How do make a custom command to be executed directly from a folder using bash

I want to create a custom command that executes a bash script when a use types it in the terminal. So for example when they type in project setup it executes the setup bash script and then they can ...
Caden's user avatar
  • 25
0 votes
0 answers
8 views

Jenkins withcredentials

I have a script which contains git clone, however I saved the credentials using jenkins UI under jenkins credentials so whenever I check out normally I use withcredential, so how can I run the script ...
newjenkinsuser's user avatar
1 vote
0 answers
10 views

How could I execute arbitrary code from an appShell command button (instead of showing a view)?

I have an appShell like this: <?xml version="1.0" encoding="UTF-8" ?> ....... <TabBar x:Name="MyTabBar" Route="Home" &...
Alex's user avatar
  • 337
0 votes
0 answers
11 views

Terminal Opened in Ubuntu but command prompt not appear

When I open my terminal in Ubuntu, it opens, but I have no command prompt! I can't write any commands. I tried to reset it, but nothing happened. The terminal stays like that, so what should I do? The ...
Muhammad Tawil's user avatar
-1 votes
0 answers
21 views

source $HOME/.bash_profile does not save the Output after reboot

I have created a simple Shell script using the below commands. # Setting the JAVA_HOME PATH in .bash_profile. NOTE: - We need to run this only if we are downloading the Java and running it manually. ...
Support Test email account's user avatar
-1 votes
1 answer
34 views

Any way to run a script on Linux VM connected via SSH from a python program

I am connecting to linux machine via below code client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) client.connect(hostname, port, username=username, password=...
Ritika's user avatar
  • 21
0 votes
3 answers
49 views

Pass bash variable to jq filter and echo the whole command to another variable

I have a sample json like this /tmp/test.json { "foo" : "val1", "bar" : "val2" } Setting the key in a variable key=foo cat /tmp/test.json | jq --arg k $...
hydradon's user avatar
  • 1,386
0 votes
0 answers
26 views

How to download the latest artifact from Artifactory repository in YAML?

Need a help on this We are expecting the yaml code to download the artifact from artifactory. Earlier we used the nexus with direct API via GAVC to download the artifact. We have a code for shell ...
Vinod Devarakonda's user avatar
-2 votes
0 answers
21 views

How to get current directory after subprocess called?

I tried to create a python shell like bash,which can run in windows/Mac/linux.How to get current directory after subprocess called?
Joe's user avatar
  • 58
-1 votes
1 answer
32 views

How to get output of ls command into make variable and use it later on?

I want to get the output of the following shell command into a make variable: # The following is used as a path containing the following directories named: # install-20240714, install-20240715, ...
Thesevs SCUTULATUS's user avatar
0 votes
0 answers
24 views

Using AppleScriptTask() in Excel's VBA macro to run python file, returning an "invalid procedure call or argument (error 5)"

Hi Stack Overflow community! I'm working on a project to run a short python application in Excel. So far, I've written the following VBA code in Excel: Sub RunPythonScriptUsingAppleScriptTask() ...
Sunny's user avatar
  • 1
-2 votes
0 answers
24 views

Understanding the Connection and Differences between Shell, Bash, Unix, Linux [closed]

This is my first question on StackOverflow!Over the last months, I have been struggling to get my mind around the topics that I have mentioned above in the title.I have been trying to learn key-...
funky13's user avatar
-1 votes
0 answers
23 views

linux send mail configuraiton [closed]

I'm trying to send html email with sendmail plugin on linux. But I need to set smtp server url how can I set while sending this mail. ( echo "To: [email protected]" echo "Subject: Test"...
Emrahall's user avatar
-1 votes
1 answer
38 views

What is the difference between using ; and && in package.json scripts? [duplicate]

What is the difference between using ; and && in package.json scripts? For example the Lit Element Typescript Starter Project has this script: "checksize": "rollup -c ; cat my-...
Ole's user avatar
  • 45.3k
0 votes
0 answers
17 views

Run shell command as another user using subprocess

I am trying to run a shell (bash) command using Python's subprocess module. However, I want to do this as another user. I am running my python script as root but my subprocess shell command needs to ...
Parth Shah's user avatar
  • 1,375
-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 ...
Rohit Bansal's user avatar
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={{...
Vinod Devarakonda's user avatar
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 (...
Frank Vermeeren's user avatar
-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 ...
chethankumar MV 's user avatar
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 ?
Younes Ben Tlili's user avatar
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 ...
SRBD TwentyFour's user avatar
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 ...
Meghna Singh's user avatar
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 ...
Gavin Mitchel Dundee's user avatar
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 ...
Alan's user avatar
  • 1
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 ...
Lucas NG's user avatar
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!&...
melon's user avatar
  • 33
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 ...
sacred-cheetah's user avatar
-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 ...
Rohit Bansal's user avatar
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)...
Anonymous's user avatar
  • 629
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, ...
nabik's user avatar
  • 25

15 30 50 per page