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,841
questions
0
votes
0
answers
6
views
How to use tmux display-message -p on login without entering copy mode?
When I use display-message -p in my .bashrc, the messages it creates forces tmux to enter copy mode.
How to send a message to stdout when tmux starts, without using tmux send keys, and without ...
0
votes
1
answer
19
views
Cron call vs CLI call on Ubuntu
I am running into a weird issue. Cron call vs CLI call on Ubuntu 16. It checks 5 different docker containers.
requestLogExistsInCon=$(docker exec -it myapp_${_docker_container_count}_1 sh -c "...
-2
votes
0
answers
29
views
How to use a large number of credentials with a bash script [closed]
I have a script that needs to store a large number of usernames and passwords. Basically what my script does is it fetches the customer usernames and passwords to execute an API link to check every ...
0
votes
0
answers
36
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
1
answer
18
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
24
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
13
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
27
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
37
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
50
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
27
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
22
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
33
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-...