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

learn more… | top users | synonyms (1)

7
votes
1answer
121 views

Can I run bash commands from an Ubuntu HTML5 App?

I want to convert some bash scripts into GUI apps using the Ubuntu SDK to create an HTML5 app. Is this possible? Are there any tutorials besides the 'Meanings' one that demonstrate this?
4
votes
1answer
225 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
122 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
630 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
102 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
525 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
34 views

bash utility 'dialog' leaves a messy screen

When I run this script it displays options in a menu style on my terminal and then runs the relavent command in the script. #!/bin/sh TEMP=/tmp/answer$$ dialog --ascii-lines --title "Administrative ...
2
votes
1answer
79 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
43 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
5k 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
99 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
117 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
334 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
80 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
317 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
29 views

How to find a Window which should be visible on Ubuntu 14.04

In Ubuntu 14.04 I have Keepass2 in my Launchbar. I do execute Keepass and I can see it is executing by a small arrow. With statement : ps - fu bernard | grep keepass2 results into : bernard 2433 ...
1
vote
1answer
39 views

Unique id for combination of Latitude - Longitude

I am new in using Linux (kubuntu 13). I have a LibreOffice Calc table containing one column with Latitude and one with Longitude. What I want to do is for every unique combination of Latitude and ...
1
vote
1answer
91 views

sed “Permission denied” and “No such file or directory” errors while building Clockwordmod

Whenever I execute the command build/tools/device/mkvendor.sh samsung_aegis2vzw /your/path/to/the/boot.img I get this as the output build/tools/device/mkvendor.sh: line 83: /sedcommand: ...
1
vote
1answer
28 views

Launch app with absolute path does not woks

