0
votes
0answers
25 views

Absolute basic MQ wanted - command line driven

I am looking to install a very basic command line accessible MQ product. It will be run on Ubuntu 12.04 lts, and should be able to support multiple readers. Any products I should be looking at?
2
votes
1answer
73 views

Bash completion for the new apt command

I like the new apt command (which will be included in the upcoming trusty release) so much that I installed it on my precise system by compiling the 14.04 package from source. Unfortunately, bash ...
0
votes
3answers
29 views

How to turn off restricted bash mode?

I accidentally turned on restricted bash mode. With bash -r command. Now I cannot cd. How to turn off bash restricted mode and get back to normal bash?
1
vote
1answer
105 views

execute local bash script in remote machine using expect

I have local shell script. Now, I want to run this local script in remote machine. Of course I can use ssh, but as it(the local shell script) should be like an automated one, it shouldn't ask for ...
4
votes
1answer
32 views

Can't login after adding script to /etc/profile.d

I have created a little script to add bookmarks in Nautilus to redirect users to network share. If I run the script manually, it works brillantly but as soon as I try to add it in /etc/profile.d, I ...
1
vote
1answer
46 views

Script not running in crontab, file not found

I need your help to run a bash script in crontab. As many other posts in askubuntu I'm facing the problem that a script that is properly running in terminal mode does not run in crontab. The error I ...
1
vote
0answers
30 views

How To Set FQDN From Bash Script

Is it possible to set the fully qualified domain name from a bash script? I am using Ubuntu 12.04 LTS. I have an autoscaling group on Amazon and I am using Puppet for configuration. For example, I ...
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" ...
1
vote
1answer
53 views

How to check if a restart of open-iscsi was ok

I am working on a bash script to connect a iscsi initiator to a target. After I have edited the iscsid.conf in the initiator I have to restart the open-iscsi with the command: service open-iscsi ...
1
vote
1answer
39 views

Check if connection worked if not return error

Working on a bash script to connect a iscsi client to a server. How do I put this command: iscsiadm -m discovery -t st -p 10.0.0.30 in a if to check if the connection was established, if not it ...
0
votes
0answers
27 views

Terminator - Bash character encoding - problem visualizing content of some files

I'm using Terminator to manage several bash shells. If I print the content of some files, some characters are bad displayed. Even if the character encoding is setted to UTF-8. Below there is the ...
1
vote
1answer
27 views

Simple: check if volume group is found with a if

I am working on a script to check if volume group vg0 exist. The problem is that it return Found even when I delete the volume group. So very unsure what is wrong. #!/bin/bash if vgdisplay | grep ...
0
votes
1answer
54 views

Bash script fault creating mdadm array

I am working on a script to create md1 array, first to check if the array exist if not it will create it. I get command as command mdadm not found and a few others. The script wont run. ...
0
votes
1answer
48 views

How to check if last command succeeded and make that command auto accept prompts?

I am working a script to create a raid5 array. The question is how to put the command in a if (to see if the command succeeded), and when the script ask to continue creating array it will auto say ...
0
votes
1answer
50 views

How to store the array length in a variable in bash scripting language

I stored some information about the system in an arrays .. and I tried to store the length of an array in a variable then print the value of the variable on the terminal , but there is no output! ...
0
votes
2answers
91 views

How to split string in bash and store the tokens in array

I wrote this script to store some information about my machine such as the users and the running processes . I tried to store the retrieved data into an array. To test array I printed the length of ...
2
votes
1answer
50 views

Bash script to check if mdadm is installed if not install it

I am currently working on a bash script to create raid5 with 3 disks and one hotspare. I am confused of how to create a script which first check if mdadm exist, if not it will install it and name it ...
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 ...
1
vote
3answers
1k views

Writing a bash script to read a text file of numbers into arrays, by column, on Ubuntu

I'm trying to write a little bash script on ubuntu 12.04 and have little experience. Odd little problem converting a text file of numbers into arrays. I need all of the first numbers, second, etc into ...
1
vote
1answer
50 views

How do I switch desktop session users from a shell script?

I've got 2 users, foo and bar. Currently if I'm logged in as foo, I can select bar from the menu in the top-right of Unity, and since bar has no password set, I switch straight to bar. However, I ...
0
votes
2answers
40 views

Can you preview the effects of a command?

