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

learn more… | top users | synonyms (1)

3
votes
0answers
97 views

Upstart and process substitution

So I want to use the following in my script stanza: forever -l >(tee $QW_LOG_DIR/webserver.log | logger -p user.info -t '[QW]') start webserver.js However, that won't work because: That's bash ...
3
votes
0answers
380 views

msmtp not working?

I was trying to send mail from bash, but it doesn't work and I can't find the reason... So my .msmtprc file is account default host smtp.gmail.com port 587 from account@gmail.com tls on tls_starttls ...
2
votes
0answers
28 views

preseed file and installation script

I am using a preseed file to auto install ubuntu 12.04. I create a normal user account (able to use sudo), I skip the creation of a root account. At the end of the file I have put this (seen it from ...
2
votes
0answers
28 views

Bash script checking if specific printer is online

Objective: Create a bash script that checks if a certain printer is connected and online (connected: true/false) How can I do this in the terminal (or via python)? I have tried "lpstat -p -d" but ...
2
votes
0answers
36 views

cron.daily gives apt error. “not found”

I recently upgrade to Ubuntu 15.04 and after that I get these strange errors in my cron e-mail. Sadly I didn't remember what version of ubuntu I was upgrading from but I think it was the latest before ...
2
votes
0answers
143 views

Showing progress in whiptail while using sshpass and SCP

I'm writing a bash script that automates the building, copying and running of a golang app to a remote server. I'm using whiptail to let the user pick some options, enter in some details (e.g. SSH ...
2
votes
0answers
117 views

How to get bluetooth serial port tx/rx buffers status?

The problem comes from that I have to send data via bluetooth serial port from a tiny robot to my laptop at baudrate 115200, robot sends 32-bytes packet every 10ms (100 times per second). Transmission ...
2
votes
0answers
171 views

How do I force nmcli to reconnect to different uuid?

I have a bash script that checks my network environment and mounts shares accordingly. If I'm at work and have a hard-wire connection to the LAN, then I'd like to activate a hotspot connection for ...
2
votes
0answers
570 views

Slow bash tab completion

My bash shell's tab completion is very slow, usually taking 1-2 seconds per completion. This only seems to happen when I'm using my laptop from work. Tab completion is very speedy when using my laptop ...
2
votes
0answers
1k views

How can I create an X server that has a backing store?

So I am completely new to Ubuntu (I am running 12.04 on a Toshiba Satellite). I am trying to remotely access my work computer but I keep getting an error reading: "xevas: requires a X server that ...
2
votes
0answers
804 views

Why doesn't duply work when set as a cron job?

I have a problem with a cron job which starts but doesn't complete. Running the command manually works fine. I already read the page about cron issues and solutions here on AskUbuntu, tried the ...
1
vote
0answers
30 views

parse webpage upto n levels using wget

I am trying to extract URLS from a webpage up to user defined n levels using wget. I tried this wget -r -l$2 --reject=gif -O out.html www.google.com | sed -n 's/.*href="\([^"]*\).*/\1/p'` " It is ...
1
vote
0answers
11 views

Bash script sends mail from one server but not the other

I have a bash script that is running on two, virtually identical servers. This script sends email essentially like this: ( commands that generate some output ) | /usr/bin/mailx -s 'Some subject line' ...
1
vote
0answers
17 views

Job on Upstart not started

I'm trying to start my application at boot, but I can not ... the script in upstart calls another script, I'm not getting or whether the 2nd script is called, follows the two scripts: 1º Script ...
1
vote
0answers
28 views

installing Anaconda, errno 2 no such file or directory

I've taken a look at some of the other AskUbuntus, and none of them have fixed my problem. I've been running iPython for almost six months now in order to get some extra practice with the Codecademy ...
1
vote
0answers
27 views

Lubuntu: hotkey to toggle displays

I am relatively new to Linux and new to bash scripting. I am trying to set up a Fn-F5 key on my old Asus EEE netbook to toggle between internal and external monitors. Creating a bash script in ...
1
vote
0answers
24 views

Automatically switch to Singstar Microphones when they're plugged in

I am running a media computer for my sharehouse and since singstar has been so popular I want to run Ultrastar for everyone too. The problem is that getting the microphones set up can be finicky and ...
1
vote
0answers
52 views

Different results of 'ps aux | grep x' if entered manually and done via script

It was probably a bad method, but I was running ps aux | grep x | wc -l as part of the if statement in a script. When I ran this from the command line as a regular user, the result would be 1 if the ...
1
vote
0answers
22 views

Passing Strings to /bin/login

I'm in the process of creating a login wrapper for /bin/login so that when you boot Linux you get a TUI Login instead of the bland login on the tty console. This will be just a bash script for this ...
1
vote
0answers
27 views

Problem running backup script at shutdown Ubuntu 14.04.2

I want to run a script at shutdown, and a far as I can tell I've followed the proper procedures. The script (close) is supposed to launch another script (gdrive) in a terminal which prompts me to sync ...
1
vote
0answers
21 views

keep same inodes metadata with rsync or ignore metadata with du

I'm trying to synchronize two folders from a remote computer. I want to use rsync to send the folder, and du to check if the space used is identical on the remote computer. The problem is even with a ...
1
vote
0answers
14 views

How to ponysay multiline messages?

When I am running phpunit I get a multiline response: $ ./vendor/bin/phpunit -c tests/phpunit_no_code_coverage.xml --filter=Ncl PHPUnit 4.1.6-6-g43914fa by Sebastian Bergmann. Configuration read ...
1
vote
0answers
28 views

rsync multiple IP's using bash script?

I am trying to use rsync to synchronise remote files with local server. It works great but I want to do it on multiple remote servers to sync with on daily basis. sshpass -p "xyz" rsync -avz ...
1
vote
0answers
47 views

System freezes during Bash auto-completion with Tab or Ctrl+R

It started about a week ago, don't know why. Now, when I type something like cd somedir and click Tab, my system completely freezes for about 10 seconds. I can move the cursor but can't switch between ...
1
vote
0answers
35 views

Making tab completion look anywhere in the word

This completion mode probably has a name, I just don't know what it is. In Sublime Text the auto complete works in a way that the typed letters are searched for in the same order but they are not ...
1
vote
0answers
90 views

Script with xdotool not working properly on a fresh reboot

I want to run streamus (chrome app) to stream youtube from terminal and asked a question relating to that in this same SE. I also got a wonderful answer and a script for my problem. But that script ...
1
vote
0answers
26 views

Screen in crontab

I'm trying to run 9 screens windows by crontab, and then, run some codes (basically the same for all of them), but they don't work. The code runs all of 9 screens, but run code only on the first. Aah, ...
1
vote
0answers
33 views

Terminal Closes On Running clear and large output commands

When I run the clear command or ctrl+L or commands with large output like ps aux, my terminal closes. I have set the scrollback to unlimited.
1
vote
0answers
35 views

speech-dispatcher always stop working after terminal exit?

In a previous question I made this line: trap 'clear; ~/ascii3.sh; spd-say "Exit"; sleep 2' EXIT The content of ascii3.sh is: echo -e "\033[01;31m" echo " _ _ __ _ _ ____ __ __ _ ...
1
vote
0answers
73 views

Running a bash script on “Switch User”?

I've had my first dabble with bash and got a working script going for each user on session start which checks if a NAS share is mounted and if it is unmounts it and mounts as the current user. This ...
1
vote
0answers
180 views

Bash script: command not found

I have an executable script install_packages.sh in /home/etienne/admin folder. The directory's path is added to $PATH variable from /etc/bash.bashrc. When I type #echo $PATH I see that the variable ...
1
vote
0answers
106 views

Connecting Ubuntu to Windows Domain

I made a bash script to automatically connect Ubuntu computers to a domain using PBIS Open. The script works and connects computers to the domain just fine almost every time. After awhile though, a ...
1
vote
0answers
36 views

Unresolved dependenices after trying to reinstall ROS

I tried to re-install ROS because of issues with not finding system paths correctly and now all I can see is a black screen when I turn on the computer. In tty1, when I try sudo apt-get install ...
1
vote
0answers
43 views

How do I run as bash script from a WebApp?

I currently am developing a custom Ubuntu dist. that runs a dedicated Kiosk app upon boot. I would like an easy method to shutdown from inside the Kiosk app, but I am currently at a standstill at what ...
1
vote
0answers
27 views

Disappearing files in the cat command

I am handling a rather large dataset. I have 238 files, for whcih I would like to import their content into excel. In order to do so, I am creating a combined txt file using cat *.pdb > ...
1
vote
0answers
111 views

bash script to cd into an USB device

i am creating a simple updater for a program which will be ran on an Odroid C1 with Ubuntu 14.04 Server.. Preamble 1) i want the updater.run downloaded from my server and placed into an USB; then ...
1
vote
0answers
107 views

If you install anaconda, how can you inactivate the anaconda environment?

I'm currently using Anaconda to get access to a "standard" set of packages on nearly any platform. The issue is, on the linux side of the house, my current approach is to tell the installer to ...
1
vote
0answers
139 views

Randomizing host name and mac address on boot

I'm trying to set up a startup script to randomize my hostname and mac address on boot. Here is the script http://pastebin.com/qatdtbVH The random mac address is working fine, but the hostname ...
1
vote
0answers
63 views

How to automate configuration of legacy wireless drivers during installation

Perhaps the most common roadblock in deploying Linux on donated machinery is getting them to access the wireless network, due to the known issues with supporting legacy Broadcom drivers. Instead of ...
1
vote
0answers
62 views

Desktop Environments Incorrect After SLiM Install

I am working on making an automated install based off of Lubuntu using Debian Installer so that the install is as automated as possible (a few inputs at the very beginning). So far I am mostly pleased ...
1
vote
0answers
64 views

Errors in update checking script (cause: repositories not available)

I have a scripts that tests if updates on my 14.04 server are available, and send me a text message if that happens. The bash script begins with: IFS=';' read updates security_updates < ...
1
vote
0answers
467 views

Increasing ALSA's buffer size

I'm trying to change ALSA's original buffer size, in order to increase it. Until now, I had no luck. I've tried to execute the commands listed in http://pastebin.com/4FibYN0U, however,I don't have ...
1
vote
0answers
39 views

How to terminate server process?

I just created automation sending an email using a shell script, but it always running and send me an email every sec to my email. I'm using PID and that process name to terminate it, I'm writing ...
1
vote
0answers
64 views

$DISPLAY env var gets cleared at random times

Stock Ubuntu 14.04 Trusty. I seem to regularly experience the $DISPLAY environment variable getting cleared for some reason I don't understand. Basically everything will work just fine until it's ...
1
vote
0answers
42 views

Change content of list in app indicator made using cappind

I made a simple indicator using cappind script which is based on zenity - Webupd8 article Capind page I want to change the text of the list according to some condition.. Like, if the contents are - ...
1
vote
0answers
147 views

Unable to reproduce the ShellShock bug locally

I have been trying to reproduce the Shellshock bug on my local 14.04 Ubuntu VM without any luck. I know my local bash version is still vulnerable because the following command prints out the commented ...
1
vote
0answers
266 views

Synaptic Package Manager -E-“cache open”, E - Default-Release not available

In an attempt to re-install Bash I tried to open Synaptic Package Manager but got this message E: The value 'precise-updates' is invalid for APT::Default-Release as such a release is not available in ...
1
vote
0answers
245 views

How can I draw selection rectangle on screen for my script?

I am trying to make a simple screencasting bash script. I want to get screen selection coordinates by drawing a red rectangle with mouse. I can use xdotools to get coordinates but how can I draw ...
1
vote
0answers
402 views

Can you use gnome keyring in bash script, if yes then how?

I am developing a automated mounting script for Windows shares. I have finished the script and it works just fine, but is it possible to add Gnome Keyring to the bash so once user writes hes/hers ...
1
vote
0answers
58 views

On Trusty, what is CL program to create desktop configuration file?

On Precise, I used to create a desktop configuration file with my own GUI wrapper which called the gnome-desktop-item-edit command line program (part of the gnome-panel package) which had the ...