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

learn more… | top users | synonyms (1)

4
votes
1answer
231 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
93 views

How to send an email using command line?

Here's what I have: cat UserReport.txt | mail -s "TestSubject" "nospam@gmail.com" It's a small file, much smaller than a picture so it should send almost instantly. Though I receive nothing. I ...
3
votes
1answer
174 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
701 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
103 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
529 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
14 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
116 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
46 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
100 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
347 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
319 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
30 views

Crontab not executing jobs Ubuntu 14.04

I am trying to run bash script as a cron job every 15 minutes. The bash script simple calls a Java program. I made an entry in crontab to run the file every 15 minutes and saved it but it would not ...
1
vote
1answer
19 views

Can't Change power_method 14.04

I am trying to modify my power method for my ati card as it's like having a helicopter in the room. I use the same methods described here. sudo bash -c echo "profile" > ...
1
vote
1answer
46 views

BASH script for extracting archives - how to make the script ask for folder destination?

I've started using the bash script below, for unpacking archives. How would I go about making the script ask if I would like to specify a folder, or just use the default folder to extract to? I'd ...
1
vote
1answer
25 views

How to disable notifications sound while XBMC is runnig?

I would like to know if it's possible to disable notification using XBMC (mails, network etc). I'm using Kubuntu 14.04.1. I've found this command but the script doesn't work, the sound is re-enabled ...
1
vote
1answer
43 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
41 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
152 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
31 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
29 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
118 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
139 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
67 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
227 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
61 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
679 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
68 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
258 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
112 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
763 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
706 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
2k 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
113 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
491 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
182 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 ...
0
votes
0answers
121 views

Is it possible for bash autocomplete to work with scripts?

Basically, ive been tasked with getting bash autocomplete working hadoop, but /usr/bin/hdfs is a script that actually sets a path and then calls the actual hdfs "binary". Autocomplete works (there is ...
0
votes
0answers
199 views

Converting all .sub to .srt with framerate

I wan't to convert all .sub (microdvd and subrip) to .srt (subviewer) format that my player uses. I made this little bash script that searches for the filenames starting with given keyword and uses ...
0
votes
0answers
72 views

how to dbkg-preconfigure login manager

I've written a script that installs several desktops with a menu loop. I have also redirecteed the output to /dev/null, Now every Time when it comes to dpk login manager selection the script doesn't ...
0
votes
0answers
136 views

~/.pam_environment isn't being set on reboot

I want to use PostgreSQL PlPython3u on Ubuntu 12.04. At first I run create extension plpython3u I has error, so I add python path to PATH sudo su - postgres stop service ...
0
votes
0answers
21 views

A screens-Question

I'm trying to have a quick overview over my servers stats, so I'm writing a little sh script, but I don't really get it right. #!/sh/bash screen -AmdS mgmt screen -S mgmt -X screen -t HTop htop ...
0
votes
0answers
36 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
94 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
54 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 ...
-1
votes
0answers
10 views

vncserver prompts for password every time

I am a Linux noob, and I am performing some tasks for the very first time. I have a bash script that uses vncserver (so i would prefer to stay with vncserver). The script used to work properly when ...