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

learn more… | top users | synonyms

0
votes
0answers
16 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
54 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
70 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
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
75 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
35 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
65 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
90 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
18 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 4.2....
0
votes
0answers
592 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
40 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
117 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
70 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
118 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
198 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
50 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' lcharlton@vldbsolutions....
0
votes
0answers
33 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
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
39 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
251 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
16 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" data....
0
votes
0answers
47 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
61 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
57 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
39 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
28 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
62 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
46 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
40 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 ...
0
votes
0answers
67 views

Erroneous Space in Powerline Bash, in Tmux

When running powerline in bash, in tmux, I see an unnaturally large space after the prompt. I thought it might be a font issue, but the shell is handling the font ok, when not in tmux. Any tips on ...
0
votes
0answers
17 views

Pam.d not enforcing

I am having an issue with pam.d, I configured the system-auth file with: password requisite pam_cracklib.so try_first_pass retry=3 minlen=x difok=x lcredit=x ucredit=x dcredit=x ocredit=x type=...
0
votes
0answers
162 views

Problems downloading .NET Framework 2.0 SDK

I have been getting this error when i try to install Drywall: C:\Users\zach\drywall\node_modules\bcrypt>if not defined npm_config_node_gyp (node "C:\ProgramFiles\nodejs\node_modules\npm\bin\...
0
votes
0answers
93 views

Simple UNIX commands assistance

" Your current directory is stenton. Display phone_directory one screen at a time, until you find the record for 'Bruce Byce'. " phone_directory is a file inside my current directory. Ive been stuck ...
0
votes
0answers
223 views

AES encryption with plain text key using bash openssl

I am trying to encrypt a string using AES CBC. The output of the online tool (http://aes.online-domain-tools.com/) and the bash openssl command do not match. Can anyone help me with what I am doing ...
0
votes
0answers
48 views

java command returns no output

I'm using Red Hat 4.4. Whenever I type any java command into the terminal, no output is returned. It does nothing, just like typing the cd command outright. I've tried java -version to see if it'...
0
votes
0answers
42 views

Running httrack from php with shell_exec

I want to create a local webserver that could download a webpage the user wants by inputting the address to a html form and submitting it to a shell_exec php command, this is what i tried : ...
0
votes
0answers
36 views

bash function equivalent to an alias

Is there a better way to write a bash function equivalent to an alias and does this work in all cases? It seems OK (edit: it's not). alias g="git" g(){ git `echo $@ |xargs`;} typeset -f g
0
votes
0answers
37 views

subshell variables not getting exported to parent shell

As part of porting scripts from HP-UNIX to RedHat Linux, I'm trying to set up config files accordingly. There is a scenario where the .profiles sources oracle env with SID as option to it, that in ...
0
votes
0answers
17 views

Hide screen content after detaching

When I detach from my screen, the contents keep on being displayed on the terminal window. That is annoying because the terminal output becomes very messy very quickly. Is there a way to replace the ...
0
votes
0answers
81 views

Can't clear the screen when I run docker on Windows Command Prompt

I am using docker on windows with an Ubuntu Image. Everything is just fine on docker itself, but when I run one of those images, whenever I try to clean the screen, the cursor moves to the fist line ...
0
votes
0answers
25 views

Forward slash disappear into a variable in OSX

This is getting me crazy absolutely. $ a="/" echo $a $ var="/home/vivek/foo/bar" $ echo $var home vivek foo bar What's going on on my OS X bash? I've tried this on my other Mac.. and works ...
0
votes
0answers
174 views

Bash: How to download data from Google Form

How can I download the .csv of the responses of a Google Form from Bash? I tried wget https://docs.google.com/spreadsheets/d/1gRMnKkqKaDAhpm6ytfvZEYfD9_j9HzDk1Q4HgMYC7Xg/edit#gid=1933231618 but ...
0
votes
0answers
14 views

Cyberoam not working properly after wakeup from sleep in ubuntu

In Ubuntu after waking up from sleep cyberoam is not working. If I login again it is showing ./crclient: Already Logged In With Process Id 1704 when i tried to kill process using kill 1704 it is ...
0
votes
0answers
54 views

ssh command running on local always prompts for password

im not good at bash script so i look around and found this script elsewhere to run and start adminconsoles and also to verify, but the script was initially used to ssh on a remote machine but what i ...
0
votes
0answers
34 views

.profile environment change in ubuntu

Ok, I am having a heck of a time with permanently setting an environment variable in Ubuntu 14.0.4. I am working on installing Bro IDS and it requests that I set this path You can also add PATH=/...
0
votes
0answers
15 views

Any number of arguments when looping through array of strings?

I'm currently working on making a basic linux script such that it takes any number of arguments and calls a separate script to print the third character of each argument on separate lines. I made ...