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

learn more… | top users | synonyms

0
votes
0answers
19 views

Run multiple Synergy servers

Currently I have a Windows PC & Linux workstation running Synergy. One is the client and the other is the server with the physical keyboard and mouse. I was wondering if it is possible to add ...
0
votes
0answers
8 views

Reverse search in PowerShell ISE wanted

In Bash, you can reverse search your history using Ctrl-R and start typing. Is there a similar feature in Windows PowerShell ISE?
0
votes
0answers
17 views

Git installs to a network drive

I'm using Git at work (on Windows 8), but we have a variable in AD called 'HomeDrive', which is annoyingly set to a network drive. Git has decided to install the git bash and other utilities here, ...
0
votes
0answers
21 views

Change directory for use with CMD

I have the SSH command line utility installed via chocolatey on Windows 8. The only problem is, it has an ssh key path with Linux OS' in mind, this means that the path is /home/roconnor/.ssh. This is ...
0
votes
0answers
24 views

Using BASH to create new elements in XML file

So far I have done simple things in bash with sed, awk, while loops, etc. What I need to do next is far more complicated and I'm not sure how to get started. I have an XML file and I need to add ...
0
votes
0answers
11 views

SLURM: how to run a large job that takes longer than the fair usage policy

I'm not sure if this is the correct stackexchange, so please feel free to point me elsewhere. I am looking for some advice on SLURM. The HPC cluster I use has a fair usage policy of 48 hours per job, ...
0
votes
0answers
20 views

How do I center text generated by Toilet?

To center text in general, you can use this #!/bin/bash center(){ tc=$(tput cols) while IFS= read -r line; do sp=$((($tc-${#line})/2+${#line})/2+${#line})) printf "%${sp}s\n" ...
0
votes
0answers
41 views

Can't stop ffmpeg from outputting stats

I am writing a bash script to speed up podcasts. In it, I have: ffmpeg -nostats -hide_banner -loglevel panic -y -i normal/$channel/$filename -filter:a "atempo=1.3" fast/$channel/$filename However, ...
0
votes
0answers
11 views

copy a pc file to VM env/linux

I have a file on Desktop 'Test1.py'. I want that file to run on saltmaster VM and am trying to copy that file through scp commands. I hit this command scp Test1.py ubuntu@ipaddress:/Users/username/...
0
votes
0answers
22 views

Not getting any values passed through to RRD graphs

I'm getting a lot of NaN values being drawn on my RRDTool graphs and I can't understand why. My script to populate the RRAs in the RRD: #! /bin/bash LOAD=`cat /proc/loadavg | awk '{print $1}'` ...
0
votes
0answers
34 views

How to use scroll wheel for command output history in a minimal install?

If someone ever booted up a GNOME desktop and accessed the terminal you would be quick to realize that the scroll wheel is able to move back and forth through command history. To me this is an ideal ...
0
votes
0answers
16 views

notify-send not showing popup message

