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

learn more… | top users | synonyms

1
vote
0answers
102 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
91 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, ...
0
votes
0answers
12 views

create and run bash script on start of runlevel5

I have created a following hello bash script: #!/bin/sh echo "Hello Run Level 5" I put this script in the /etc/rc.d/rc5.d directory with a name S100RunLevel5. How can I make this script to run ...
0
votes
0answers
26 views

Enable tab autocomplete in PhpStorm terminal on mac?

I am using PhpStorm for a pretty big project. We use Git for our versioning control. Needless to say, this leads to me switching back and forth all day between branches. I'm using the terminal window ...
0
votes
0answers
17 views

Git Bash on Windows 8 open to specific directory except when using Git Bash Here context menu

When I right click and choose Git Bash here it works as expected and the shell launches in the correct window. When clicking just the icon, despite changing the Start In settings, the directory is ...
0
votes
0answers
13 views

Issue with backing up and restoring XAMPP due to unknown software version

I had a ton of permission errors with my XAMPP installation, so I decided to uninstall and start over to avoid hassles with figuring out the correct permissions. I used the XAMPP backup and restore ...
0
votes
0answers
14 views

Process stuck after being put into BG

I'm trying to put a process into background with (Ctrl+Z + bg): [andrey@localhost dir]$ git clone https://github.com/rust-lang/rust Cloning into 'rust'... remote: Counting objects: 465324, done. ...
0
votes
0answers
7 views

equivalent of iptables rule in ip6tables

I m newbie in the iptables. I have the following iptables rules in the source code of a project iptables -t mangle -I PREROUTING ! -i br0 -p TCP --dport 45 -j MARK --set-mark 0x1000 iptables -t nat ...
0
votes
0answers
12 views

Is it possible to run gitbash over windows telnet?

I've got two windows machines, and I can telnet from one into the other just fine. However I use the git bash shell in preference to DOS and I'd like to be able to telnet from box 1 to box 2 and run ...
0
votes
0answers
36 views

Removing special characters (spaces, newlines, tabs) from a text file

I have a flat file (1252 ANSI-Latin 1 encoding) that I wrote out from querying a third party's SQL database that has within it extraneous characters. To make it easier to reformat, I am writing it ...
0
votes
0answers
14 views

how to keep bash buffer in sync between ansi-term line mode and char mode

when switch into term-line-mode, if bash buffer is not clear first, the original text will be left in the front of edited line, I tried to first kill the line in term-char-mode then paste it in ...
0
votes
0answers
8 views

Is there a global .hushlogin file?

We have a set of users that can log in but that do not have home directories. Can I still provide some sort of .hushlogin for them?
0
votes
0answers
15 views

don't save big commands in .bash_history

How to prevent saving commands that consist of more than 2 lines in .bash_history? I tried: HISTIGNORE='* * *' but commands such as: cat <<'EOF' a b c EOF are saved.
0
votes
0answers
14 views

Zip epub using 7zip and issue with exlude file

I've many epub as folders need to convert it to .epub compressed so i created bash script to that ..which are compress the epub folder to zip then rename it to .epub using 7-zip btw i was try to use ...
0
votes
0answers
13 views

Bash history deduplication causing dangerous multi-shell behaviour

I am using the following code in my .bash_profile to filter and de-duplicate my bash history: shopt -s histappend HISTSIZE=100000 HISTFILESIZE=100000 HISTCONTROL=ignoredups:erasedups ...
0
votes
0answers
21 views

ICMP flood with ping working only one time

my problem is simple: The first time I made a flooding ping to a fake ip on my network (for testing if someone is on promisc mode), it works perfectly: $ping -f 192.168.1.10 After perfoming this, ...
0
votes
0answers
34 views

How to get Fish shell and NVM both installed with Homebrew to work together?

I am trying to manage my packages for OSX using Homebrew as much a I can. I have installed both the Fish Shell and NVM using Homebrew but cannot get Fish to recognize my NVM installation. NVM ...
0
votes
0answers
10 views

Distinguish TAB and ENTER from C-i and C-m in .inputrc

