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

learn more… | top users | synonyms (1)

1
vote
1answer
91 views

Nemo Custom Action (.sh script) does not execute

I created a .sh script for simple OCR-ing of screenshots that I make with Shutter. The script looks like this (ocrFile.sh): #!/bin/bash convert $1 /tmp/output.pnm cat /tmp/output.pnm | pamstretch 4 ...
1
vote
1answer
88 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
48 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
328 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
58 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
216 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
86 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
518 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
577 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
103 views

Force terminal text editors to open specific file types first, if there are multiple with the same name

If I have multiple files all with the same name (except, of course, the extension), is there a way of making bash auto-complete to a specific extension when I open them from the terminal with a text ...
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
241 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? ...
1
vote
1answer
106 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
374 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
158 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
174 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
177 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
209 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
127 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
134 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" | ...
1
vote
1answer
74 views

Graphical terminal misinterpreting input

I've been having this weird problem with typing commands into gnome-terminal. If the command takes up multiple screen lines and I use any backspaces and the stars are in proper alignment the command ...
0
votes
1answer
20 views

Crontab backup not working (not generating log)

I want to run a script every day at a certain hour, so I saw that I could use cron for that. Following the tutorial, I edited the crontab file like this: crontab -e and added: 26 13 * * * ...
0
votes
1answer
24 views

Mouse turns off after a few seconds (Ubuntu 13.10, Windows 8.1)

