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

learn more… | top users | synonyms

1
vote
0answers
759 views

File shows different size after copying to another directory

I used cp -rP <dir name> <new dir name> to copy the contents of a directory, including permissions etc from one dir to another. The odd thing is, either du is giving me some strange ...
1
vote
0answers
221 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
655 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
192 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
431 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
52 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
59 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
547 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
61 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
68 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
458 views

“set -xe” in fish shell

In bash, invoking set -x at the beginning of a script causes the commands to be printed on stdout while the script is executing. What's the equivalent syntax for the fish shell?
1
vote
0answers
16 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
43 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
238 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
483 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
56 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
136 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
326 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
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
95 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
8 views

Execute contrab as root not working

I need to execute a backup script each night. When I execute manually, backup is done without problems, but I use sudo crontab -e and add the script there: root@SF-DES-SVN:/home/svn# crontab -l # m h ...
0
votes
0answers
34 views

How to run Python script in a terminal window by double clicking it?

I am running OSX, and I am making an app that has a Python program in the Resources folder, the Bash script calls the Python script to run when the app is launched. The script is in the MacOS folder ...
0
votes
0answers
6 views

AFP share with local Unix users

I have a Solaris server on which I have a AFP share. I connect from a Mac client to that AFP share with local users from the Solaris server. So let's say I connect to the share with the Alice user. ...
0
votes
0answers
19 views

Bash not working any more?

I was trying to install home brew (I am new to the command line and was following some tutorials on how to get up and running with github). So I was following this Unofficial Update Method: Compile ...
0
votes
0answers
4 views

Multiboot AD Binding Script Trouble (Error 10001)

So let's preface this with what I'm trying to do: I'm using DeployStudio to deploy multi-boot Macs, such as OSX10 and OSX09. My workflow goes like this upon Netbooting into the deployment server ...
0
votes
0answers
10 views

Cannot remap Control-<key> to another Control-<key> using .inputrc in bash + Terminal + OS X

I'm trying to remap Control-g to Control-c for use in bash in Terminal.app in OS X. This is because Control-g in Emacs is 'abort'/'cancel', and my ingrained muscle memory leads me to hit Control-g on ...
0
votes
0answers
9 views

How to enable arrow keys on vim used from msysgit bash

I just need a simple solution that will enable the arrow keys in the vim included with Git For Windows. I did found a solution to enable backspace. But no solution for the arrows problem. The arrows ...
0
votes
0answers
11 views

Canvas lms open sourse installation

Hope you are doing fine. I am facing a lot of problem while configuring canvas using ubuntu 14.04 following the steps described in https://github.com/instructure/canvas-lms/wiki/Quick-Start Step 1: ...
0
votes
0answers
15 views

Issue with python path after installing Vagrant

I just recently installed Vagrant using this guide: https://www.reddit.com/r/deepdream/comments/3c2s0v/newbie_guide_for_windows/ I noticed that after that when using git bash, I was unable to use ...
0
votes
0answers
15 views

How to auto execute my script

I want to auto execute my script when I login to putty session on my system. My script is residing in my /home/alih directory. Script change the current directory to my working directory.
0
votes
0answers
11 views

Static Routes startup scripts issue Debian 7

I think that is a bug of Debian 7, but maybe you have any other solution than crontab and add route add to /etc/rc.local I try to add static route during system startup, but all solution below not ...
0
votes
0answers
13 views

Why can't I git push from gTerm / MATE Terminal?

I'm running Linux Mint 17 'Qiana' MATE and have a strange issue with bash sessions initiated via Gnome Terminal: whenever I attempt to push code to our git repo via git push, the operation fails with ...
0
votes
0answers
25 views

shell script works normally, but not as a vagrant provisioning script.

I am trying to have vagrant run a script from within the provisioning script. pip install --upgrade pip sudo pip install virtualenvwrapper source /usr/local/bin/virtualenvwrapper.sh mkvirtualenv -r ...
0
votes
0answers
25 views

How do I make Git Shell open Bash instead of PowerShell?

I have GitHub for Windows installed. In the options, I have selected Git Bash instead of PowerShell, and when I click on "Open in Git Shell" from within GitHub for Windows, it correctly opens Git ...
0
votes
0answers
15 views

