Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [shell-script]

The tag has no usage guidance.

0
votes
1answer
15 views

replacing values in shell script using sed

My shell script looks like this: FAILED_REQUEST_DIRECTORY=/bla/bla2 java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1234 -jar /xyz/abc-service-1.0-SNAPSHOT.jar --server.port=...
0
votes
2answers
30 views

How to avoid build scripts duplication

Let's say you've got several code repositories on GitHub. You want to build, test and deploy them. You picked a continuous integration service (e.g. Travis CI, AppVeyor or something else) and wrote ...
1
vote
4answers
38 views

shell script to pass values properties file in java

I have a properties file that looks like this: mysql.username=USERNAME mysql.pass=PASS I need to change USERNAME and PASS with variable values passed to shell script. I cannot use sed since that ...
0
votes
1answer
16 views

I want to modify this bash script not to ask for password for each file [closed]

I got this nice script on GIT hub and it works but it prompts me for passphrase for each file I want to encrypt, I would like to modify the script to seek password from a text file in /home/user/...
1
vote
1answer
31 views

Bash Tokenization Errors on Jenkins JNLP Slave

Why might the below bash commands give me an error on a Jenkins JNLP slave in Kubernetes cluster? Each work on a local machine. Error: Syntax error: redirection unexpected IFS='/' read -r -a branch ...
0
votes
0answers
57 views

What is the best method to start and stop an application?

I have some scripts to start and stop a java application which using jenkins. First option Check the port and kill pid if java is running. And then start the application. Second Option Write the ...
-2
votes
1answer
56 views

How can CaaS, PaaS, and FaaS users know if the operating system of their server environment is of the newest release?

Please consider this chart a moment; it shows the different hosting models common today: From the chart I learn that CaaS, PaaS and FaaS are three hosting-models by which a user can't control the OS ...
0
votes
1answer
42 views

How to read array and loop server selection and deployment

I have configured jenkins parameter deployment job using active choices parameterize plugin. In my dev server section have two servers called, 192.168.94.139, 192.168.94.140 I want to read this ...
2
votes
1answer
94 views

Run scripts which are stored in GitLab from Jenkins

I have configured Jenkins Build Jobs and Deployment Jobs from using Jenkins shell. But I put all the commands in Shell to execute. Can I store those commands in GitLab and execute from jenkins?
0
votes
0answers
81 views

Background process not running after executing shell script

When I execute below script from cli it is working and process in background also running. But when i try to execute the same wcript from ansible all the tasks are successfully executing but ...
0
votes
3answers
67 views

Is there a php (or composer) command to change upload_max_filesize && post_max_size from terminal?

Is there a php (or composer) terminal command to change the php.ini variables upload_max_filesize and post_max_size from terminal to some value directly from terminal, without sed or awk operations? ...
0
votes
0answers
27 views

Valid use case for environment variable with length of zero?

Are there any valid use cases for allowing an environment variable to have a length of 0? $ FOO="" # why would anyone do this? The use case is that I'm writing a utility that parses environment ...
-2
votes
1answer
43 views

Set user in aws

I have a lot of instance in aws.I have build through terraform. I have made scripts of making user(e.g. user1 rather than ec2-user).But i am facing one issue.when i check .ssh/authorized_key. I have ...
0
votes
1answer
76 views

The right way to Ansiblically deploy environments directly from Github:

Can one deploy an environment for some Linux OS (say, Ubuntu) from a raw Github playbook in a way similar to this (I wonder if it's the correct syntax)? bash <(curl -s https://raw....
5
votes
3answers
1k views

Jenkins - sending email after build with the build version as a subject

I would like to send an email at the end of my build to inform success or failure. I'm using the email ext-plugin for Jenkins. I want the version number of the build to be the subject of the email. ...
4
votes
2answers
1k views

Jenkins Exception that is caused by stdout redirection using windows cmd

I'm trying to execute an exec file from a jenkins server, using windows cmd. This is what is run from jenkins Windows batch window: C:\MyApp\MyApp.exe When run regularly from command line, the app ...
3
votes
1answer
83 views

Cassandra DB: store binary file record via shell

While the dev team works on a REST service to manage binary data in Cassandra, ops would like to store local blobs directly from shell. Is it actually possible via CQL/bash without a Cassandra driver?...
2
votes
2answers
70 views

Automatic production deployment for a Node.js app on RHEL 7?

I am looking for some way to have a maximally simple(no Jenkins or anything like that) automatic production deployment for a Node.js application on a RHEL 7 system. The caveat is: At the organization ...
-5
votes
1answer
85 views

Shell Scripting [closed]

I am trying to execute a PHP shell script on my friends mail server to show him the impact of such vulnerability. Vulnerable code but unfortunately it doesn't seem to be running. This is the script I ...
1
vote
1answer
316 views

Best learning resources for continuous integration tools like Jenkins [duplicate]

I am a .NET developer , I have decided to learn DevOps continuous integration tools. One of my folk asked me to learn below tools and language: Jenkins Shell Scripting Python I have found below ...
4
votes
0answers
422 views

Problems with integrating Python script in a Bash script Git pre-receive hook [closed]

We have a pre-receive hook script in a bash shell script that enforces commits with messages having the right ticket number in a pre-defined format. We also have a separate python script that can be ...
29
votes
5answers
6k views

How is Ansible different from simply running a provisioning bash shell in Vagrant?

A team of IT sysadmins that have exprience using shell scripting to solve their problems, are contemplating to start using Ansible instead. Are there substantial differences and good reasons to start ...