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

learn more… | top users | synonyms (1)

4
votes
1answer
256 views

Tell if windows are open and not minimised from shell script Unity

I'd like to add into my .bashrc a little script that sets the terminal background to transparent iff I don't have any non-minimised, non-terminal windows open and leaves the terminal background as ...
3
votes
1answer
30 views

Why doesn't yes fill up the buffer?

Say I do something like yes | apt-get install foo. I know that yes will non-stop print a bunch of y\n's to stdout. But apt-get can only process a few of those. Why doesn't yes fill up the buffer? Does ...
3
votes
1answer
326 views

Bash script runs fine, but not in cron

I have a script that's supposed to record a shoutcast stream for an hour, convert it to mp3, and then save it. The script runs correctly when I run it from the terminal, but I can't seem to get it to ...
3
votes
1answer
884 views

How Do I Log USB Modem AT Command Output?

I want to be able to send the command "AT+CSQ" to /dev/ttyUSB1 every 5 seconds, and log out response to a text file. I can do it manually via screen (screen /dev/ttyUSB1 and type in AT+CSQ and see the ...
3
votes
1answer
111 views

Correct place to put colors of prompt (PS1)

Say I want to change the colors of my PS1, or for the sake of simplicity I just want to change the content, so I want to do this: PS1="touch me : " My problem, doubt is: If I put this in ...
3
votes
1answer
546 views

Ubuntu for phones - is there a terminal similar to the one known from PC's?

I am thinking about install Ubuntu on a phone. I spend a lot of time in terminal while working on my PC. There are much things I do using bash scripts, for example. Then, is there a terminal on ...
2
votes
1answer
16 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 ...
2
votes
1answer
21 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 ...
2
votes
1answer
90 views

post-receive: No such file or directory

I'm getting an error when trying to push to a remote Amazon EC2 (Ubuntu Linux) instance. I've given all related directories and files full permissions. I'm trying to use a post-receive hook to move ...
2
votes
1answer
397 views

Permission denied error after SSH login

I am having Permission denied errors after logging with non root user (which has permissions to do "sudo -i" command). I get these errors: -bash: /bin/uname: Permission denied -bash: [: =: unary ...
2
votes
1answer
56 views

Inconsistent parent directory of all symlinks

A large portion of my system depends on symbolic links, so this is a very serious problem. I do something like the following cd mkdir test mkdir other cd test ln -s ../other/ # So ~/test contains a ...
2
votes
1answer
236 views

How to use debcondf Show results with debconf-set-selections?

I'd like to know in common how to use the results of debconf-show with debconf set selections to precvonfigure deb packages with the command line or within a shell script For example If I use sudo ...
2
votes
1answer
7k views

Tomcat Installation startup.sh not working

So I've followed the list of steps on : https://www.digitalocean.com/community/articles/how-to-install-apache-tomcat-on-ubuntu-12-04. When I try to run the startup script, I get this message: ...
2
votes
1answer
102 views

How do I log out specific sessions?

I have read this these generic instructions to log users out, but I want more detail. When I run the command users I see multiple instances of the same user. IE: Joe Joe Joe Joe Joe How do I know ...
2
votes
1answer
131 views

Function to change title doesn't work when run in script

I've got a simple command that sets the term title: # Allow the user to set the title. function title { PROMPT_COMMAND="echo -ne \"\033]0;$1 ($PWD)\007\"" } export -f title I'd like to access ...
2
votes
1answer
426 views

Modifying PATH does not work

I want to add /home/myname/adt-bundle-linux-x86_64-20130219/eclipse to PATH. I edited .profile: PATH="$HOME/bin:$PATH:/home/myname/adt-bundle-linux-x86_64-20130219/eclipse" but it won't work. Why? ...
2
votes
1answer
83 views

Allow any user to use shutdown with my own shell

First of all sorry if my english is not excelent but it isnt my native language. I have a project where I'm building my own shell (named MYSHELL). One of the tasks is to create my own built-in ...
2
votes
1answer
1k views

Shortcut to terminal/bash script without 'instant close'

I've created a desktop entry in ~/.local/share/applications. It looks similiar to the following: [Desktop Entry] Version=1.0 Encoding=UTF-8 Name=Crontona Server GenericName=CA Server Comment=BDAF ...
2
votes
1answer
334 views

bash dirtrim produces strange results with ~/foo/bar/var directory

In some of my projects, I keep a var or a lib folder for runtime output and external libraries. To keep my prompt rather short, I have the export PROMPT_DIRTRIM=3 option in my .bashrc. This works ...
1
vote
1answer
37 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
38 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 ...
1
vote
1answer
34 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 ...
1
vote
1answer
34 views

restore patched bash to apt maintained

Last month I manually patched bash on a server running ubuntu 11.10 for the shellshock bug, as suggested in the comments here: What is the CVE-2014-6271 bash vulnerability (Shellshock) and how do I ...
0
votes
0answers
177 views

java file will not launch from .desktop file - Ubuntu 12.04 LTS

I have a bin/bash script- #!/bin/bash java -Xms256m -Xmx1g -jar KeeperDesktop.jar inside an executable text file ( keeper-start) I have created a .desktop file for it as i want to launch it ...
0
votes
0answers
128 views

Bash Script for Git Checkout

How do we create a bash script to do a git checkout on a couple of previous commits? cd /Users/testuser/testproject for i in `cat /Users/testuser/Desktop/commits.txt` do git checkout $i I have this ...
0
votes
0answers
22 views

Startup script xrandr missing LSB tags and overrides please help

hello i have a simple script that looks like this xrandr -s 1680x1050 When i run it standalone it works! when i put the script into /etc/init.d/xrandr.sh I get the error "missing LSB tags and ...
0
votes
0answers
40 views

Absolute basic MQ wanted - command line driven

I am looking to install a very basic command line accessible MQ product. It will be run on Ubuntu 12.04 lts, and should be able to support multiple readers. Any products I should be looking at?
0
votes
0answers
29 views

Openmpi mca parameters does not work

I am trying to setup some of the mca parameters for an mpi execution, The command I am trying to run is: mpirun --mca btl_base_verbose 30 --mca btl_tcp_if_include eth1 -nolocal -pernode -machinefile ...
0
votes
0answers
231 views

Cursor positioning using mouse in bash possible?

In Vim I can actually position the cursor in insert-mode using the mouse. So I assume this should (technically) also be enable-able for the bash. Is it possible? This would be quite useful at times ...
0
votes
0answers
382 views

How to fix this rsync script?

rsync directory always starts in the home directory, but I want to sync files into a directory inside of a .kde directory. I tried this: rsync -avc -e ssh root@xxx.xx.x.xx:/var/www/.../backup/docdata ...
0
votes
0answers
55 views

Create a pre-commit git hook to fetch and place in appropriate folders

I'm trying to create pre-commit git hook that uses the Transifex Client or custom bash script to fetch all of the language files on Transifex and place them in appropriate folders...could be written ...
0
votes
0answers
237 views

Run multiple screen sessions in a bash script

I know this has been asked for many times. But my script just would not work. I would like to write a simple script running on EC2 in the beginning, which creates two screen sessions and execute some ...
0
votes
0answers
98 views

Terminal and Bash Meta/Alt key combinations

It seems to be impossible to use the Alt key as the Meta modifier for some Bash line navigation commands such as M-f and M-b. This is because Meta = Alt, and Alt-<letter> opens any menu that ...
0
votes
0answers
64 views

Terminator - Bash character encoding - problem visualizing content of some files

I'm using Terminator to manage several bash shells. If I print the content of some files, some characters are bad displayed. Even if the character encoding is setted to UTF-8. Below there is the ...
0
votes
0answers
71 views

A script which can be run from a flash drive and modify startup applications

So I have created a script I would like to run on computers at startup on the network I manage. Each is unique, so merging settings accross the network would be problematic. I could change each ...
0
votes
0answers
493 views

How to install windows 8/8.1 themes on ubuntu?

I found this link and this one that shows that win 8 theme could be implemented ! I could it even make it faster and 100% compatible to ambiance. My question is the following: We all know that ...
0
votes
0answers
68 views

Problem with apt-get

Whenever I run apt-get in terminal I always get the same error apt-get: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17' not found (required by /usr/lib/x86_64-linux-gnu/libstdc++.so.6) I ...
0
votes
0answers
84 views

Kubuntu: open application on specific monitor using bash script

I use two monitors and i want to write a bash script which opens applications on my second monitor (thunderbird for example). I use conky which is also on my second monitor. I want to define the size ...
0
votes
0answers
298 views

Cronjob for MySQL Backup Bash Script Not Running

I am trying to backup many MySQL Databases on a daily basis into a Single ZIP. The bash script works fine by itself (ran in normal environment), but when the Cronjob takes over it does not run. Infact ...
0
votes
0answers
111 views

Good option for a command line SIP client?

I am looking for a simple command line based SIP client that can do the following: Can Register to a Elastix PBX Auto answer calls Play a ring sound Dial a extension when a key is pressed OR be ...
0
votes
0answers
83 views

How to check scripts/jobs in batch mode with atq

Is it possible to know which script is related to any job listed with atq? Read info on man at but couldn't find the option. I would like to add a column to the following list with script name. atq ...
0
votes
0answers
22 views

how to pass uubaa{qv} arguments to gdbus?

I found the way to pass a {sv}, that is working well, (thanks to aport), but my arguments are more complex. uubaa{qv} I tried to pass it like that: "1 1 0 [[{160: <46.52>},{161: ...
0
votes
0answers
86 views

Option for GREP only non-default processes and services?

is there any option for grep only non default processes and services? I know how show all of this and export to file, but manual reading and deleting line by line is not ideal. :-) Thanks for your ...
0
votes
0answers
337 views

Ubuntu 13.10 - how to have a remote desktop initialized via command line?

I have few users remotely who using Ubuntu 13.10 and they have lot of issues cause they are new and learning Ubuntu 60+ age. As a result for free teaching i need to have remote access instantly in ...
0
votes
0answers
356 views

crontab doesnt upload file via ftp script

I Write script that make a zip file with /var/www Directory And mysqldump db And upload it via ftp And change mode to executable file And put It in cron tab but file doesn't upload !!! #!/bin/bash ...
0
votes
0answers
108 views

iHeartRadio - Looping for changed Auth Code

I have a bash script I'm running that plays a station from iHeartRadio in the CLI. I also use it to record a show in the early morning on my RaspPI so I can listen later in the day. The script works ...
0
votes
0answers
75 views

Ubuntu startup and shutdown

I have an Ubuntu machine with IBM Websphere and SoapUI I use SoapUI to run a MockService and Websphere to load some web applications and services. I want my machine to shutdown at 23:59 and to power ...
0
votes
0answers
63 views

How to auto-run a script each time a Global Keyboard Shortcut is used in Ubuntu?

I don't want to reassign the Global Keyboard Shortcut keys. They should be doing their what they were meant to do. But in addition to that, I would like a bash script to run every time the particular ...
-1
votes
0answers
39 views

Cuttlefish #!/bin/bash not working 0.o

I was running Cuttlefish on Ubuntu 14.04 with 2 scripts to dim and un-dim my screen when AC power changes to battery and reversed. I reinstalled today and can't make the script dimming or un-dimming ...
-1
votes
0answers
27 views

Hadoop gives Error localhost: Error: JAVA_HOME is not set.?

I'm using Ubuntu. I have installed Java Hadoop configured it as single Node. i have also added environmental variable named HADOOP_HOME,JAVA_HOME in .bashrc file. When i was trying to run Hadoop using ...