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
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 ...
Zsh_current_row's user avatar
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 "...
user3008410's user avatar
-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 ...
AnonymousDev's user avatar
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 ...
Caden's user avatar
  • 25
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 ...
newjenkinsuser's user avatar
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" &...
Alex's user avatar
  • 337
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 ...
Muhammad Tawil's user avatar
-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. ...
Support Test email account's user avatar
-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=...
Ritika's user avatar
  • 19
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 $...
hydradon's user avatar
  • 1,386
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 ...
Vinod Devarakonda's user avatar
-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?
Joe's user avatar
  • 58
-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, ...
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

15 30 50 per page
1
2 3 4 5
6190