Category "shell"

Shell script in Gradle build: java.io.IOException

I have the following lines in my build.gradle file of my Android project: "./prebuild.sh".execute() But during the build I get this error: java.io.IOException:

Docker bash shell script does not catch SIGINT or SIGTERM

I have the following two files in a directory: Dockerfile FROM debian WORKDIR /app COPY start.sh /app/ CMD ["/app/start.sh"] start.sh (with permissions 755 u

changes in java code do not appear, program runs from a shell script

I cloned a GitHub repository (https://github.com/tomergreenwald/tac-adx) and did some changes in the code. But if i run the application with the runServer scrip

How to pick words, start and end with specific words using shell script in a log file

I am tring to pick words start with "Approved by" and end with before the "=" sign. here is log file. Test worker] INFO cyyom.bghhht.gsghhj.dijjkkgital.dggcf.ap

Running multiple remote commands via a single ssh command

sshpass -p Password ssh -o StrictHostKeyChecking=no a.user@IP "Command1 ; Command2" When i try to run multiple commands after ssh it only runs the 1st command

export a string from poweshell 1 to powershell 2

I have a shell script file. ./1.ps1 ./2.ps1 I generate a string such as env-0 in 1.ps1 and need to export it to 2.ps1.UPDATE: 1.ps1 generate many string and I

export a string from poweshell 1 to powershell 2

I have a shell script file. ./1.ps1 ./2.ps1 I generate a string such as env-0 in 1.ps1 and need to export it to 2.ps1.UPDATE: 1.ps1 generate many string and I

jq: command not found in GitLab CI file

In .gitlab-ci.yml stages: - test-jq test-jq: stage: test-jq image: ruby:2.5 script: - apt-get update - apt-get install

mongodb shell login - password contains special characters like -(hyphen) and '(single quote)

I am trying to login to mongodb database using mongodb shell, and if the password contains any special characters like -(hyphen) or '(single quote) , it gives e

Loop through an array of strings in Bash?

I want to write a script that loops through 15 strings (array possibly?) Is that possible? Something like: for databaseName in listOfNames then # Do somethi

Linux - How to get a string specific string from a specific line?

Lets say that I have the following DeletedFiles.txt file: test1.zip - date-removed='6-16-2021' test2.zip - date-removed='6-17-2021' test3.zip - date-remov

kubernetes config map - syntax error: unterminated quoted string

I am getting below error when trying to attach shell script as config map. I am not sure what's the issue because script work without adding in config map It sh

Recursively find files with a specific extension and copy them to a new directory with new names

I tried to find all the .xvg files generated by Gromacs inside a directory as well as its subdirectories and then copy them to a new directory, with new names f

Escape & character in groovy script while using curl

I'm using bash execution of curl in groovy script: descr = """ curl --silent -k -u test:test "https://bitbucket/rest/api/1.0/projects/test/repos/test/pul

Create folder tree from text file, folder names can contain spaces

I have a text file and I need to create the folder tree with a for loop in a script. Here's the text file I need to use. Animals.txt Animals Animals/Cats Animal

How are strings with multiple kinds of quotes interpreted in bash?

To give context, I'm trying to create a simple version of bash, and for that I need to mimic the way bash parses content with multiple sets of single and double

How can i Change tab item Content on Xamarin forms shell

I need to change one of my tabs' content depending on the condition of the user logged in or just a guest this is my shell <?xml version="1.0" encoding="utf-

How to execute a shell script and continue typing?

I'm trying to execute a shell script that ssh's into a jump server, enter a password and then be able to enter commands or ssh into another server. The issue is

Shell using path pulled from cell in workbook using VBA

My code runs a model in R directly from Excel. I want to simplify installation so instead of: path = """C:\Program Files\R\R-4.1.1\bin\Rscript.exe"" C:\Users\di

How here document works in shell

While doing the input redirection, the shell opens the file on the right side of '<' with file descriptor 0, but in the case of the heredoc there is no such