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

learn more… | top users | synonyms

0
votes
0answers
43 views

Can't clear the screen when I run docker on Windows Command Prompt

I am using docker on windows with an Ubuntu Image. Everything is just fine on docker itself, but when I run one of those images, whenever I try to clean the screen, the cursor moves to the fist line ...
0
votes
0answers
23 views

Forward slash disappear into a variable in OSX

This is getting me crazy absolutely. $ a="/" echo $a $ var="/home/vivek/foo/bar" $ echo $var home vivek foo bar What's going on on my OS X bash? I've tried this on my other Mac.. and works ...
0
votes
0answers
70 views

Bash: How to download data from Google Form

How can I download the .csv of the responses of a Google Form from Bash? I tried wget https://docs.google.com/spreadsheets/d/1gRMnKkqKaDAhpm6ytfvZEYfD9_j9HzDk1Q4HgMYC7Xg/edit#gid=1933231618 but ...
0
votes
0answers
5 views

Cyberoam not working properly after wakeup from sleep in ubuntu

In Ubuntu after waking up from sleep cyberoam is not working. If I login again it is showing ./crclient: Already Logged In With Process Id 1704 when i tried to kill process using kill 1704 it is ...
0
votes
0answers
44 views

ssh command running on local always prompts for password

im not good at bash script so i look around and found this script elsewhere to run and start adminconsoles and also to verify, but the script was initially used to ssh on a remote machine but what i ...
0
votes
0answers
25 views

.profile environment change in ubuntu

Ok, I am having a heck of a time with permanently setting an environment variable in Ubuntu 14.0.4. I am working on installing Bro IDS and it requests that I set this path You can also add ...
0
votes
0answers
15 views

Any number of arguments when looping through array of strings?

I'm currently working on making a basic linux script such that it takes any number of arguments and calls a separate script to print the third character of each argument on separate lines. I made ...
0
votes
0answers
33 views

BASH: feeding user input into a c-program that also takes command line input (trying to use here-document)

I am writing a script that calls a c-program that I have written. The c-program takes a file path as a command line argument and then prompts the user for input. I want to use a here-document to ...
0
votes
0answers
41 views

How to get recursively tag from html in bash?

I have a script which get links for video and it downloads it via aria2. I used this command to get last page ID. For this example it is 3. wget -qO- ...
0
votes
0answers
13 views

Synthesizing progress function with tar script

I use this tar script to backup my files: #!/bin/bash cd /mnt/backupdisk tar -cvpzf "$(date +%m%d%Y).tar.gz" --exclude="~/Documents/Excluded" --exclude-caches-all /home I want to add a progress ...
0
votes
0answers
10 views

Remote PW change for OSX

I am trying to script a password change to push out to all of our Macs from Altiris. I can get the password to change locally from terminal: sudo dscl . -passwd /Users/username newpassword But I ...
0
votes
0answers
67 views

What approach should I take to install Bash on a Synology NAS (RS815RP+) inside a corporate network?

I am attempting to install an application on my Synology NAS (RS815RP+ running DSM 5.1-5022). The installation appears to have failed due to the Bash shell not being available. Ash is the default ...
0
votes
0answers
51 views

PATH has invalid characters

I was fiddling with my PATH on my mac because home-brew wasn't working. My path could be broken down into three versions: Clean path is the most ideal path, since I don't use Pebble's SDK anymore. ...
0
votes
0answers
42 views

Getting “No Such File or Directory” but the program exists in Debian armel

I’m running Debian armel in Qemu and trying to run an ARM program but am running into issues: user@debian-armel:~$ ls -lbat total 32 drwxr-xr-x 2 user user 4096 Sep 14 23:54 . -rw------- 1 user user ...
0
votes
0answers
52 views

Linux: Delete all but x files?

I have a series of files with different IDs: File_ID1_1 File_ID1_2 File_ID1_3 File_ID1_4 File_ID1_5 File_ID1_6 File_ID2_1 File_ID2_2 File_ID3_1 File_ID3_2 File_ID3_3 For every ID there is a defined ...
0
votes
0answers
22 views

Rename and copy bulk files

I have encrypted /home/user folder. I want to copy plenty of files from my USB stick, but almost half of files have too long file names. I want all file names to be cropped from like "1. asd ...
0
votes
0answers
106 views

aria2c show just progress bar

Is there any way to just print progress bar and File information of downloading with aria2c in bash script?. I tried awk -W interactive '$0~/\[/{printf "%s'$'\r''", $0}' this but it refreshes in 1 ...
0
votes
0answers
79 views

Execute crontab 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
25 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
40 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
87 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
47 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
20 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
34 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
20 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
57 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
41 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
16 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
68 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
50 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
59 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
49 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
46 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
184 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
22 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
29 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
62 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
32 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
127 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
65 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
26 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
24 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 ...
0
votes
0answers
32 views

“fortune” command no output when running as daemon

I execute the fortune command from a daemon, but I don't get any output. If I run the bash-file from command-line I get the output without problems. echo "$(fortune)" The daemon is the Telegram-CLI ...
0
votes
0answers
38 views

Group permission doesn't work for group

I'm trying to give me permissions to write on a file owned by www-data me@home $ touch my_tralala && chmod 660 my_tralala me@home $ sudo chown www-data:www-data my_tralala me@home $ groups me ...
0
votes
0answers
44 views

RHEL 6: GNOME: staring a *.desktop file in a shell different from the system default

I'm in RHEL 6 with bash as my default shell. I have a script called startServers I made a startServers.desktop file which I put on my desktop so I can have the convenience of clicking on an icon to ...
0
votes
0answers
178 views

Fedora 22 Docker Container unable to network

I have been struggling with Fedora 22 and getting Docker images to be able to communicate with the outside world. Not sure how to start testing this, or even where to start to look. Let me explain ...
0
votes
0answers
17 views

SELinux issue with php_shell_exec

I have a php site on CentOS7 that needs to use some shell scripts using php_shell_exec. But the scripts do not run due to SELinux (that I require). None of the scripts use sudo, I understand that ...
0
votes
0answers
21 views

What is the alt+~ hotkey on the bash terminal?

I was switching between windows today (alt+`) and had my finger on shift as well it seems - this popped up in my terminal, avahi user mysql ...
0
votes
0answers
19 views

How to rerun a program if word `error` is detected on STDERR?

I am using a compiler that is pretty moody. Sometime it crashes for an unknown reason. Inside my Makefile I would like to rerun the build in case of an error. So far I wrote this: TRY=3 until [ ...
0
votes
0answers
47 views

Why “ls” command highlights some folders?

Why LS highlights folder PyFac ? How disable this highlighting? IMG My .profile: if [ -f $(brew --prefix)/etc/bash_completion ]; then . $(brew --prefix)/etc/bash_completion fi export CLICOLOR=1 ...