How can you preview the effects of a command? For instance, if I want to run rm -r ./*, or chown -r ./*. Is it possible to run a safe "test" of that command with the ability to ensure that nothing ...
1
vote
3answers
102 views

How can I prepend a random letter/number to the beginning of each filename?

I'm working on a system where I'd like the first letter of each filename to be random - not necessarily unique, just random. I'd like to be able to run this from a cron job. For example, I would be ...
0
votes
0answers
37 views

inotifywait does not shut down my computer

I've put this script at startup in /etc/init.d, when some user changes password, this script updates it on another file data.txt, It is working fine, but when i shut down my computer it was not doing ...
0
votes
0answers
77 views

PATH variable to Apache OPENNLP OK but doesn't work

yesterday I installed in my Ubuntu AWS 12.04 (Amazon) micro istance OpenNLP and seemed working. Today when digiting opennlp:command not found Following suggestions found here: I modified my ...
0
votes
2answers
773 views

How to run bash commands in Ubuntu 13.10? [duplicate]

before in Ubuntu 12.04 when I make simple bash commands, it works but in Ubuntu 13.10 I can only open it with gedit! How I can run it by only one click?
0
votes
1answer
373 views

Konsole does not execute .profile or .bash_profile [duplicate]

When I open Konsole the settings in .profile are not executed, and it means the ~/bin is not added to the PATH. Is there a way to get Konsole to do that? PS. Is there a way to tell whether Konsole ...
0
votes
0answers
25 views

Minimal Bash like promt when installing ubuntu [duplicate]

The Problem is that i can not install Ubuntu on dualboot with windows 8.1 because it gave me: "GNU GRUB version 1.97"beta 4 [ Minimal BASH-like line editing is supported.For the first word, TAB ...
2
votes
2answers
217 views

Script to clean system [closed]

I want a script to clean my system. Clean unused dependencies. Clean apt-cache. Clean residual-config files. Remove broken packages. Only keep the latest version of packages and remove ...
0
votes
0answers
17 views

Configuring Ubuntu 12.04 so that it recognizes the recently installed icc compiler

I have an Ubuntu 12.04. I installed the icc compiler (composer_xe_2013_sp1.0.080) but when I try to compile using it I get the message : icc : command not found. I've read somewhere that when you ...
1
vote
1answer
51 views

How to block all the interrupts in linux

I am working on a python project, Where i am displaying a graphical window with log in screen, I've also disabled the close, re size and minimize buttons My problem: I have to disable all 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 ...
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: ...
2
votes
1answer
2k 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: ...
1
vote
1answer
18k views

configure: error: C compiler cannot create executables

I was trying to install rvm using \curl -L https://get.rvm.io | bash -s stable --ruby --autolibs=enable --auto-dotfiles. It worked fine until I got a configure error: Error running './configure ...
2
votes
0answers
387 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 ...
3
votes
2answers
169 views

How to batch organize files?

I have a directory with gigabytes (about 8gb) of small individual files. I want to organize them into directories by date. The date it was created is part of the filename. Here is an example of a ...
1
vote
2answers
75 views

Setting default path when opening a terminal session

I am newbie to Ubuntu. Whenever I open a terminal it's path is set "/home/Varun" (as found by typing pwd). Is there anyway I can make the terminal's path to be set at "/home/Varun/Desktop/Java Files" ...
0
votes
0answers
151 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.
2
votes
2answers
110 views

use Cron to mail log from a job

I have a weekly script that cron runs to make a zfs snapshot. I was wondering if it is possible to mail a OK mail if the job run correctly and a error mail if something happened and in the content of ...
0
votes
2answers
471 views

Changing current directory to shared filesytem using linux terminal

I have a shared filesystem (E: in my installation of Windows 7) in which I keep my programming codes. I want to shift from Windows to Ubuntu for programming mainly because I like the linux terminal ...
0
votes
0answers
288 views

zsh crashed with rvm and bash_completion

I have installed zsh to my gnome terminal(Ubuntu 12.04). And they crashed on: /home/xdsemx/.rvmrc:13: command not found: shopt /home/xdsemx/.rvmrc:21: command not found: shopt ...
0
votes
2answers
2k views

Change the terminal prompt [duplicate]

This can be really trivial,but it helps in ways of making it more comfortable while coding and sending commands to terminal. My terminal source/bash/root name(my apologies, I dunno which is the right ...
0
votes
1answer
44 views

Controlling a loop and saving the output for each event

How can I control a loop and read live feed from a usb port and save each of the output when the usb is inserted or removed. I know the code below can be improved, please assist. #!/bin/bash ...
1
vote
1answer
178 views

Cron job bash script to restart desktop sharing?

I'm having trouble with desktop sharing crashing while during remote sessions. Is there a way to set cron to check and restart, if necessary, the desktop sharing application with a bash script?
0
votes
1answer
100 views

AMD different ways to install drivers

I do not want to know how to install drivers but what the differences between 2 ways and which one is better. building deb files from *.run file sudo sh*.run --buildpkg Ubuntu/precise installing ...
0
votes
1answer
136 views

How to make bash scripts execute when clicked upon?

I am trying to create a bash script for the Dash home button, as I am trying to fully replace the Unity dock with the Cairo Dock. Unfortunately, I have been unable to make it so that the script only ...
1
vote
2answers
145 views

Bash refuses to execute correct binary

I've installed the current version of texlive (2012), which installs its binaries into /usr/local/texlive/2011/bin/i386-linux/. I subsequently added this directory to the PATH variable by modifying ...
2
votes
1answer
309 views

How do I open screen with many tabs to execute some commands within each one

How to open screen with many tabs? How can I execute some commands within each tab, plus giving the main screen window a name to call it again later to execute other commands? For example, I have a ...
0
votes
2answers
1k views

Bash Script using a Firefox Profile to open URLs

Working on a script to automate some tasks in Firefox. These tasks should run through a clean Firefox profile, so they are fast and don't interfere with any of my regular surfing. #!/bin/bash # ...
1
vote
1answer
125 views

How to make a script passing his PID to another running script

i have a script which is the main one and this script open a new terminal and execute another script so what i want is to pass the PID of the second script to the first script the main script ...