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

learn more… | top users | synonyms (1)

0
votes
0answers
29 views

Bash script not creating screen

I have a script that I wish to run on a screen. The screen that already exists is killed correctly, however the screen is not created and the command not run. Any ideas? #!/bin/sh screen -S attorney ...
0
votes
0answers
24 views

How can the outputs of sounds be set by command in PulseAudio?

I'm trying to automate the setup process needed to pipe the output of Festival speech synthesis into Skype for the purposes of allowing a person who cannot speak to have a synthetic voice on Skype. I ...
0
votes
0answers
355 views

/usr/bin/ld: cannot find entry symbol _start; not setting start adress

My MakeFile is being executed with following options/flags: g++ -nostartfiles -g,-Wl,-O1 -Wl,-rpath,/opt/Qt5.4.0/5.4/gcc_64 -Wl,-rpath,/opt/Qt5.4.0/5.4/gcc_64/lib -o qml-material ...
0
votes
0answers
69 views

Xinput command in autorun script doesn't execute

I use two monitors 15 inch and 19 inch. With the 15 inch I also use a touchscreen. I have to map touch events to 15 inch monitor with this command: xinput map-to-output 11 VGA1 11 stands for id ...
0
votes
0answers
25 views

Install linux-image-$(uname -r) non-interactively

How do I install linux-image-$(uname -r) non-interactively? sudo apt-get -y install linux-image-$(uname -r) The above command will get me past the initial "do you want to install this" prompt, but ...
0
votes
0answers
33 views

After changing Ubuntu 9 version to ubuntu 12.04.If i run my code i get core dumped segmentation fault

After upgrading from Ubuntu 9 to ubuntu 12.04, when I run my my shell (below) I get a: core dumped segmentation fault This code used to work before. My C-based applications still work. #! ...
0
votes
0answers
53 views

sed error Bash script

So here's the deal I'm trying to do some auto editing of a file with sed in a bash script. Here's my code: systemdate=$(date) sudo mkdir "/tmp/autoupdate" sudo echo "$systemdate" > ...
0
votes
0answers
92 views

How to I clear bash history completely in Ubuntu 14.04?

How do I completely clear bash history from Ubuntu 14.04? I tried the command "cat /dev/null > ~/.bash_history" and other commands I found, such as "cat /dev/null > ~/.bash_history", but none of ...
0
votes
0answers
27 views

copy an entire vm to dvd/cd disc?

I am writing a series of scripts on ubuntu for process control. I have needed to install several packages such as gawk and stress. I am doing this for a university project and will need to submit it ...
0
votes
0answers
51 views

Update dynamic IP and fail2ban

i have a script running via cron to allow ssh only through some known IP's. Since my Home-IP is dynamically associated i use this script running every 15min: #!/bin/bash ...
0
votes
0answers
58 views

Shell Script whenever i am SSH it will change my terminal title bar according to that SSH ip

I'm not much expert in shell scripts. I want a shell script, that, whenever I am inside an SSH session, will change my terminal title bar according to the server IP address.
0
votes
0answers
58 views

automate processes based on priority and memory size.

I have written a script to output vmstat etc according to user input and have also written a script for process control based on user input. the process script allows the user to use a series of menu ...
0
votes
0answers
36 views

ubuntu 10.04 vm corrupted, tries to run 32-bit which ltib can't access path

All, I am running a 64bit version of Ubuntu 10.04lts doing software/kernel work for the imx6 processor. Yesterday, something I did caused ltib not to find the cross-compiler on the path, even though ...
0
votes
0answers
67 views

Bash cursor graphical bug in ubuntu 14.10

