Bash is a free shell for Unix-like operating systems from the GNU Project.

learn more… | top users | synonyms

0
votes
0answers
24 views

Get color output when running a local script through SSH

I am trying to run a local script over SSH and still receive colored output from the remote execution, as if it was a tty. To put it simply: $ ssh -t somehost 'if [ -t 1 ] ; then echo terminal; else ...
0
votes
0answers
9 views

Variable from dialog box input doesn't behave as expected

I have a variable which the user sets by selecting from a dialog list. The variable is later used to cd. The variables are subdirectories in the format "sub.domain.tld." Import options array m here ...
0
votes
0answers
30 views

Difference between Procfile and Procfile.Windows in heroku servers

I'm learning how to deploy a Django project with Heroku. And I notice two files in this repository (git from tutorial): https://github.com/heroku/python-getting-started The file Procfile, I do ...
0
votes
0answers
52 views

Homebrew installation

I installed homebrew, because I wanted to install ruby. I also installed rbenv and than tried to change the ruby version to 2.2.2. But I can't do any command on my terminal now. For example when I ...
0
votes
0answers
17 views

bash “vi mode” search command line (not history buffer)

When working in bash - if I am in "vi" mode, I can use ? or / to "search". However, this appears to search the history buffer. If I am working with a (very) long command line, I would like to be able ...
0
votes
0answers
30 views

chruby's Ruby $PATH variable changing on its own when current working directory changes?

I installed Ruby and Rails using a guide I found here: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/ Notably, this guide uses ruby-install and chruby scripts to allow the ...
0
votes
0answers
12 views

Linux Bash pts are not sorted

I log in to a debian server via ssh. Let's say I do this with 5 clients. Then the clients get: pts/1 pts/3 pts/4 pts/5 pts/6 So why is there no pts/2 ? (I did not find any pts/2 in ps aux) PS: When ...
0
votes
0answers
20 views

git hub for version control for an entire directory

Code at bottom I am using a private repo on git hub as a version control between me and partner and I am having some difficulties in my approach. I have wrote a few bash scripts as a way of ...
0
votes
0answers
29 views

GNU screen - open new window in working directory of current window in a named (sessionname) session?

