Bash is the shell used in Ubuntu's command-line interface.

learn more… | top users | synonyms (1)

0
votes
1answer
9 views

“Permission denied” when download from script(ruby) file

I want to download a project's dependencies from a script file in tutorial said: run this comment to download ./download-dependencies core my way was like this: $ cd Documents/ImageProccesing/ $ ...
0
votes
0answers
14 views

Change iface when internet is slow bash script

Need help with script that will change eth1 or eth2 ( to auto set different route ). I have eth0 that is shared to lan and two different gateways (routers), one on eth1 and second on eth2. For now ...
2
votes
1answer
11 views

How to Launch Terminal Script with Appliation Icon?

I am relatively new to linux, but I wanted to get my Tor browser up and running. I have downloaded and extracted the Tor Browser Bundle. In order to open the browser I need to cd to the file and run a ...
1
vote
2answers
30 views

Will “kill -SIGTERM” stop “tail -f”?

Just as the title says, Google gives me nothing and I can't test it on this server. The command as is follows: tail -f <file> | fgrep --line-buffered "string" | sed -u 's/stuff//g' >> ...
0
votes
1answer
26 views

How to use rsyslog?

I've been scouring forums for a few hours and cannot find a concrete explanation on how to use rsyslog. I really just need the basics. I have a log file logFile.log and I want to forward the logs to ...
0
votes
1answer
33 views

Start a terminal on login and show a message

How can I write a bash that will execute at login and starts a terminal with message. pseado code: .bash_login #!/bin/bash gnome-terminal echo "hello user $username"; Just trying to learn some ...
1
vote
1answer
29 views

Does order of precedence with ENV variable changes which program to use?

Question: Does order of precedence in the PATH influence Ubuntu to choose which program to use? More details: I use .bashrc for declaring private env PATH, I have installed MSP430-gcc from ubuntu ...
0
votes
1answer
22 views

piping in real time

This is more a conceptual thing than a current problem. Would it be possible to do this: tail -f <file> | grep "string" | sed 's/stuff//g' >> output.txt The problem I'm thinking is that ...
0
votes
0answers
58 views

Bash script is not working. Could somebody help me?

E: Hi, i could use some help. I am sorry that some parts of the bash are in german. There are sure some mistakes in there but i can not find them i tried severel hours right now. I would be happy if ...
2
votes
1answer
20 views

How to run a complex command by xfce mail-watcher

I just installed the xfce4-mailwatch-plugin I would like to use the option "Run on click" to either switch to Thunderbird, or to open it if it is not currently running. The command I use for this is ...
1
vote
1answer
31 views

Start script on boot up?

I want to run a script when the system starts. The script is: #!/bin/bash gnome-terminal --tab -t "MyPC" -e "sh -c 'nohup firefox & nohup gedit & bash'" --tab -t "MYPC2" -e "sh -c 'ls -al;ls; ...
1
vote
1answer
35 views

Is there a way to reprogram the thinkvantage button to assign a shell bash program to it?

Is there a way to reprogram the lenovo think vantage button to open and run a shell bash program on ubuntu 14.04 lts? I have tried system preferences > keyboard >shortcuts > custom and assigned a ...
0
votes
0answers
30 views

How to make a shell bash login [on hold]

How to make a login page using shell bash and a csv file with the user names and passwords in This is then to be able to run some functions Ubuntu 14.04 Desktop
0
votes
0answers
9 views

Revkit Gui Interface Error

I am trying to install Revkit 1.3 in Ubuntu 10.04 LTS. Successfully ran ./make.py bootstrap and ./make.py build, but after giving the command /tools/gui/gui.py I get the following message: Traceback ...
0
votes
0answers
17 views

ssh connection problem

Hi everyone i am developing a robotic app, i want to run my launch files under a ssh connection with this script but when i run script it wants may password, i write it but nothing happens although i ...
0
votes
2answers
19 views

Deleting an entire line in a file that contains a certain string

I'm interested in figuring out a way to delete an entire line in a text file that contains a particular string. This will be for a text file that operates like a phone book containing names, address, ...
0
votes
2answers
15 views

Using Grep to search for multiple words in a file