The history: I'm remapping most of the basic commands to move, delete, search history for all my command-line based applications (Bash, Python, SQLite, etc) by modifying the .inputrc file in my home ...
0
votes
0answers
27 views

Command to see my current ip if proxy is applied only for a certain website

It might not be a relevent question here on so, but I tried on http://networkengineering.stackexchange.com and there are less users + they redirected me here. So, I am not a networking guy and I have ...
0
votes
0answers
23 views

LXC: Automating running an application inside a container

I'm working on a project that automatically compiles, executes and tests the output of submitted programs in C, C++, Java and Python. Obviously this needs to happen inside some sort of secured ...
0
votes
0answers
27 views

Why does sudo -n on Mac OS X always return 0?

It looks like sudo -n on Mac OS X (10.10.3) always returns 0 as a return code. So something like this will always show 0, regardless of whether the user has authenticated with his password first: ...
0
votes
0answers
10 views

Creating a Package installer that will run an already made package installer

I am new to creating package installers. I am looking to create a package installer that First Runs an already created .pkg file (printer Drivers) then runs a post bash script that configures the ...
0
votes
0answers
49 views

How to encrypt data in bitbucket without losing git diff tools?

Based on this question:encrypt files before sending them to cloud. considering openssl: For example when using openssl we can write the files fooenc.sh: #!/bin/sh openssl enc -bf -nopad -pass ...
0
votes
0answers
32 views

etherwake fails to run when ran by cron

I have a cron job to check if a client is connected to my VPN and then wake up some other computers on my network using etherwake. I have the script running every minute and it is actually running ...
0
votes
0answers
13 views

Can a subprocess launched from a parent executable access the memory of its parent?

Given a system() call with user controlled input, is it possible to read the virtual memory of the parent program? Assume that the system call is made with dropped privileges, and that running ...
0
votes
0answers
21 views

Readline stops working randomly

For some reason every 1-3 hours (depending on work load) my shell read command stops accepting input and hitting return renders the ^M character. Something like: Continue? After answering: ...
0
votes
0answers
19 views

Mac terminal lost git knowledge

When I opened terminal and went to a git repo, it would automatically show the branch I'm on with a big green check or red X if I had any changes. Logged onto machine today and my bash profile was ...
0
votes
0answers
36 views

SSH remote chroot without root

I have a dual boot system consisting of two Debian OSes. I've installed one of them in a root of the partition and installed the other Debian using debootstrap; the installation partition is called ...
0
votes
0answers
12 views

openssl print numeric value of the key?

Given a file contains the public key, I need to get the numeric value of the modulus and the e. But I can only get something like this: $ openssl rsa -in key -pubin -text Modulus (2050 bit): ...
0
votes
0answers
191 views

Unable to get vmware shared folders working in Ubuntu 14.10 Guest

i Installed Ubuntu 14.10 64Bit in VMWare Workstation 10.0.5 within windows 8.1 Enterprise. I installed vmware tools by running the vmware-install.pl script in terminal.But I am Getting an error ...
0
votes
0answers
48 views

Can’t cd, ls, chown/mod or rm directory — Unknown error: 211 in Mac OS X

Never seen something like this in all my years. This is happening in Mac OS X: $ ls -lO@ea dr-xr-xr-x 2 root wheel - 1B Mar 20 23:10 Music/ $sudo cd Music/ cd:13: unknown error: ...
0
votes
0answers
26 views

how to find packages in subdir with a particular dependency

From the root of new SLES media how is it possible to find all packages with a particular package dependency? That is, there are many RPMs in various sub-directories of root. How may I find all ...
0
votes
0answers
28 views

static ip address disappeared in the middle of running iperf

The following is done on iperf client side. I set the static ip address for eth0 by modifying /etc/network/interfaces, and activate the change by doing ifup eth0. Then I start iperf -c $server_ip -t ...
0
votes
0answers
25 views

“unable to remap to same address as parent”, can't get rebaseall to fix the issue

I posted this question on the Cygwin mailing list with no response, so I'm trying here. I keep getting this same unable to remap error and rebaseall does not fix the problem. Specifics: On running ...
0
votes
0answers
61 views

