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

learn more… | top users | synonyms

1
vote
0answers
567 views

How to kill process under cygwin after using kill -9 which does not work

I am using cygwin on Windows7. I tried to kill process on cygwin using kill -9, but it said 'No such process'. $ ps PID PPID PGID WINPID TTY UID STIME COMMAND 3976 ...
1
vote
0answers
130 views

Bash Terminal keeps clearing / overwriting itself

My bash terminal on Ubuntu 12.04 64 bit keeps clearing itself partially when the output is too big. If I do a ls -al in a directory with many files. The terminal prints the result, inbetween it ...
1
vote
0answers
56 views

How to make tab completion work within parentheses

On my Ubuntu machine, I can do this emacs $(which first-part-of-executable<tab> and bash will tab-complete the full executable name. I enabled this myself by adding complete -c which to ...
1
vote
0answers
75 views

Bash Shell doesn't recognize the letter “t”

I have Cygwin running on a Windows 7 Box. In what is a relatively new (and strange) development, the bash shell stopped recognizing the lowercase "t". For example: I type echo cat, output is ...
1
vote
0answers
133 views

Getting bash history-complete-backwards/fowards and vi-mode to work with tmux

I'm using bash on Ubuntu 12.04 my inputrc contains: "\e[A": history-search-backward "\e[B": history-search-forward set show-all-if-ambiguous on set completion-ignore-case on"" for my history ...
1
vote
0answers
263 views

Can't seem to connect to Win 7 share with smbclient 3.5.5 on Haiku

I did the registry mods mentioned here but cannot seem to connect. I say seem to, because there's no error message. smbclient \\\\WIN7MACHINE\\ -U myusername smbclient \\\\WIN7MACHINE\\ -U% ...
1
vote
0answers
831 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
247 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
517 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
55 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
68 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
668 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
577 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
144 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
340 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
10 views

Bash in Windows 10 - Directories not appearing when created in File Explorer

Using Windows 10 Enterprise Insider Preview Buil 14372.rs1_release.160620-2342 When I create a directory in Bash (e.g. mkdir test_from_bash) it appears in the File Explorer but the opposite doesn't ...
0
votes
0answers
35 views

Unable to update Android SDK in headless mode on Bash for Windows 10

As currently I am exploring the Bash for Windows 10, I have stumbled on a problem with trying to fully set up Android SDK for it. I have downloaded the SDK and set up the path variables for ...
0
votes
0answers
16 views

bash: $'\302\211[COMMAND]': command not found

I've used bash in xterm on Debian Jessie for about 2 years. Just recently I sometimes get an error bash: $'\302\211[COMMAND]': command not found. The only help I can find on the topic is Piping grep ...
0
votes
0answers
17 views

Sort 'top' by CPU time accumulated since launch of top

OS X 10.11.6, GNU bash v3.2.57. How I want top to behave top in 'accumulative mode' (that's the name according to the man page, which I understand to mean: accumulated values are counted from launch ...
0
votes
0answers
11 views

Connect to remote failed: couldn't open socket: connection refused (::comm::comm tcl)

I am using a piece of software with a lot of tcl support. I call everything as root. I attempted to put everything in the same directory. The relevant scripts are all executable. When I call this ...
0
votes
0answers
11 views

Add git access to /bin/bash (chroot) on Ubuntu, using Plesk

I have a couple users who wish to use git, they are allowed shell access but are chrooted into their own directory. I assume there has to be a way without exposing options to any shell at any level to ...
0
votes
0answers
5 views

NeoVim FZF Hidden Files

Hello bash experts out there, I'm new to using neovim and I'm having a hard time figuring out why my FZF is not showing hidden files, such as .gitignore and `.htaccess`` Here's what I have currently ...
0
votes
0answers
18 views

Interruptable Loop that Does Not Interrupt Piped Processes

I'm trying to write a shell script which performs an operation every fifteen minutes until the user interrupts it, then aggregates all of the results to stdout and exits cleanly. My thought was to ...
0
votes
0answers
8 views

Displaying .svg files without saving them from the terminal

I'm looking for a way to dispay .svg files from the terminal without having to save them on my drive. Basically I want to pipe them into the program, and have the program display it (from RAM) and ...
0
votes
0answers
12 views

tclsh script within a sh script permissions

I am having an issue with calling a tclsh script from within a sh script on Ubuntu. I can call the tclsh script form the terminal successfully, yet as soon as I try and automate its calling from ...
0
votes
0answers
11 views

In fish shell, which command is equivalent to bash's compgen?

compgen is a useful command, and fish is an excellent command shell. But I cannot find an equivalent in fish. I write one by myself: function compgen --description 'Print a list of documented fish ...
0
votes
0answers
21 views

Will Bash on Ubunutu on Windows be available for 32-bit Operating Systems?

Windows announced the the Anniversary Update of Windows 10 on August 2nd 2016 will include a feature called "Bash on Ubuntu on Windows". Users who receive insider builds have already had a chance to ...
0
votes
0answers
19 views

Execute a command stored in a variable

I want to write script that will show cpu utilization for one service. below is script and output for the same. Kindly assist. Script : yourpid=$(service tomcat_SP status | cut -d':' -f2) #this will ...
0
votes
0answers
9 views

How to restore /usr/libexec/java_home on Mac OSX El Capitan?

In the process of attempting to restore a bad jdk installation, my /usr/libexec/java_home executable was removed. Is there any way to restore it?
0
votes
0answers
23 views

Bash - Removing all but a single number in output of command

I'm working on a script to process all images in which the standard deviation is less than a certain threshold, e.g., if overall SD is less than 50 in x image, do y to x. The command I am using to ...
0
votes
0answers
29 views

Docker exec doesn't load aliases

I have a bash alias loaded into a Docker container, in /etc/bash.bashrc. It functions as a shortcut to a commandline PHP script. This is convenient, since anyone can use that alias directly after one ...
0
votes
0answers
27 views

command_not_found_handler not allowing cd command

I have the following code block in the ~/.bashrc file function command_not_found_handle { for dir in $@; do path="${path}${dir}/" done if [[ -d ${path} ]]; then echo "...
0
votes
0answers
34 views

I have an issue with the cron

I have this script : #!/bin/bash if [ ! -e /home/mam/restart.lock ]; then touch /home/mam/restart.lock killall arma3server /home/mam/arma3server & fi I made a cron like that : * * ...
0
votes
0answers
23 views

bash on windows cannot 'see' mysql server started from Windows environment

I have a WAMP stack running from my Windows environment. But because I much prefer the Unix environment, I issue my symphony commands from within Bash on Windows (the Ubuntu Linux for Windows ...
0
votes
0answers
19 views

Cannot make function key bindings (F1-F12) to work in byobu with tmux backend

I use Ubuntu 14.04 and have the latest version of byobu installed via apt-get. It has always worked flawlessly but started showing some weird behaviour just recently with no obvious reason. I use it ...
0
votes
0answers
95 views

Windows 10 Linux Subsystem SSH client Resource temporarily unavailable

I am trying to ssh into my remote server within the Windows 10 Linux Subsystem. I am using MS Windows 10 Home Insider Preview build 14366. While at the command prompt, I type: ssh user@domain.com ...
0
votes
0answers
14 views

HandbrakeCLI bash batch script only transcodes one file and exits

Iam writing a bash script that loops through webm files and transcodes them to .mp4 using HandbrakeCLI. However, to my surprise, Handbrake only transcodes one file instead of all of them. Here's my ...
0
votes
0answers
19 views

Shutdown script not running

I configured a Minecraft server to run at startup inside a screen session. I'm on an EC2 AWS Instance. I would like to stop it at shutdown, so I created the following file inside /etc/init.d /usr/...
0
votes
0answers
27 views

bash script + printf + how to indent the lies with printf

I have many files like the following ( the same concept on all the files ) more list-OS23 linux-d linux-01 fedora-linux-c Solaris_machine1 AIX-65 linux-redhat18 unixware7-h unix-...
0
votes
0answers
12 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
31 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 ...