I want to use grep in an If statement to search for a first-name and last-name within a text file. I can't seem to make it work on my own. if [[ grep -E "$first|$last" Datafile.txt ]] then ...
0
votes
0answers
11 views

Unable to set env var for ssh key-based login

I have a ssh key based login and I cannot see env variables that I set in : .bashrc, .profile, /etc/profile.d/setup-my-env.sh export PATH=$PATH:$HOME/opt/openmpi/bin export ...
0
votes
2answers
61 views

Run a script every time a shell is spawned

I need a way to make a script run at all times under all users and to automatically start if any new shell is spawned. Any ideas?
0
votes
1answer
16 views

Syntax Error: Unexpected end of file

I'm trying to run this script below and I have no idea why its not working. I keep getting an error message that says "Syntax Error: Unexpected end of file" and I don't know how to trouble shoot this ...
0
votes
1answer
18 views

Own brightness script, problem with missing ']'

I'm starting my adventure with Ubuntu ( I'm a MS's kid :D) and I would like to create my own scripts for controlling the brightness. I know all about the xbindkeys, and how does it works, but there is ...
0
votes
0answers
28 views

Crontab wont run this script!

I am trying to run this script as a cron job to enable a weekly back up of my mediawiki site. Running on Ubuntu server 14.04. It simply will not run. The scipt is running from the root folder of the ...
0
votes
0answers
15 views

reprepro - Is there any chance to enter the passphrase via bash-script?

I use "reprepro" for getting the latest Debian packages out of my local repository, which works fine manually. Now I need to automate this process through a cron job but the reprepro passphrase is a ...
1
vote
1answer
27 views

Silence GUI Program's Terminal Output

I am running a zsh function to open a .tex file in vim, while opening its related .pdf file in evince. I am currently using xdotool to open a new tab in the current gnome-terminal window, and then ...
0
votes
1answer
21 views

How to delete backup files using a bash script? [duplicate]

I want to automatically delete the backup files(those ending with ~) from everywhere on my computer. I tried to write a simple script usinglocate command, but I'm stuck at deleting file having space ...
0
votes
1answer
21 views

How do you create an additional interpreter?

Short and sweet version: I figured breaking it down into steps would make it easier. I'm building a website I hate SQL. It makes no sense to me, for a programmer to have to learn an additional ...
0
votes
1answer
28 views

Checking for a file and whether it is readable and writable

I'm trying to write a script that will look for a certain .txt file saved to my desktop. I want the script to be able to check if this file exists and then check to see if it is readable and ...
0
votes
1answer
16 views

Problems appending lines from a script

I'm writing a script and here's how i'm inputting into the CurrentOutput.csv file. echo "$col1,$col2" >> CurrentOutput.csv Input.txt 1.2.3.4 2.3.4.5 3.4.5.6 CurrentOutput.csv 1.2.3.4 ...
0
votes
0answers
19 views

file RELATIVE_PATH must be passed a full path to the file

Everytime I want to build smth using: cmake -DCMAKE_INSTALL_PREFIX" I'm getting errors like this: CMake Error at /usr/share/cmake-2.8/Modules/CMakePackageConfigHelpers.cmake:177 (file): file ...
1
vote
1answer
19 views

How to open piped path with text editor?