Linux - Bash - Xterm , gnome-terminal opening mutiple windows

I am trying to have a seperate window, which opens to cat a certain file on loop. When I use the command: xterm -e or gnome-terminal "command here etc" them commands will open multiple terminals ...
0
votes
0answers
9 views

Piping back resulting stream from split remote commands

I'm trying to perform the following: (1) generating data on my local workstation (2) piping this data (huge amount!) once to my remote speedy server (3) performing two separate operations on this ...
0
votes
0answers
28 views

How to communicate with a LaunchAgent via Unix Sockets?

I'm trying to setup a LaunchAgent (running in the current user's UI context) that can receive "commands" like a server. The "commands" are sent by a LaunchDaemon running as "root" user, or some other ...
0
votes
0answers
36 views

bash: monitoring which files are used by a process in real time

Is there any command to track what files are opened / closed / written by program with given PID in real time? I want to: run a program, enable program file operations monitoring, do some stuff in ...
0
votes
0answers
53 views

Removing directories using bash script

I have a bash script which I want to delete 5-day-old directories with a name format such as 01-Aug-2015: find /usr/backup/mysql/$date -type d -mtime +5 -exec rm -rf {} \; This is not working for ...
0
votes
0answers
26 views

ow to Move Specific files with specific date stamp from one Amazon bucket to folder in the bucket : Linux bash

I have this bucket name in Amazon s3 event-s-event in this Amazon bucket I have millions of files and uploading in it after every hour. Lets suppose I have these files with some names like ** ...
0
votes
0answers
36 views

Why or where is `set -o emacs` overwritten in my Mac OS's Terminal running Bash?

I have set -o emacs at the end of my .profile, which gets read whenever I open a new Terminal window. Terminal runs the default login shell, which is Bash. However, I still get: ~ set -o | grep ...
0
votes
0answers
50 views

Fedora L2TP IPSEC VPN failure

I'm trying to connect to an L2TP IPSEC VPN server on Fedora 22. Connections have been successful Windows, Mac OS X, iOS and Android. I cannot get it to work on Fedora 22. I've followed ...
0
votes
0answers
11 views

Linux CLI colors wrong output

I have a few different linux systems and some of them the color looks ok and right. Other ones the colors are darker and bold. I have checked my putty settings and output from dircolors and they ...
0
votes
0answers
21 views

Extract each digit of variable and store as new variable in bash

I have a variable that is a number ranging from 1 - infinity. Lets say the number is 40. I need to store 4 as a variable, and 0 as a variable. Since the number can grow beyond 2 digits, lets say the ...
0
votes
0answers
34 views

Running 'su - user sh -c “~/.profile”' returns “No such file” error

I have a shell script running as root with the following command: ssh remotehost 'su - user sh -c "source /home/user/.profile; <command>"' I get the following output: bash: su - user sh -c ...
0
votes
0answers
21 views

using FISH shell — set default folder for multiple tabs?

I'm using fish shell in OS X. Using the standard bash shell, you can open multiple tabs in Terminal, cd to a different directory in each, and then save the setup as a Window Group (via Window > ...
0
votes
0answers
40 views

Execute local commands from remote server using Xshell.

I usually use Xshell on windows to access my Linux server. Every time when I want to copy a PDF file from Linux, I need use sz file.pdf to copy the file, then locate and open the file on Windows. How ...
0
votes
0answers
36 views

Change bash to default login shell on AC66U running Merlin and Entware

I'm trying to switch from sh to bash as my default login shell, on an AC66U running the Merlin firmware. I have bash installed in entware's partition, but when I switch user:x:0:0:user:/root:/bin/sh ...
0
votes
0answers
13 views

Fail restore xampp backup

I'm trying to restore an old backup but I can not, I tried to make a new backup and restore but an error occurs. I tried the following commands all failed sh ./xampp... sh xampp... bash xampp.... ...
0
votes
0answers
16 views

Bash filename tab completion when an environment variable is present

When I use tab completion on a normal path like this: vim /home/tester001/di<tab> it correctly expands to: vim /home/tester001/directory_1/ and I can continue like this: vim ...