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

learn more… | top users | synonyms (1)

0
votes
0answers
9 views

Command to create sequentially numbered targeted directories and batch move files

I'm creating a timelapse video by splitting a video into individual images, using G'MIC via the command line to average every 7 frames, then output the results to new images which will result in the ...
1
vote
1answer
71 views

Why isn't .profile sourced when opening a terminal?

Just installed Ubuntu 14.04.1 LTS. According to .profile, # ~/.profile: executed by the command interpreter for login shells. # This file is not read by bash, if ~/.bash_profile or ~/.bash_login ...
0
votes
0answers
5 views

14.10 gnome classic metacity unable to hook up keyboard shortcut to binary

I am trying to get the Aero Snap effect working on an Ubuntu 14.10 using Gnome Classic Metacity. I found a command that works if I execute in on a terminal window: wmctrl -r :ACTIVE: -e 0,`xwininfo ...
0
votes
2answers
24 views

Bash: Regular Expressions in substitution

I have a bash script to substitute number values inside a text pattern. Suppose I have a file like this: word5word word55word And I want it to look like this: word125word word125word I have this ...
0
votes
4answers
64 views

Create bash file to open minecraft launcher

I use this command in the terminal to run the minecraft launcher with java 8: /home/max/Java/jre1.8.0_25/bin/java -jar Minecraft.jar . I included the full java path because I installed it on /home ...
2
votes
1answer
21 views

Export PATH and EMSCRIPTEN

I am confused about PATH setup. I was installing emscripten and following their tutorial. As the last step you export variables running source ./emsdk_env.sh This exports couple of things: ...
0
votes
1answer
33 views

Is it possible to track the terminal command of a user

We want to monitor the user typing command using terminal . Where the command is saving (.bash-history) is only showing few of the command. Is it possible to get the command executed from the ...
-1
votes
0answers
11 views

How to make my own shell become be able excuteble in terminal? [duplicate]

I have a file myown.sh, and i want it to be excuteble in terminal anywhere dir, such as pwd, ls, mkdir in terminal ... I want encode file myown.sh, so no one can open and read it. Thank you.
-2
votes
0answers
32 views

Which is the better way to write output to file which is faster in execution? [on hold]

1st method: echo "This is first line" > file.txt echo "This is second line" >> file.txt 2nd method: content="This is first line\n" content+="This is second line" echo -e "$content" > ...
1
vote
1answer
21 views

Glob behavior differences between script and command line

Note the distinct behavior of the following between the shell and a function defined in the shell: First: try directly on the shell: 0:23:34/shared $ls -dlrta ?pectral* -rw-r-----@ 1 steve staff ...
0
votes
1answer
49 views

How to end a cron started script?

I start a script via cron which works fine. But when i then try to end that script via cron (either killall / pkill / pgrep does work) nothing happens. If i let cron try to kill it or try it my own ...
3
votes
2answers
73 views

ping command in bash shows heart character

Why am I seeing a heart ♥ after the ping command? I'm running the command below over an ssh connection in ConEmu, if that changes anything. Is this expected or have I been hacked in some fashion? ...
2
votes
1answer
43 views

Alternative for |(pipe) operator

I'm looking for a alternative for | operator in bash shell for redirecting output of command as input to the next command. Is there any alternative? something like : command1 | command2 | command3 ...
1
vote
1answer
31 views

cant cd to a directory error while moving files to another directory

I have written the following code to MOVE ALL THE TRACE FILES CREATED BEFORE 2 MINUTES TO A SEPARATE DIRECTORY. Now when I am hard-coding the source and target path in the script, it is working fine; ...
0
votes
0answers
24 views

Increasing ALSA's buffer size

I'm trying to change ALSA's original buffer size, in order to increase it. Until now, I had no luck. I've tried to execute the commands listed in http://pastebin.com/4FibYN0U, however,I don't have ...
0
votes
1answer
24 views

My bash script only opens editor, why doesn't it run? [duplicate]

I created a script to dd sdb to sdc on my older computer with Ubuntu 13. It ran when I clicked on it – asked if I wanted to run in terminal or edit it. On a newer computer, with Ubuntu 14, I created ...
0
votes
1answer
20 views

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

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
25 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
17 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
34 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
31 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
42 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
31 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
23 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
65 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
24 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
41 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
40 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
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
19 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
1answer
20 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
16 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
13 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
65 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
18 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
24 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
30 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
16 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
24 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
32 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
22 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
21 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
14 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
29 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
66 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
15 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
53 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 ...