I'm quite new in Linux environments, but for this one, I need help on bash. I'm on Kubuntu 14.04 x64 I have an embedded JRE for my business application , placed like this: app_root/run.sh (my ...
1
vote
1answer
28 views

Translating to Bash Command

So for a project for school I had to install the DPJ extension to the Java language. I downloaded and unpacked a tarball containing the files, and then was told to run the following: setenv DPJ_ROOT ...
1
vote
1answer
19 views

Install bashmark on ubuntu 12.04

I followed the instructions at this page: http://www.huyng.com/projects/bashmarks/ to install bashmark on ubuntu. I have not understood what the guide mean with "add source ~/.local/bin/bashmarks.sh ...
1
vote
1answer
74 views

Get total diskspace usign du for multiple directories

I know about du -sh which gives me total disk space used for given directory. My problem is the directories I am interested are scattered in lot of subdirectories. I have right "find" command that ...
1
vote
1answer
101 views

Startup & shutdown scripts for Java servers

I am trying to design a graceful startup/shutdown script (Bash) for a Java app (JAR) that I will be deploying to my Ubuntu 14.04 server. I'm looking for a clean, Linux- and Ubuntu-friendly way of ...
1
vote
1answer
59 views

Disabling the grub recovery mode programatically

I need to be able to update the grub config to remove the recovery mode boot option, programmatically. I got the initial info for how to do this (manually) from this question/answer: How to disable ...
1
vote
1answer
199 views

How to reduce the command line prefix length in Bash

How to reduce the command line prefix length (i.e folder name or path in bash)? For example: venu@venupc:~$ cd Documents/Code/new/ venu@venupc:~/Documents/Code/new$ I want to display present ...
1
vote
1answer
59 views

Files access/modified in a process/script

I will be getting some shell scripts that I, kind of, dont know what they will be doing. But I need to know what I/O operations the script performs (e.g. files they read/access,files they write, ...
1
vote
1answer
599 views

How to run bash script in upstart conf file?

I made bash script "kvm_manage". How should I write .conf script and run my bash script inside? It is possible? I am beginner..
1
vote
1answer
66 views

How would I make this bash script that displays certain system processes related features?

Basically I need to make a bash script that acts as a handy tool for diagnosing performance issues. The script needs to first determine each unique process owner on the system, and then for each user ...
1
vote
1answer
250 views

Use rsync to change only the date modified of folders/files

I just transferred 1.8TB of data from an external hard drive to an internal hard drive using rsync, but I didn't add the "-t" flag, so the "Date Modified" for every file on the internal hard drive is ...
1
vote
1answer
106 views

Running NYPL's Map-vectorizor in Ubuntu - GIMP scripting errors

I hope this is the right place to ask this question I recently endeavored to digitize a bunch of old maps and I aim to use NYPL's map-vectorizer tool that was written inside a Mac. The aforementioned ...
1
vote
1answer
721 views

problem on java: not found

Initializing InstallScape using JVM at /home/manoj/iscap/iscape/runtime/LNX86/bin/java. This might take some time... /home/manoj/iscap/iscape/bin/iscape.sh: 209: exec: ...
1
vote
1answer
688 views

Set CLASSPATH for python

I want to execute a python file called "ex1.py". The execution works fine, the program does, what it ought to do. The problem is the following: This file is stored in the folder ...
1
vote
1answer
1k views

Launch rails webrick server at startup

I want webrick running at startup. So I execute this command in terminal: crontab -e Then added this line to the end of the file @reboot /home/myname/.rvm/rubies/ruby-2.0.0-head/bin/ruby ...
1
vote
1answer
111 views

How to use ' and " (quotes) as an argument

Intro In a script I want to run a command in a separate window so that output of the command will show in a new window (which is an output stream like top) and they do not interfere each other. For ...
1
vote
1answer
460 views

Why is top breaking history-search-backward in bash?

I have a line in my .bashrc the following line: bind '"\e[A": history-search-backward' that causes that when I write "abc" to command prompt and press up arrow, bash searches in history only for ...
1
vote
1answer
178 views

Create DSL connection using Bash Script and connect using the same

I have been using ubuntu live OS everyday as my internal hard drive has gone for replacement. On every boot up i need to create a DSL connection to connect to the internet which is a mundane task. I ...
1
vote
1answer
201 views

Disabling bash history index in terminal

When I SSH into somewhere, I see something line this in the terminal: [504]% Looking it up, looks like its my bash shell history. How can I disable this index display and show the current working ...
1
vote
1answer
313 views

How to Iterate through subdirectories with same name in a path?

I am trying to write a bash script that is iterating through sub directories where parts of the path are identical. Maybe best is to show an example: Directories: /path/same/ /path2/same/ ...
1
vote
1answer
235 views

Application autostart after system boot for a random interval

Reading 'sleep' mans and googling haven't provide any useful information. I want to run Pidgin after Ubuntu boots, but after some time left. For example, logon is passed, and after interval for 1 to ...
1
vote
1answer
132 views

Unity Icon for a bash ran program

So I downloaded the .tar.gz for eclipse, extracted and set it up. I created a .desktop file so I could dock it in unity. I then want to be able to have a bash script open the program from the ...
1
vote
1answer
151 views

can't control pianobar after using echo

I have a script that starts pianobar (pandora player) and autoloads into tty2 after booting. I'm running Ubuntu Precise 12.04. it's a pretty simple script: #!bin/bash sleep 5 echo "2" | ...
0
votes
1answer
19 views

Running a .bash file in Eclipse

I know this is really an Eclipse issue but I can't seem to login in their forum. I am running eclipse juno for some c/c++ development.However, I wrote a .bash script that initiate the entire ...
0
votes
1answer
24 views

how to concatenate two strings in shell script in 3.13.0-34-generic kernel

I want to concatenate two strings for the shell file im getting error when i have created the shell file in following manner could you please suggest how to get it set export ...
0
votes
0answers
35 views

Bash completions: what one can do with them and when are they loaded in the shell?

Weird behavior of a 3rd party (from a windows guy) program (related to python packaging..) confused me a little but this question might explain everything. Sorry, I don't know pretty much anything ...
0
votes
0answers
91 views

application settings and environmental variables

I was perusing an article on environment variables on wikipedia: http://en.wikipedia.org/wiki/Environment_variable One of the environment variables is PATH and you can access this environment ...
0
votes
0answers
52 views

How to get lastest netbeans version for script?

I want to create bash script which downloads latest stable netbeans full version without knowing its version number. It could be useful if in netbeans server existed installer like netbeans-latest.sh ...
0
votes
0answers
415 views

Initialize linphonecsh (linphonec) at start-up

I'm currently experimenting with linphonec (command line client for linphone) and everything is running fine so far as I am able to make calls, output voice using espeak etc. Now, instead of starting ...
0
votes
0answers
164 views

Just installed Ubuntu using Wubi, and I get a Grub DOS like screen

Also I have no CD drive so LiveCDs are a no-no. I used Wubi to install Ubuntu 12.04 with Windows XP, it says Minimal bash like line editing is supported.
0
votes
0answers
266 views

.bashrc is changed but there are no changes in the system

Bashrc file: alias edit_bash='gedit ~/.bashrc' export PS1="\u:\w:$ " After rebooting the command edit_bash doesn't work (not found) and the greeting is still the same as it was before. What's up ...