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,838
questions
0
votes
0
answers
19
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 ...
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 ...
1
vote
0
answers
17
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"
&...
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 ...
-1
votes
0
answers
22
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. ...
-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=...
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 $...
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 ...
-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?
-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, ...
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()
...
-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-...
-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"...
-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-...
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 ...