Bash is a free shell for Unix-like operating systems, from the GNU Project

learn more… | top users | synonyms

0
votes
0answers
231 views

Automatically reconnect Openswan/IPSec VPN and disallow intermittent traffic?

I am trying to connect two Debian machines running an Openswan/IPSec tunnel. Also, I want to disallow any traffic when the tunnel goes down. For that purpose I wrote a script the fiddles with routes ...
0
votes
0answers
52 views

Special and diacritic charactres using less, cat and other linux tools

I am using GNU bash, Version 4.1.10(4)-release (i686-pc-cygwin) and set up my .inputrc to allow for special characters and German umlauts etc.: set meta-flag on set convert-meta off set output-meta ...
0
votes
0answers
109 views

save current VLC playlist from command line

I am looking for a way to save VLC's current playlist to a .m3u file from the linux bash terminal. I know I can do it from through the Media menu but would really like a command line option so that I ...
0
votes
0answers
91 views

How to easily execute last output line in bash?

You probably encuntered the case where a package was not installed and the system was recommending you to install it using apt-get install mypackage. I am looking for a quick keyboard shortcut for ...
0
votes
0answers
43 views

How to add additional charsets to libiconv in Cygwin

My problem is, that I sometimes have to convert files in the ISO646-DE-encoding (for german authorities... Don't ask...). On each linux-system that I used iconv -f ISO8859-1 -t ISO646-DE worked ...
0
votes
0answers
56 views

Linux flow control exit or break on condition

I have a query about the following flow control. I need help to run a script that has these three conditions: Conditions: Successful: Proceed to read message. Fails: Exit to cat or just exit ...
0
votes
0answers
131 views

BASH 4.2.45(1) - shopt direxpand breaks tab completion for ~

I have a machine with Mac OS X installed, running Bash 4.2.45(1). When I enable shopt direxpand, it works as expected, however when I try to do the following tab complete, the tab completion process ...
0
votes
0answers
52 views

Open a command inside of a new terminal window

I was wondering if there was any way to open a command inside of a new terminal window. That way I could, for instance, bind such a command to opening video files through my file manager and it would ...
0
votes
0answers
67 views

segfault when cd-ing into certain directories in bash

I have noticed this very strange behavior recently. After cd into certain directories, I get a segfault on the terminal. --- SIGSEGV (Segmentation fault) @ 0 (0) --- --- SIGSEGV (Segmentation fault) ...
0
votes
0answers
48 views

Why is the Python interpreter provided by Django suddenly showing me Python tab completion upon a single Tab press?

This issue seems to have just started happening; basically I just noticed that whenever I press the Tab key in the Python interpreter that comes with Django, it gives me the Display all ... ...
0
votes
0answers
34 views

Changing permissions on Windows share from OS X?

How can I change permissions on a Windows file server from a script on OS X? In Windows, this can be done with the cacls command. Is there a way to do this from OS X?
0
votes
0answers
53 views

Cut and Paste from OSX Terminal to Mac's TextEdit (v.1.8) Program results in partially garbled text- why?

Everytime I cut and paste from MAC Terminal (v 2.3) on my computer (mtn lion 10.8.5) to TextEdit and save as a .txt file, I notice that a lot of text gets garbled in the process. Does anyone know if ...
0
votes
0answers
17 views

Automounting folder in Enhanced CD layout

I am in the middle of recording my own material to benefit my published trademark. I may have understood is that users can automount folders as read-only and make it permanent. In the Enhanced CD ...
0
votes
0answers
63 views

Installing jdk 1.7.0 java -version not working

I have installed java jdk, following the steps as described here but the problem is when i do which jav it gives me the output /usr/bin/java but when i do java -version it says bash: ...
0
votes
0answers
47 views

Take back Ctrl-/ from Debian console configuration

My Debian Testing console is stealing my Ctrl-/ and using it as Backspace; Ctrl-/ is the single key-press Undo in bash and emacs. After some research, it looks like the Ctrl-/ -> Backspace mapping ...
0
votes
0answers
19 views

Symbolic link causes ClassNotFoundException

In OSX using bash I want to have a symlink inside the webapps folder of a Tomcat server. I have created the symlink using ln -s <source> <target> and also tried with other parameters. ...
0
votes
0answers
57 views

Geany IDE save files with bash command?

Is there any way to save open files in Geany IDE with a bash command? I have a bash script to compile source files for me, but I want it to save the file before compiling. "What I would like to use ...
0
votes
0answers
27 views

Remote URL Completion in Bash

I'm currently adding support for remote url completion for svn in Bash. I'm currently using a modified bash-completion-svn that figures out when to trigger the completion on URls looking like ...
0
votes
0answers
219 views

find and replace in PDF using sed and pdftk

I am doing a mass find and replace using sed and pdftk to find and replace a word in PDF files. When I run the following command, sed -e "s/word1/word2/g" test.pdf I get the following error, sed: ...
0
votes
0answers
53 views

How can I fix my filename completion?

Updated to Fedora 19 recently, and some filename completion no longer works the way I expect it to. If I attempt to use it with, say, emacs - then it's fine. emacs a<tab><tab> - lists ...
0
votes
0answers
155 views

Edit Zip files recursively using VI editor

I have a use case in which I want to edit a file using vi editor which is bundled inside a war package and the war package is bundled inside an ear package. I am on a linux machine Oracle Enterprise ...
0
votes
0answers
104 views

C++ running inefficiently in Bash

I have a query regarding bash. I have been running some of my own C++ programs in conjunction with commercial programs and controlling their interaction (via input and output files) through Bash ...
0
votes
0answers
211 views

Corrupted broadcast message when system is going to halt in Debian

I have two debian squeezy systems. On first when I've do shutdown or reboot I see correct message, for example: Broadcast message from root@example.com (pts/0) (Fri Jul 19 23:43:32 2013): The system ...
0
votes
0answers
24 views

Run screen splitted and specify commands for each windows?

Ubuntu 12.04, I would like to run gnu-screen already splitted in two regions and with certain commands in it, I have found that in new version of screen there are -Q argument, but I still dont get how ...
0
votes
0answers
67 views

Getting rid of “bash.exe” - from my startup

Soluto reports that bash.exe is taking up 40 seconds of boot time, but I cannot disable it. If I search for it in msconfig, I cannot identify it. If I search for "bash.exe" I cannot identify it. If I ...
0
votes
0answers
482 views

Executing tcpdump remotely while storing packet capture locally

I have run into stumbling block while attempting to create a bash script that will write packet capture files from tcpdump onto a remote server, while displaying the output of the tcpdump command so ...
0
votes
0answers
52 views

How do I script a config file change

I'm trying to create a script to make the vi color change described here http://www.kavoir.com/2009/05/how-to-change-vim-syntax-highlighting-colors.html Trying to do it with sed but it's not working ...
0
votes
0answers
45 views

Can FIGNORE be limited to specific applications?

I know that you can use FIGNORE to remove filename completion from suffixes. For example, to avoid a lot of garbage files produced by LaTeX, I've been using: ...
0
votes
0answers
28 views

Certain actions in Terminal.app in OS X cause noise in audio/video streaming

If I'm listening to something in Pandora or YouTube, and I'm in Terminal.app in OS X 10.7.5, if I use the up arrow to scroll through bash command history, then that works fine with no noises. But, if ...
0
votes
0answers
17 views

rvm cluttering up my environment vars

I was trying to see a list of my environment variables in Bash (Mac Terminal) by typing set. But when I do, I am overwhelmed by a bunch of functions apparently defined by RVM. Is this supposed to ...
0
votes
0answers
60 views

Shell doesn't appear when connecting to RasPi via SSH

I have a raspberry pi with Arch Linux ARM installed. I would like to run commands via my laptop. I configured SSH correctly and I can log in, but I can't do anything. There is no shell. ssh user@host ...
0
votes
0answers
75 views

How to quickly add multiple routes on Mac OsX

After connecting to OVPN, I need to add many routes (more than 3000). It can be done by sudo reoute add X.X.X.X/X X.X.X.X for each one rules, but it's really slow. Is there any other alternative ...
0
votes
0answers
52 views

which program is really running?

I am running a self-compiled version on python2.7, --prefix=$HOME, so as not to interfere with the standard installation of python2.6 (on Ubuntu 10.04). Had some problem importing the ssl modules, ...
0
votes
0answers
170 views

Name of Rake task in ps output?

pid = `ps -ef | grep -v grep | grep rake | awk '{print $2}'` This is a bunch of ruby code that executes piped linux commands. While I usually just use ps aux, just because, I noticed that the rake ...
0
votes
0answers
343 views

bash autocompletion is slow, freezing my desktop

sometimes when working with a custom kernel, pressing tab in the bash autocompletes at a horrible pace. It freezes the whole desktop. Then comes back after awhile. This is the only quirk that I've ...
0
votes
0answers
315 views

USB Modem not getting connected after resetting using usb_modeswitch

I have a requirement that I need to first unmount and then mount again the 3G internet modem on ubuntu 12.04 without removing it physically. The modem model is Huawei E173u. So far, I have tried this ...
0
votes
0answers
252 views

Rotate Outgoing Ip in Postfix, script not working

I've found what it seems to be a nice piece of code meant to rotate postfix IP but I really can't get it to work. when I run it I get this error: rotate_postfix_ip.sh: 2: Syntax error: "(" unexpected ...
0
votes
0answers
69 views

How to set permissions to log files generated after permissions are set

In my shell script I have to access all the log files in the directory. I have set chmod -R 777 to the directory. From this all the log files that are currently available in this directory are set ...
0
votes
0answers
148 views

rsync shell script

Need some hints on my first shell-script using rsync. I use rsync, because I had some trouble with a graphical Backup that ran twice and now I want this example as shown below to work on two external ...
0
votes
0answers
236 views

Force apt-get update to return success

I'm working with a system that invokes apt-get update from a Ruby Capistrano recipe. Capistrano cares (apparently) about the return code of the shell commands it executes. apt-get update is running ...
0
votes
0answers
110 views

Analogue of the “tail -f example.log” command in Windows?

Is there a similar command in Windows?
0
votes
0answers
141 views

Will my weekly cron job work?

I'm just getting back into bash scripting and I want my cron job to run every 15 minutes between 9.15 and 10 PM. I've checked the script works, but I don't know if it's the right command: ...
0
votes
0answers
80 views

Why is a “-1” appearing on right side of my zsh Terminal prompt?

Screenshot here I recently switched over from bash to zsh for my Terminal shell, however after using it for about a week this "-1" started appearing on the right hand side of my window. It get's ...
0
votes
0answers
44 views

Ubuntu pervasive RubyGems

Hey guys I downloaded the Pagodabox gem via gem install pagoda which gives me the terminal command $ pagoda From here I can run all of my fun pagoda commands like $ pagoda -a app tunnel -c ...
0
votes
0answers
366 views

iTerm up arrow autocomplete

Recently, the up-arrow to scroll in my bash history in iTerm 2 stopped functioning as it did before. In the past, if I started typing a command (let's say, `curl') and then pressed up, it would only ...
0
votes
0answers
209 views

Terminal emulation has stopped working. Garbage escape chars

To enable me to do some remote administration of our servers I started using a terminal emulation program called TouchTerm Pro on my iPhone. While not the smoothest experience, it has allowed me to ...
0
votes
0answers
131 views

Terminal highlighting and auto complete

Do you know some plugin for highlighting and autocomplete in postgreSQL terminal?
0
votes
0answers
223 views

bash script rm cannot delete folder created by php mkdir

I cannot delete folder created by php mkdir for I in `echo $*` do find $I -type f -name "sess_*" -exec rm -f {} \; find $I -type f -name "*.bak" -exec rm -f {} \; find $I -type f -name ...
0
votes
0answers
243 views

Make `ssh-agent` use the terminal, not an X app

The ssh-agent X app is irritating. I use a password manager and long random passwords. The password manager (pwsafe) puts the password into the clipboard (using secure ram), so it isn't displayed or ...
0
votes
0answers
471 views

Programmatically backing up SMS on Android

I want to archive my SMS and MMS messages on my Android phone. I found a few applications that can do this and save the results to an SD card or email. That's nice, but not powerful enough for me. I ...