Change vagrant box prompt color

The standard purple in the vagrant shell is not readable in my terminal. I don't understand the way PS1 is set up so I'm hoping someone here knows how to get change the color. Perhaps thin letters in ...
0
votes
0answers
26 views

Having trouble building Vagrant bash script

I'm trying to set up a bash script provision to help build my virtual machine with Vagrant, but I'm clearly doing something wrong. Unfortunately the Vagrant docs don't provide any examples more ...
0
votes
0answers
9 views

How to make Konsole invoke konsole -ls for all users?

I admin a linux domain for students. The students use their lab workstations in graphical mode, but often use Konsole on KDE for ssh and programming tasks. I know Konsole can be configured through ...
0
votes
0answers
33 views

Copying from Emacs to other tmux pane (code execution for Ipython, sql, bash, etc)?

My preferred setup is running a terminal window with several tmux panes (a couple of shells, and an emacs session). What is the easiest way to send code from the emacs pane to be executed in the shell ...
0
votes
0answers
110 views

ffmpeg through shell script is not running

I have to run a ffmpeg command . I am running the below command in command prompt and works fine. ffmpeg -v verbose -i rtsp://99.192.203.99:8091/test.sdp -i rtsp://99.192.203.99:8091/test.sdp ...
0
votes
0answers
39 views

Starting a chroot and drop into nonprivileged user home

I need to (temporarily) jail a non-privileged user. I tried something like: sudo chroot --userspec=mcon:users /wherever/chroottarget /bin/bash -i This almost works, but it doesn't set env vars ...
0
votes
0answers
34 views

How to pipe arguments into stdin?

I am trying to generate a private key using keytool command, but it asks me for many details like my key passphrase, my name and my organization details. I want to pass all the inputs in one command. ...
0
votes
0answers
113 views

Crossfading Video AND Audio with ffmpeg

This Super User answer crossfade between 2 videos using ffmpeg has got me so far, but now that I have tried many solutions and seen every SO link out there, it's time to ask you all for help. I am ...
0
votes
0answers
26 views

How can I automatically run two commands in different screen windows with an argument?

My process is ctrl+a 0 command $1 ctrl+a 1 /join#$1 I'd like to shorten it down to one command.
0
votes
0answers
9 views

Bash/Cygwin synchronize two directories

I have small problem with synchronization of two git repositories. In first directory for example localRepo is only two subdirectories: localRepo/ dirA/ dirA1/ ...
0
votes
0answers
25 views

`newgrp` breaks source-ability of shell script

This is my minicom.sh, which I can source successfully with source minicom.sh: minicom --device /dev/ttyUSB0 --baudrate 115200 --color=on However, when I change the content of minicom.sh to this, ...
0
votes
0answers
43 views

Proper way to execute a script before running upstart based service?

I run the deluge torrent client within a virtual machine that mounts an NFS share from the filer that runs bare metal. Occasionally deluge starts before NFS has been mounted, and it starts downloading ...
0
votes
0answers
33 views

Open two URLs in a new Firefox window OS X

I am trying to launch Firefox from a bash script. The desired result is that a new window will spawn with two tabs that load two specific urls. I have successfully done this with Chrome as follows: ...
0
votes
0answers
30 views

Linux: how to convert multi-mp3-audiobooks with appropriate cuesheets?

I have several audiobooks in MP3 format, which are in multi-file format which means, they are named like CD01_CHAPTER_001.MP3 and so on. Now what I would like to do is the following: convert the ...
0
votes
0answers
13 views

Match the end of a path using bash completion

I am trying to modify z.sh so bash completion will give me a list of matches when the pattern occurs anywhere in match. I think I am bumping into a limitation on bash's completion tools. Here is a ...
0
votes
0answers
48 views

Sorting HTML content based on second line of table cell

I have an Windows text file, containing the text of an HTML table (no header, no footer) with each cell of the table not in alpha order. I'd like to alphabetize the tables, a la: REDACTED-TITLE-1 ...