For the past few weeks (I'm not exactly sure on the timeframe, but I think it coincides with me upgrading to Ubuntu 14.10) I've had an issue with my terminal where, while typing, the white cursor ...
0
votes
0answers
63 views

Cloning Ubuntu 14.10 installations

I need to use a range of Cloud VPS providers to run servers across the world. The first batch of providers is Vultr, DigitalOcean and DimensionData. Each of them offer the ability to create ...
0
votes
0answers
29 views

Failure to contact privoxy proxy on ec2 node

I'm trying to set up a tor node following http://sickbits.net/creating-a-personal-privoxytorproxy-ec2-instance/ using ubuntu 14.4 lts on ec2. I'm using git-bash on win7. Following the directions, I ...
0
votes
0answers
22 views

Long view for tab completion?

Is there any way to show a long view (e.g., timestamp, permissions, filesize, etc) for tab completion of filenames in bash?
0
votes
0answers
99 views

Running cron scripts with php and node

I've gone through many posts for cron jobs, but still was unable to run it on my Ubuntu 14.04 environment. I have a file test.sh in /tmp/test/. The test.sh contains several other scripts in PHP and ...
0
votes
0answers
61 views

Strange terminal color setting issue

I am running an Ubuntu 14.04.1 LTS server (3.13.0.45) which I usually access over SSH. I set up a custom prompt with the following in my .bashrc file: # uncomment for a colored prompt, if the ...
0
votes
0answers
55 views

cannot send mail from home with mutt

The message I send from how show up in my email instantly, from home, they never arrive. I don't not have a postfix server running, so I cant get return mail. How can i trouble shoot this? echo "This ...
0
votes
0answers
317 views

Ubuntu 14.04 Anaconda Install Help

I started using ubuntu not to long ago. I am trying to install Anaconda on my linux distribution. Am following the instructions below: http://docs.continuum.io/anaconda/install.html#linux-install ...
0
votes
0answers
86 views

how to use crontab to execute i2cset commands

I am trying to execute a bash script that displays the IP address on a lcd display , on startup .. I want it to execute so that the user knows the ip address as soon as the user starts the linux ...
0
votes
0answers
65 views

Bash Tab Autocomplete Not Listing Matches

I've found questions detailing this problem or a similar problem but none of their solutions have worked for me. On another box (RHEL some version) I've the ability to tab-complete with a wildcard ...
0
votes
0answers
57 views

Bash script environment can't get exported variable from user

I have a user daniel, from which I'd like to retrieve an exported value as root. So I did some research and came up with this command: $ su - daniel -c '. ~/export_script; echo $EXPORT_PATH' > ...
0
votes
0answers
53 views

IF statement not traversed correctly in script responsible for unpacking zip files

I've been working on an IF statement for a couple days now and have been unsuccessful at getting it to run correctly. All of the embedded code seems to work when I manually paste it in Terminal, but ...
0
votes
0answers
209 views

how do i achieve executing a python script ON TERMINAL via a shell script in nautilus folder by the right-click>Script way?

Using nautilus i am writing a script which will run the python script which invoked it. So to run a python script i just need to right-click on it>goto scripts>select appropriate script and it will ...
0
votes
0answers
52 views

Bash puts ':' after each command

I updated my bash_aliases from another system I own, and now, I have found the following problem: If I use a command, bash put : after each command and alias. Why? What can cause this problem? In ...
0
votes
0answers
131 views

Pulseaudio increase volume above 100% per channel

I'm using a bash script to start kodi (aka xbmc) in Ubuntu. The script adjusts the volume per channel for my 5.1 sound system: amixer -D pulse sset Master 90% amixer -D pulse sset 'Master' ...
0
votes
0answers
81 views

the command argument is not passed to /bin/sh in popen

Here is a scenario where I use popen as FILE* stream = popen("Root", "r"); As per my understanding the Root argument will be passed to /bin/sh and interpretation is done. In my case, Root should be ...
0
votes
0answers
37 views

Ubuntu server VM install has limited bash functionality

I installed Ubuntu Server 14.04 in a VM and I selected the VM option during installation since my host has limited memory. I accepted the fact that most features will be disabled in such a system for ...
0
votes
0answers
138 views

How to get paths for default theme icons folders?

I have a desktop file, for Icon i set it to myIconName. Now I have multiple sized PNGs for my icon. I need to find the paths to the default theme icon folders, cross-OS-Linux solution, so I can drop ...
0
votes
0answers
44 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 ...
0
votes
0answers
88 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 ...
0
votes
0answers
34 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
0answers
37 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
0answers
62 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
49 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 ...
0
votes
0answers
97 views

How to assign disk usage into a variable

Im new to creating shell scripts and i am trying to create a script that counts disk usage and display its percentage value.For example : "disk usage :2.8 GB , free space : 48 %" Here is all i could ...
0
votes
0answers
38 views

Bash question with system processes? Stopping and renicing “Java” processes

I play minecraft on linux, and I would like to make a Bash script that does two things. First, I would like it to close the minecraft launcher's process. Secondly, I would like it to renice the ...
0
votes
0answers
48 views

Monitoring a screen session

I'm very new to Ubuntu and I haven't really found something that I'm looking for. Basicly I am searching for a bash script that will monitor a screen session based on it's name. As soon as the bash is ...
0
votes
0answers
199 views

How to use start_daemon to launch a script?

I find start_daemon function in /lib/lsb/init-functions(show below) start_daemon () { local force nice pidfile exec args OPTIND force="" nice=0 pidfile=/dev/null OPTIND=1 ...
0
votes
0answers
78 views

How do I fix this bash script to auto-fix locked eth cards?

One of our servers has an eth1 interface which seems to randomly lock up--but which works again with no issues if this command is issued in the console: ifdown eth1 ; ifup eth1 I wrote a simple ...
0
votes
0answers
85 views

Unable to profile django app

I am trying to profile my Django application. I installed the django-extensions which include a hotshot profiler. I am able to profile using the Django shell. But, I want to create a script for doing ...
0
votes
0answers
64 views

Script problem at boot ubuntu

I have an application in C++ which show a ipcamera video when I send it a value by ethernet. I want that the application start at boot in automatic way. This is my script: #!/bin/sh ...
0
votes
0answers
142 views

Scheduled Cron Back up from EC2 to S3

I have created a script for scheduling sql back ups and store in Amazon S3. Below is the script that I used for taking backups. DATABASES="testdb" testdb_USER=root testdb_PW=root ...
0
votes
0answers
123 views

Error in export command in ~/.profile

I have this line in ~/.profile: export PATH=/sbin:/usr/sbin:${PATH} and it is causing this in ~/.xsession-errors: init: gnome-session (Unity) main process (1851) terminated with status 1 And ...
0
votes
0answers
154 views

When running a shell script using sudo I am getting no tty present and no askpass program specified

I am trying to build a project using jenkins. The project is based on node. I wrote a shell script that has only npm install command. I am running the shell script from jenkins as sh ...
0
votes
0answers
59 views

Can only echo very limited numbers to USB companion files

I want to echo number 7 to the file /sys/bus/usb/devices/usb2/../companion, but fails. But if I echo number 1 or 2 to this same file, it works well. Any idea on that? nxr@nxr-desktop:~$ sudo -s ...
0
votes
0answers
28 views

How can I give an option (-o vi) to login shell

I want my login shell to be started with option -o vi so that instead of /bin/bash my login shell would be /bin/bash -o vi I tried changing /etc/passwd but that result in invalid shell, as it ...
0
votes
0answers
107 views

How to fix RAID1 array by mdadm with script?

In system works two RAID1-arrays madadm. There is one reserve disk to change faulty disk. I need to write a script which will be monitoring disks and automatically fix degraded array. How do you ...