Questions tagged [bash]
**** IMPORTANT NOTE: Do not ask a bash question until after you have copy/pasted your script into http://shellcheck.net and fixed all of the issues it tells you about. **** This tag is for questions about scripts written for the Bash command shell. Questions about the interactive use of Bash are more likely to be on-topic on Unix & Linux Stack Exchange or Super User than on Stack Overflow.
25,646
questions with no upvoted or accepted answers
12
votes
3
answers
4k
views
How to remotely execute a bash script in pycharm?
I own the licensed version of Pycharm. I have installed BashSupport plugin as well.
However, I am not sure what steps are required to remotely test and execute a bash script on RHEL server.
I am able ...
10
votes
1
answer
2k
views
Default values for environment variables in .npmrc
Does somebody know how to set default environment variables in .npmrc files ? I tried to do this:
registry=${myEnvVariable:-https://myregistry.com}
and this:
defaultRegistry=https://myregistry.com
...
10
votes
1
answer
7k
views
How to decode value in redis cli or shell script
I've written redis-cli bash script to process all key and value for bulk retrieval but values are not printing as expected. When I give my key in redis-cli its printing with all special characters:
...
10
votes
1
answer
2k
views
Ctrl+C not working with gradle in Git Bash 2.20.1
Back in Windows 7, Ctrl+C worked fine for killing tasks such as gradle. On Windows 10, it does not. I upgraded to Git Bash 2.20.1, where it claims it is fixed (can't find a web link, the release notes ...
9
votes
2
answers
5k
views
Set environment variables in AWS EMR during bootstrap
I added the following configuration in spark-env
--configurations '[
{
"Classification": "spark-env",
"Properties": {},
"Configurations": [
{
"...
9
votes
4
answers
564
views
RVM and Gemfile - not always loading correct ruby, only when 'cd .. & cd myproject'
TL;DR: Every time I open a new iterm2 tab, rvm goes back to default version, it doesn't use the Gemfile ruby version
My Gemfile has
source 'https://rubygems.org'
ruby '2.0.0'
and I use rvm 1.25.14....
8
votes
0
answers
2k
views
extract raster and vector images from pdf with a bash script
I needed a bash script which extracts all the raster and vector images from the pdf and convert them to jpg format.
I checked many posts on the web and I got most of the ideas from these
How can I ...
8
votes
0
answers
3k
views
curl set upload chunk size
I want to upload a big file with curl.
For that, I want to split it, without saving it to disk (like with split). I tried to use --continue-at with Content-Length.
curl -s \
--request PATCH \
...
8
votes
0
answers
5k
views
Can a virtualenv created on Windows be used from WSL bash?
I'm using Windows Subsystem for Linux (WSL) for a test project (obeythetestinggoat) and had a ton of issues trying to get virtualenv to work from the shell or CMD to ensure I was using the latest ...
8
votes
2
answers
3k
views
Emulate subwcrev when using git-svn
I use git-svn to interact with an existing SVN repository that contains some C++ projects. subwcrev.exe is used as a pre-build event to update some strings in a C++ header (svnversion.h). These ...
7
votes
1
answer
90
views
Remove all commits that only update timestamp in a file
I have a git repository where I am the only contributor and there are zero forks of the repository. This means I can do whatever I want in terms of rebases and forced pushes.
The repository has 22503 ...
7
votes
0
answers
4k
views
How to stream docker container output to terminal when using Docker SDK for python
I have a docker container that performs a set of operations and prints output to the terminal. I cannot figure out how to get the terminal output when using the Docker SDK for python.
Here is a ...
7
votes
0
answers
2k
views
Bitbucket LFS Permission denied (SSH command)
I have a bash script that run commands on a windows machine (lets call it machine A) to pull a repository on bitbucket (using git) and then run specific programs to work on the pulled content.
I have ...
7
votes
0
answers
443
views
Bidirectional communication with 'docker exec -it bash <container_id>' using docker-py
I can't seem to figure out how to enable async i/o with a container shell session using docker-py SDK. What I am essentially trying to achieve is to have a working equivalent of docker exec -it bash $...
7
votes
1
answer
2k
views
Configure build flavors for cordova
Hi this question is most likely just a cordova question. I've seen simular questions but never with a satisfactory answer.
What my end goal would be, is a simple way to build multiple Flavors of both ...