I have a script which executes on certain conditions, whenever I manually execute the script, the popup appears, however if i try to aumotate the script(i.e. run the script right after system is ...
0
votes
0answers
33 views

Windows capture flags and pass them on

In order to lint C files, Atom wants the executable path of Clang, which I want to run with Bash on Ubuntu on Windows. I figured out I could use bash -c "clang" to run it, but how can I capture flags ...
0
votes
0answers
30 views

Creating a bash script or something to run through several directories

I had a quick question. I have the code below, which as you can see, I am loading in a file. Note that I am in the folder "Angle1" and that I am in the subfolder "1eV" The code works fine and does ...
0
votes
0answers
32 views

Close process gracefully that has no window

So, I have a script that starts some auto-hotkey scripts while also starting up a game. I want those scripts to close again when the game ends. Currently I'm doing this with the kill command. This ...
0
votes
0answers
17 views

Extracting zip files within zip files

I have a file which contains an unknown extremely high number of zip files, only within each other, and a file at the bottom, like so: zipfile\zipfile\zipfile\zipfile\zipfile..........etc.etc.\...
0
votes
0answers
19 views

Matching 3 or more words from fields in seperate csv files.

I have two csv files: This is csv1: 11, The Sun Still Shines in Reading, 64312, 464566 13, You and Me Together Again London, 564564, 131355 12, What's the Story Now Your Gone, 4545646, 1124545 17, ...
0
votes
0answers
74 views

How can I make git bash `which` command work with windows?

If I type which node in git bash in Windows, then I get node's path, but when I type which open, it says it's not found. The open program is in PATH, but not marked as executable since chmod +x doesn'...
0
votes
0answers
24 views

GPIO on openwrt like on DD-WRT

On DD-WRT i can control LEDs by command gpio enbale X gpio disable X But on OpenWrt it does not work. -ash: gpio: not found I have tried opkg install gpio but it does not work (Package does not ...
0
votes
0answers
29 views

Can MobaXTerm set environment variables on SSH connection?

It is possible for the OpenSSH command to set variables for a connection (e.g. http://superuser.com/a/163228/7173). Is it possible for MobaXTerm to do the same? The commands I run to setup my profile ...
0
votes
0answers
16 views

linux + verify by ssh the remote machine configuration

what is best way to verify if the remote machine is cluster machine I just create the following ssh command to verify if the remote machine is VRTS cluster or Linux availability Red Hat cluster ...
0
votes
0answers
31 views

Full text, dynamic, RSS feed generator

I am looking for a solution to produce and update regularly full-text RSS feed. The goal is to provide full text feeds from a variety of websites to my canto rss reader. There are several services ...
0
votes
0answers
24 views

bash: illegal character in an environment variable

According to man bash, bash identifiers may consist: "only of alphanumeric characters and underscores", however, bash seems to have been tolerant to this up until shellshock patch. Actually, it still ...
0
votes
0answers
64 views

Bash storage on Windows 10

Where on the file system does Bash for Windows get installed? If I find that it becomes bloated (because over time I installed a lot of apt packages or something) what is the best way to purge it and ...
0
votes
0answers
36 views

Deleted a Windows folder using Linux command rmdir -rf foldername

I have a folder on a Windows 7 machine with contents in it and decided to delete it using Git Bash, namely with the command rmdir -rf foldername. According to this manual http://www.computerhope.com/...
0
votes
0answers
36 views

issue launching atom via git bash shell

I am trying to launch atom from the git bash command line. Sometimes atom has some sort of an auto-update feature where it upgrades itself. And when that happens, you may notice something on the ...
0
votes
0answers
32 views

How to have error output from `ls` if target directory is empty

I'm currently learning how to use the Linux shell, getting to grips with the basic commands like cd, ls and pwd. My file structure is like so: user |-- documents |-- file1.pdf |-- file2.txt |-...
0
votes
0answers
24 views

How to expand a loop iterating over an array dynamically in BASH?

I need to iterate on an array and expand the array while iterating. How do I do it in BASH? For example: req="a b c d" read -a MODULES <<<$req for MODULE_NAME in "${MODULES[@]}"; do ...
0
votes
0answers
28 views

Bash in Conemu is overlapping lines

When I start nano/vi or a program that normally clears the screen then I can still see the command line. That means that the terminal is not cleared. If I scroll with the arrow keys the lines ...
0
votes
0answers
40 views

Display scp progress in zenity window

I would like to graphically display the scp transfer progress of several files from a remote server to the local machine. I thought using Zenity for example. Browsing the net I found the command pv ...
0
votes
0answers
21 views

How do I create a Docker container with a non-default IP address?

I created a docker container with this command: docker run -p x.x.x.x:80:8080 <imageName> bash where x.x.x.x was the IP address of the Docker server running CentOS version 7. I then tried to ...
0
votes
0answers
43 views

Update Azure VM running Windows 10 Enterprise N to build 14267?

I have Windows 10 Enterprise N running in an Azure VM and I'd like to update it to a newer build so I can try out Bash for Windows. It's setup to receive Insider Preview builds and its set to the "...
0
votes
0answers
29 views

Set PDF File Metadata from the Mac BASH Command Line / Script

Is it possible to set a PDF File's Metadata (Author = "Fred Smith" and Title = "This is my Book") from the Mac BASH Command Line or Script?
0
votes
0answers
22 views

Force graphical login of a newly created os x user from bash

I'm working on an OSX build script for our department, and I've discovered that, although I can create a new users, I'm not able to set many preferences for that account until the account it logged ...
0
votes
0answers
23 views

Trying to track a PID in windows created from the pub command

I am doing some Polymer and Dart development, and when I am running the server, i run pub serve in order to spin up the server. The issue is that to stop the server, i need to break out of it <...
0
votes
0answers
36 views

Source windows environment variables in MSYS

I have a setenv.cmd script which contains paths for the windows cmd prompt: set CURRENT_SCRIPT_DIR=%~dp0 set PATH=%PATH%;%CURRENT_SCRIPT_DIR%\bin But I'm using bash (via msys in the git for windows ...
0
votes
0answers
26 views

cygwin: git commit - vim Editor always in line 5 but not on file edit

I am using cygwin on windows and git from the shell. VIM is configured as my default commit message editor. When I am editing my commit message, ie $ git commit my cursor always resides to line 5 ...
0
votes
0answers
25 views

Startup script unexpected results

I'm experimenting with a small script to setup my webserver on Vultr. This is a "Startup script" that is used by Vultr on the background after deploying a new machine for me. If I run manually with ...
0
votes
0answers
18 views

Cron job appears to work, but no changes seen in file

I have a simple cronjob that uses curl to download a file and save the contents to a file. The crontab file reads: 45 17 * * * /home/my_username/public_html/./update_md.sh where update_sh.md = #!...
0
votes
0answers
11 views

Assigning terminal command to change a specific preference setting

Following the useful guide available through A Modern Story, I've installed Hadoop on Mac OS X for the learning purposes. I start Hadoop by typing hstart and hstop, which correspond to the following ...
0
votes
0answers
30 views

Virus keeps appearing. How can i find the security hole?

I just started working with this client recently, and when i got into his server, it was full of viruses. At least 4 of his cpanel users had viruses on their websites (completely managed by him). The ...
0
votes
0answers
31 views

Is it possible to limit the memory a process uses from command line?

Is it possible to limit the amount of memory a process consumes from the command line and eventually automatically kill the process if it tries to overpass this limit? Something like MaxRam -4GB ./...
0
votes
0answers
12 views

How do I change all objects within a S3 bucket to reduced redundancy?

I'd like to know if there is a bucket wide (not per object) way of doing this. Bash, s3cmd, python any possible way would work for me. Thank you!
0
votes
0answers
26 views

Ansi escape sequences in Makefile

I wanted to create color output in make so that is more readable, but I cannot get it to work. Makefile: all: echo $$'\x1b[36m Test \x1b[0m' When I run make raw string is printed, but when I ...
0
votes
0answers
15 views

How do I make cut/kill from iTerm2 go to the system clipboard (Mac)?

This is not inside emacs or vim or anything just at the commandline. If I Cmd-k the current commandline I'd like it to go to the system clipboard. Is that possible?
0
votes
0answers
12 views

Current Working Directory at the Top of the Terminal (Not in Tab Title)

Is it possible to do this in bash or do I need to use something like screen? This is on Mac OSX running bash inside of the terminal. I'm looking for a line that just sits on top of everything and is ...
0
votes
0answers
99 views

Ubuntu Server on Hyper-V - How to get the ip address of the host?

I'm running ubuntu server 15.10 in Hyper-V on a Win10 Host. I use autofs on ubuntu to automatically mount a network share during boot. Everything is working as expected - As long as the ip address of ...
0
votes
0answers
132 views

In Debian XFCE 4.10, how do I change the default Terminal shell from dash to bash?

I have a Debian-based Linux system (Kali Linux) running on AWS with the XFCE desktop environment. When I click on the "Terminal" icon in the application selector at the bottom of the screen, the ...
0
votes
0answers
15 views

Automatic documentation of dotfiles/config files configuration options

Has there been any work done on the front of automatic config file documentation? For example it is a good practice to add a comment line above/next to your config option, such as (source links at ...
0
votes
0answers
49 views

SSH Tunnel between devices behind firewall and vps ubuntu server

I am trying to establish an ssh tunnel between devices, that run OpenELEC and my ubuntu vps server. The idea is that the devices will open an ssh tunnel to the server and keep it on at any given ...