In order to open a new screen window in the same directory as the current working directory of the screen window you are launching it from (rather than the directory you initially launched the screen ...
0
votes
0answers
25 views

Windows RegEdit: How to properly quote Cygwin commands in Registry “RunAs” entry?

I have a Windows machine with Cygwin/X installed and X11 server running. I want to open text files with Cygwin/X's GVim. I already have it set up, with the appropriate Registry entry at ...
0
votes
0answers
77 views

Add SONAR_RUNNER_HOME correctly to PATH

I'm trying to use sonar-runner in my Mac. So i download SonarScanner and follow the instruction here : http://docs.sonarqube.org/display/SONAR/Analyzing+with+SonarQube+Scanner When i try to run " ...
0
votes
0answers
50 views

In elasticbeanstalk, can I ssh in and manually restart the (node) app?

I want to eb ssh in, stop the node app (not the entire instance), make a debug change, and npm start. When I eb ssh in I can inspect my files, and edit them. But I can't use the npm commands, and I ...
0
votes
0answers
15 views

Stop bash script with any key

I'm writing a script which I want to stop with any key I choose. After pressing the key, my intention is to complete all my commands at that moment and start su. I've tried adding a & to my ...
0
votes
0answers
47 views

Vagrant shell provisioner does not respond

I am provisioning a VM through shell script in AWS using vagrant-aws plugin. VM gets launched and the shell script gets executed but I don't see any update on the shell prompt. It used to get updated ...
0
votes
0answers
67 views

How do I configure a Jenkins job to target a specific server to deploy to?

I am using two CentOS servers. I am not using any code repository. In Jenkins when I click "New Item," I see no place to enter the target server. I expect a place to configure a target server for a ...
0
votes
0answers
45 views

Remotely shutdown all computers on network running Ubuntu - bash scripting

I'm trying to iterate sudo poweroff through all ip addresses in my network using for loop. All computers in the network have the same password. sshpass -p password ssh $ip sudo poweroff The problem ...
0
votes
0answers
13 views

Default Profile

How can I set the default profile to be loaded on a bash login? My system was loading my user profile instead of the system one. I had it working properly and seemed to have accidentally broken it ...
0
votes
0answers
33 views

Most commands won't work on bash

So I updated to latest version of El Capitan (10.11.3) and adb stopped working for me. Upon messing with ~/.bash_profile, I made it worse and now most commands like open etc. won't work in terminal. I ...
0
votes
0answers
46 views

Bash 4.3 Substring Negative Length on OS X

Bash 4.2 added support for negative substring lengths: http://tldp.org/LDP/abs/html/abs-guide.html#SUBSTREXTR01 Example 37-12. Negative parameter in string-extraction construct When the ...
0
votes
0answers
15 views

Is it possible to automatically compile a LaTeX document through terminal using TeXworks?

I want to create an alias to automatically compile the main .tex file of a big document in LaTeX under Debian Wheezy. That means I need a shell command to do so. Is this possible? I am currently ...
0
votes
0answers
28 views

Sed command to replace NUL character in file

I am using the command sed -i 's/\o000//g' filename or sed -i 's/\x0//g' filename to remove the NUL character but the command works fine in DEV environment but doesnt work in UAT. OS and sed version ...
0
votes
0answers
52 views

source ~/.bashrc No command 'some' found, did you mean:

I just recently installed ubuntu 14.0.4 and I'm not sure why I can't source my ~/.bashrc. Whenever I issue source ~/.bashrc I get: No command 'some' found, did you mean: Command 'tome' from ...
0
votes
0answers
21 views

Launch agent to run a .sh when it is added to a folder

I am trying to create a launch agent that will monitor a folder for when a .sh file has been added to it and then run it. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC ...
0
votes
0answers
66 views

Git Bash delayed output

I run some program in git bash terminal on windows and redirect output to grep to search for specific keywords. Problem is that the output is delayed, so it looks like the terminal waits for a chunk ...
0
votes
0answers
12 views

Checking if file exists to launch different programs

I use the following code to check for a file named loaded in the shared folder.This works when the file is placed in the local dir but it does not write the file to the shared folder. What I'm i doing ...
0
votes
0answers
15 views

mac terminal and iterm does queue up input during operations

I have this problem where if I input something time consuming the inputs I give the terminal does not queue up on the next command line. $ rails c afsdfadfadsfadfa development environment (Rails ...
0
votes
0answers
281 views

stty: standard input: Invalid argument error when scping files

When I try to scp a file to my remote server I get the following error: stty: standard input: Invalid argument This is caused by a line in my .bashrc file: stty -ixon If I remove that line, the ...
0
votes
0answers
34 views

Linux hangs after rebooting

I have a script that needs to run at boot time, I set it up using update-rc.d and now when I reboot the system with sudo reboot the system hangs during the boot process. But if I restart the system ...
0
votes
0answers
25 views

How to add .bash_profile in Windows to run Matlab-based IPython notebooks

I'm looking at this tutorial to run matlab code in IPython notebook: http://anneurai.net/2015/11/12/matlab-based-ipython-notebooks/. but I am stuck at step3: I edited the .bash_profile file located ...
0
votes
0answers
87 views

How can I export ubuntu terminal's profile in another computers?

i have the next commands this command for save my current terminal profile settings gconftool-2 --dump '/apps/gnome-terminal' > gnome-terminal-conf.xml and this other to load these save ...
0
votes
0answers
54 views

Not able to login by PuTTY Network Error

I have reset the user ("sftuser"), after that I am unable to login to the server, its throwing an error when logging in using putty: PuTTY Network Error: Software caused connection abort I am ...
0
votes
0answers
103 views

OS / System / Command Injection query in Linux

I found a command injection vulnerability in Linux. The system does not allow any white space characters meaning The following command works: ;ls But I want to provide command with space, like: ...
0
votes
0answers
149 views

Why do I get this “Could not find /tmp” error from Git (or bash.exe)?

I am using Git to manage our project sources. For the continuous use, I employ a couple of active environments: TortoiseGit, for visual operations and immediate status feedback. Cygwin, through ...
0
votes
0answers
48 views

how can I have my bash script detect mac filtering

I have my own hacking lab with old computers and routers. I hooked up my tp link mr3040 openwrt router via ethernet and have it as its own router on the network. I thought, "if mac filtering is on, ...
0
votes
0answers
17 views

Shell Scripting - Mac - Emailing

I'm just messing around with shell scripting after doing some in the past, and I have figured out how to Email myself from writing a script by using: mail -s 'Backup status' ...
0
votes
0answers
30 views

Specifying Path With Escapes in an Environment Variable

This is a shell escaping syntax, cmake, and perhaps Haskell issue (not sure where to fix it). Specifically, I am in Cygwin and trying to execute something like: CXX=/different/g++ ./build_all.sh ...
0
votes
0answers
89 views

SFTP key authentication not working from bash script

I am trying to set up a very simple bash script on Ubuntu that SFTPs to a specific server using public key authentication. When I run the command directly on the command line, it works like a charm: ...
0
votes
0answers
54 views

Why does this Unicode character get mishandled when I ssh in from a different remote server?

Normally I ssh into a computing cluster from my work machine running OpenSUSE and submit a bash script to a condor queuing system that runs an R program. When I ssh in from my Windows 10 laptop ...
0
votes
0answers
36 views

bash how to remove “__bp_precmd_invoke_cmd” error?

I get after each command the error bash: __bp_precmd_invoke_cmd: command not found even after the command is successfully executed. e.g. if I run the ls command I get the proper listing of the ...
0
votes
0answers
178 views

“bash: gfortran: command not found” in Cygwin after Fortran installation is complete

I just installed Cygwin and am using it to run an open source software package which requires the use of a Fortran compiler. I have run setup-x86_64.exe and installed (I believe) all the Fortran ...
0
votes
0answers
14 views

registering an application in the Registry/../AppPath WITH flags

What I would like to do is to have Git Bash open through Visual Basic Process.Start() with the --login -i flags already set. To do this, I realized I need to have the shell file added to the registry ...
0
votes
0answers
38 views

How can I wrap a sensible text file with a Bash script that allows every user to grep for $USER?

So I have a file data.txt that stores user name and some piece of data, one line per user. I'd like to have a Bash script that is runable by the users and allows them to call grep -w "^$USER" ...
0
votes
0answers
45 views

Optimising AWS Resource Usage

I have a 10000 process -bash processes- and doing a curl request in same time. System is Amazon AMI Linux and i blocked by system wide (process limit) and i guess network limits. Computer have 36 cpu ...
0
votes
0answers
56 views

Error with Bcrypt and Drywall

I have been having errors installing bcrypt on windows so i moved to a mac and now I am still getting errors. Can anyone tell me what this means or how to solve it: 1 error generated. make: *** ...
0
votes
0answers
52 views

Ping multiple domains from file and out only desired IP

Need bash script to ping multiple domains from file and output just domains with adress ip : 1.2.3.4 exemple (domains.txt): www.google.com support.mozilla.com stackexchange.com support.mozilla.com ...
0
votes
0answers
30 views

Making a simple web app to boolean search a text file?

I have a text file which contains around 10K lines of text. Pretty much basic sentences. I want to find a very simple way to have a web app that can to perform a simple boolean search (just the ...
0
votes
0answers
27 views

Vim in Cygwin skips keypresses

My Cygwin installation works fine except when I code in vim, it skips the keys I press, and it happens annoyingly often. I don't seem to have this problem when I am in the bash, but when I start ...
0
votes
0answers
60 views

Beginner issues with shell scripting

I'm pretty new to the scene so I came across a few problems when I used vi I can't figure out how to apply commands to it. I was supposed to look for the string "happy" in a file, which I could do ...
0
votes
0answers
38 views

detaching a process from a shell doesn't work as an argument in Windows

I want Windows gVim to inherit its $PATH from MSYS2. This is as simple as starting up an instance of bash then starting gVim from that instance. The problem occurs because I want the startup bash ...
0
votes
0answers
32 views

Find doc/docx/txt/rtf/ file containing 12 strings/words only - MAC OS

This is a strange request and I'm unsure if it's even possible but Google led me here through a not so similar question and so I thought I'd ask. I basically need to find a text file on my computer ...