I tried lsusb and I can see my mouse in the list. I tried for foo in /sys/bus/usb/devices/*/power/level; > do echo on > $foo; > done But I got this reply bash: ...
0
votes
1answer
37 views

rvm how turn it on always when we open terminal in ubuntu 13.10

I am new user of 13.10 ubuntu I am facing one problem when want to install rvm, even though it is already install and using it on virtualt box. Problem is that when i start terminal and put to check ...
0
votes
1answer
27 views

Width of ps output

I have used foreman to export an upstart config. There are a lot of long environment variables so the processes started include some with a long command like: -su -c cd ...
0
votes
1answer
23 views

script to backup file deleting file

Working on a bash script to take backup of a file, but the problem i get is that mv delete the file or rename it and create a file with the backupname. Script: test="/home/sysadmin/test/hei2.back" ...
0
votes
1answer
42 views

I have problem while opening terminal

When I am trying to open Terminal, It show me error like this "There was an error creating the child process for this terminal. getpt failed: No such file or directory." with two buttons 1. profile ...
0
votes
1answer
33 views

ubuntu rightclick command line custom backup

os: ubuntu 12.04 LTS, kernel: 3.8.0-35-generic kernel, when i right click on "text file/s", i would like to have a custom menu, to run a bash, to make a backup copy of text file/s i'm right clicking ...
0
votes
1answer
27 views

can I get the launcher to “re see” open processes?

I've got about 8 gnome-terminal tabs open in one window. For some reason, the launcher is not aware of this window suddenly. When I click on the gnome-terminal symbol in launcher, it won't slide the ...
0
votes
1answer
116 views

Running bash loop

I've created a while loop in a bash script to run a couple of PHP commands. The reason why I've created the while loop is because I can't use cronjobs (I don't want to create a new instance of the ...
0
votes
1answer
47 views

Unable to create a file in a certain location on Ubuntu

I'm trying to create a text file as below... mysql --host=localhost --user=root --password=11111 database1 << EOF SELECT * FROM table WHERE status = 1 INTO OUTFILE '/home/user/feeds/file.txt' ...
0
votes
1answer
158 views

export PATH doesn't work correctly

I have a problem with $PATH export. The only place I found where I modify $PATH is /etc/environment: ANDROID_HOME="/opt/ADT/adt-bundle-linux-x86_64-20130522/sdk" ...
0
votes
1answer
86 views

Problem while running script

I am getting error while running kafka-zookeeper script. Command i tried to run the script is root > /etc/init.d/kafka-zookeeper start Problem 2014-01-22 13:05:26,683] FATAL Severe ...
0
votes
1answer
36 views

Installing ruby with rvm and making ruby visible to bash

I installed rvm according to the instructions from the official website. Then I installed two ruby versions While rvm was visible to bash, ruby was not. I was browsing the web for a solution and I ...
0
votes
1answer
43 views

How do I make a sh file for running my software automatically?

I want to make a sh file on my desktop to run a software for example "kerio-kvc" I made a sh file on my desktop with this content automatically #! /bin/bash sudo /etc/init.d/kerio-kvc start But ...
0
votes
1answer
35 views

Cron Script Length

I have a backup script, a script that cyncs file with other files on my computer, and a script that uploads files to my website with ncftp. I used cron to load .sh files, and my shorter scripts work, ...
0
votes
1answer
26 views

autogenerate javascript from mysql

I have a site where I can upload images with some info (startdate, enddate, duration, url) I want to make a SlideShow that choose those pictures that is > $startdate && < $enddate. And I ...
0
votes
1answer
70 views

How can I make a script that kills any frozen client (process)?

I am running around 10 macro clients at the same time on my server. Occasionally one of the clients will freeze and grey out (turns completely grey), meaning I have to kill it and restart another ...
0
votes
1answer
50 views

How do I send personalized notify-send about custom events?

watch netstat -n -A inet + notify-send "Attention new connection" or watch cat /proc/net/ip_conntrack + notify-send "Attention new connection" or watch ss -n ...
0
votes
1answer
138 views

how to check if PPA is already added to apt sources list in a bash script

Do someone know how to check if a PPA is already added to my system before i add it with the add-apt-repository command in a shell script. That would be very helpful. Thank you.
0
votes
1answer
111 views

UbuntuOne using bash script to copy files

I am new to ubuntuOne. I need to copy / backup a folder, using bash script. Is it possible? I did not find where are the local copies of the files, saved by ubuntuone. Thanks.
0
votes
1answer
166 views

bash script to auto mkdir on usb

I'm trying to have auto script to open dir on any removable device - different usb have different names and i want the user only to enter the device name since the path /media/user is a default in ...
0
votes
1answer
146 views

Script to close and reopen a program every hour, loop not working

I made a script to close teamviewer and reopen it every hour. I am now testing it every 5 seconds, but the loop is simply not working. The script is running correctly, but one time only. I need your ...
0
votes
1answer
112 views

Get multiple pages from Google search

I'm writing a bash script to get some data from google search. I used lynx for the query and redirect the results into a file for later parsing. The problem is that all I get is one page only, how can ...
0
votes
1answer
175 views

Init.d script problem

The init.d script is installed properly and by me i wrote the script correctly. But i have a very strange situation. The script executes a multi-threaded program written in c++ by me. If i execute the ...
0
votes
1answer
42 views

How do I automatically change to a specific folder on login for an account with no home folder?

Typically I would create a user account and in the home folder, place the cd command in the ~/.bashrc file. For system users, however, with on home folders, the /etc/bash.bashrc file is used instead ...
0
votes
1answer
87 views

A bash script that opens several terminals from different direcotories and operates some funtions on those terminal

Maybe my question was partly answered here but I need full solution. What I want to do is this: gnome-terminal --tab -x "cd /ini/experiments/ gedit mytext.txt" --tab -e "cd /ini/myex/ipython" So I ...
0
votes
1answer
75 views

Outdated rosewell adapter driver

Someone suggested that this error when running the install.sh script for my roswell network adapter RnX-N180UBE was caused by these drivers not being compatible with ubuntu 13.04, is this the case, ...
0
votes
1answer
52 views

Program interface is ugly when started by script

I am starting Qt-Linguist in a bash script via sudo linguist-qt4 $PathToParentDir/translate_$lang.ts I could also use gksu instead of sudo but this would add more dependencies since most people ...
0
votes
1answer
181 views

Bash history for root?

After installing 'ubuntu-desktop' on 12.04-LTS-server, the arrow keys work correctly for history navigation when the user is not root. However, for the root user, the arrow keys (for example, the ...