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

learn more… | top users | synonyms

0
votes
0answers
19 views

Duration time between cycles in a log file

My apologies if this is too basic, but I have a log with this kind of information: Mai 5 12:34:00 xoengine XO[1287]: [Xo|xoengineMain.cpp:122|0xb88ec60] starting xoengine 4.0.1.2 (x86) from ...
0
votes
0answers
7 views

Setting proxy settings to Auto Proxy Detection using command line Mac OSX

Hi I want to know how to set the proxy settings to Auto Proxy Detection like in network preferences but using bash. I have tried looking around but I only am seeming to find commands like this ...
0
votes
0answers
11 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
14 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
29 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
21 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
12 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
29 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
12 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
17 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
25 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
17 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 run that .sh <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC ...
0
votes
0answers
15 views

Increase efficiency of bash loop with awk

I have to write a fairly large text file(>300,000 lines) using text extracted from the second column of one file, then prepending and appending text to each line and finally writing it out to a new ...
0
votes
0answers
26 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
10 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
12 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
33 views

Make `last` display year in Terminal

Is there any way to get last (on Mac OS X 10.11.2) to display a full date (including year)? Right now it displays only day and time: user$ sudo last user | head -n3 user ttys000 ...
0
votes
0answers
37 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
24 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
15 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
31 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
30 views

How to find files modified in last 24 hr but do not find from hidden directories and sum them

I have following command to find files modified in last 24 hr and sum all of them. #!/bin/bash find /mnt/naspath -mtime 0 -print0 | du --files0-from=- -hc | tail -n1 >> /tmp/size.log exit 0 ...
0
votes
0answers
71 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
51 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
38 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
20 views

Start Git Bash from users directory

I am running the latest version of git on Windows. When I start Git Bash (Running MINGW32) from my start menu it starts git from my users home directory. When I pin the window to the task bar and then ...
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
81 views

brew doctor errors - safe to remove files?

It seems that I made a mess as the brew doctor returns a number of errors: brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an ...
0
votes
0answers
17 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
35 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
40 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
28 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
114 views

Merge xml files using Linux shell scripting

I have 2 files named file1.xml and file2.xml respectively. The contents of the files are: file1.xml: <EJB:Service> <EJB:ServiceId>123</EJB:ServiceId> ...
0
votes
0answers
71 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
13 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
37 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
44 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
40 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
36 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
23 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
59 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
26 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
24 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
33 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
11 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 ...
0
votes
0answers
136 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 ...
0
votes
0answers
55 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
170 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
36 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 ...