I want to do something like this: which some_script | gedit If I do this, gedit just open New document, instead of /some/path/some_script. The best thing I managed to do is: gedit $(which ...
0
votes
1answer
10 views

How can I activate my Apple Remote

I have a A1294 Apple Remote model no 2B9450C4RBRCA that I can not configure for my Ubuntu desktop.I have built all my dependancies for lirc,but it still doesn't show up,it's important to note that ...
1
vote
2answers
25 views

I want to write a Shell program for my Laptop battery

I found many commands that fetch the battery status and Percentage like upower -e and so on. Now, I want to write a shell program for an alert message (As we get during Connected and Disconnected to ...
1
vote
1answer
44 views

Launcher for Skype with webcam

I am a newbie on Linux distributions... I'm running Ubuntu 14.04, and I would like to create a launcher for skype with this particular command: bash -c ...
0
votes
0answers
13 views

start krusader editor from a command line bor bash

I am really happy with Krusader's internal editor and I would like to use it for editing files via bash scripts. So instead of: leafpad ubuntu.txt I would like to run say something like that to ...
2
votes
0answers
42 views

Bash script works from command line, but not if started by upstart

I have a script that listens on port 12 and invokes xbmc when receiving a wol packet. It works perfectly fine when I launch the script directly from the command line, but nothing happens when I let ...
1
vote
1answer
32 views

`curl ifconfig.me` behaving differently in shell script

I just tried a simple menu based shell script to get the public ip of my system. using ( curl ifconfig.me ) .. but I found it behaving differently. here I tried with: anupam@JAZZ:~/Desktop$ cat ...
1
vote
3answers
89 views

Bash command to convert IP addresses into their “reverse” form?

When I run nslookup on an IP (These are all examples) nslookup 192.168.1.123 Current output: 411.311.211.111 Desired output: 111.211.311.411 I have a script that works just seeing if there's ...
2
votes
0answers
42 views

How to have a video player resume from where I last left off?

I'd like to be able to launch a video player (VLC, SMPlayer) via Terminal, using some command like resume_media and then it will automatically find the most recently played media file (.mkv, mp4 etc.) ...
0
votes
1answer
22 views

unable to execute after loading second shell /bin/bash?

I went through a shell scripting tutorial explaining about global variables (export). I encountered a do-it-yourself example to illustrate the concept of global variables in shell scripting, and I ...
0
votes
1answer
22 views

How to use script parametr(folder path) as a variable?

I want to write a script which can delete all 0 size files. I already have command to do this - find . -size 0 -type f -delete. The problem is that I want to use 1st script parametr as a path. I had ...
0
votes
1answer
39 views

Problem setting alias, ~/.bash_aliases file not found [duplicate]

I was trying to setup a permanent alias. but ~/.bash_aliases file not found on my system. I have checked the bashrc file and it shows bash_aliases are enabled. I tried creating a new file in the same ...
0
votes
1answer
22 views

Shellscript creating directories in wrong direcroy when running from crontab

I have written the following code which will create directories with name format "nowt_hour_minute_second". In that directory another text file will be created with the directory creation time. Now I ...
1
vote
0answers
16 views

Using the Read command to store multiple words in one variable

I'm interested in storing an address in a variable called "address" using the read command in a BASH script. However, I'm having an issue with the multiple words an address usually has. Is there a ...
1
vote
1answer
25 views

Is there a log of the output of “bash install.sh [ ]” available for Ubuntu server?

Following the advice of someone on this site I attempted to update a wireless device driver with: bash install.sh [] which I ran while in sudo. The update didn't work and I'm wondering if some ...
0
votes
2answers
31 views

Find and execute multiple scripts in parallel

G'day, I have tried to solve this problem all morning but have not had success. I would like to search for certain scripts in a particular folder and execute them all in parallel. The scripts have ...
1
vote
1answer
23 views

variable is not found in a bash script

I have written the following code to create a directory where the directory name will look like "nowt_hour_nimute_second". But the code is failing in Bash Shell. #THIS CODE WILL CREATE A DIRECTORY ...
0
votes
1answer
25 views

does every program have to go through the shell to complete the process they willing to make?

i have seen somewhere that "bash is used to communicate with the Linux kernel" is it take effect only to the terminal? or every program (including programs which has GUIs) have to go through the ...
24
votes
7answers
2k views

Delete all files apart from pdf files in a directory

I have a directory that contains the following: x.pdf y.zip z.mp3 a.pdf I want to delete all files apart from x.pdf and a.pdf. How do I do this from the terminal? There are no subdirectories so no ...
0
votes
0answers
30 views

Is bash safe yet on 10.04?

Running shellshock test from https://shellshocker.net/ on updated 10.04.4 LTS 32.bit says it is still vulnerable to CVE-2014-7186 and CVE-2014-7187 CVE-2014-6271 (original shellshock): not vulnerable ...
1
vote
1answer
32 views

Extract icons from EPS file

I've got a grid of icons, stored in EPS file. There is something like 80 icons in there. I need to extract them from the file. Is it possible using imagemagick or something like that, without ...