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

learn more… | top users | synonyms

1
vote
0answers
823 views

bash autocompletion is slow, freezing my desktop

sometimes when working with a custom kernel, pressing tab in the bash autocompletes at a horrible pace. It freezes the whole desktop. Then comes back after awhile. This is the only quirk that I've ...
1
vote
0answers
243 views

bash add array to plist

I'm making a installable package via Cydia that will write com.intelliborn.intelliscreenx to this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ...
1
vote
0answers
512 views

USB Modem not getting connected after resetting using usb_modeswitch

I have a requirement that I need to first unmount and then mount again the 3G internet modem on ubuntu 12.04 without removing it physically. The modem model is Huawei E173u. So far, I have tried this ...
1
vote
0answers
54 views

android base64 cli conversion utilities

I want to encode a file into android base64. Android's sdk has a utility method that does this. I should be able to avoid doing any Android programming to solve this. There are utilities for windows ...
1
vote
0answers
67 views

Is this a bug in top?

This command line: top -l 3 -n 10 -o "vprvt" For some reason there are two processes that consistently creep up in the second sample's output regardless of their actual VPRVT size, and they do not ...
1
vote
0answers
662 views

Faking a Linux environment without chroot

For a university project I want to test a C++11 program on a 32-core machine. Unfortunately the machine has Ubuntu 12.04 with GCC 4.6 installed (we need GCC 4.7 because of some C++11 threading ...
1
vote
0answers
63 views

No error output for ruby commands

I am currently having the following problem: Some of my ruby/rbenv commands commands (e.g.: bundle exec irb, rbenv rehash) fail when executing. However I don't get any error output: [~]$ bundle ...
1
vote
0answers
74 views

How can I use the PROMPT_COMMAND feauture in emacs shell?

In my regular shell I have PROMPT_COMMAND set up to run a script which keeps track of certain information about all the commands I run from any host I connect to. This is very helpful. I often find ...
1
vote
0answers
17 views

How do I log peaks from a mic if they pass one or more thresholds?

I know that the package of xawtv has program call record that can start recording if sound level is over some threshold - but that is not quite the solution. If someone knows how to do it - it could ...
1
vote
0answers
44 views

Making M-u, M-l, and M-c apply to whole words in readline

This is what I've come up with so far: "\C-\eU": upcase-word "\C-\eL": downcase-word "\C-\eC": capitalize-word "\eu": "\C-f\eb\C-\eU" "\el": "\C-f\eb\C-\eL" "\ec": "\C-f\eb\C-\eC" Is there some ...
1
vote
0answers
244 views

Node.js with Forever and node-dev

Seems like it should be a really simple one, but: How can I run a node.js application with node-dev and forever.js forever start node-dev app.js doesn't work. Ideally I'd have this as an init.d ...
1
vote
0answers
572 views

Is it possible to run an interactive script before shutdown Linux in a GNOME session?

I wrote some utility interactive scripts and want them run before shutdown. For a terminal-login session, I just add some entry in ~/.bash_logout, my login shell is bash BTW, which works. However, I ...
1
vote
0answers
57 views

Where shared folders are located on MAC OS X Lion?

On Snow Leopard there is a file named /var/db/samba/smb.shares where listed all shared folders. Does anyone know, where that file is located on MAC OS X Lion? Thanks
1
vote
0answers
143 views

aescrypt doesn't function with pv in pipeline

I am writing a bash script that pipes a file through pipe viewer to watch encryption progress. However, whenever I use aescrypt in the pipeline with pv, I get an error about not matching passwords. If ...
1
vote
0answers
337 views

Converting csh or tsh scripts to Bash

I am looking for a tool that can convert scripts written in csh or tcsh to a bash scripts. At least on the basic stuff so that I don't have to go through the process of translating everything from ...
1
vote
0answers
106 views

script -e and crontab or at

I have a shellscript I want to run via at and use script to capture a transcript. script -e was introduced in util-linux-ng 2.18 and returns the retval of the child process. I want to capture the ...
1
vote
0answers
103 views

Using gxine_client to get and set value playlist.repeat for running gxine

I would like to know how to use the gxine javascript interface from bash shell. I want to have a bash shell script read out value of running gxine, set things like playlist repeat/loop option, ...
1
vote
0answers
475 views

user crontabs don't work, only /etc/crontab

Hi when I use the command crontab -e to set up cron, the commands get triggered (according to syslog) but nothing happens. Also if I run sudo crontab -e. The only way to actually get cron working ...
0
votes
0answers
3 views

Windows 10 Ubuntu Nginx Port in Use

I installed the windows 10 technical preview to use the Ubuntu subsystem, but upon installing nginx I can not start the service. Here is the error log:
0
votes
0answers
12 views

Converting JPG to MP4 green output

I'm trying to convert JPEGs to MP4 using ffmpeg. I've got the process working for PNGs so I know I'm heading down the right track. With when ffmpeg finishes processing a JPEG, the resulting MP4 can ...
0
votes
0answers
9 views

Record all child processes spawned by a program/script

I want to record all child process Ids spawned by a long running program. Is there a way we can do that? Lets say we are running a script which does build+test and runs for an hour spawning many ...
0
votes
0answers
11 views

Run Windows app from Ubuntu on Windows

I'm using bash on Ubuntu on Windows. I navigate to a folder and from there I'd like to open a file in a Windows program. For example: After entering cd \mnt\c\Users\myusername\Desktop notepad index....
0
votes
0answers
3 views

How to configure AWS EC2 user data values and bash script

When launching a AWS EC2 instance, you can give a user data string that is interpreted either as key, value pairs with some configuration variables, or as a bash script, if it begins with a #!/bin/...
0
votes
0answers
9 views

How do I get bash history for users running commands via PHP shell_exec()?

Is there a .bash_history or something similar stored out of memory when running shell commands via PHP's shell_exec() or backticks? PHP is running Cloudlinux+FPM multi-tenant where each user owns its ...
0
votes
0answers
8 views

Installing NS2 under Ubuntu

I'm trying to install NS2 on Ubuntu 14.04. I followed the steps that are recommended and in this answer. But I'm still facing lots of errors. /home/smallko/ns-allinone-2.28/sgb/gb_io.w:576: undefined ...
0
votes
0answers
12 views

How to force dialog windows to be displayed in front?

When I open a zenity dialog window with bash, the window is always displayed in the background rather than in front of the terminal window. For example zenity --info --title='Just a title' --text='...
0
votes
0answers
13 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
15 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
20 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
15 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
10 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
18 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
37 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
10 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
18 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
29 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
14 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
20 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
31 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
17 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
65 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
16 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
21 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
24 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
23 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
57 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 ...