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

learn more… | top users | synonyms

1
vote
0answers
55 views

Cron deamon written in shell

I'm looking for a script in bash or ksh, that would do ... more or less ... the same as crond. The situation is, that our system administrator suddenly denied the use of crontab to all regular users ...
1
vote
0answers
95 views

mergecap fails to create output file when run from crontab

I have created a script to merge pcap files using 'mergecap -w '. The script doesn't work as the output file is not already present. So I tried to use 'touch outputfile.pcap' before the mergecap ...
1
vote
0answers
34 views

Tab completion that honors $CDPATH

I've installed bash_completion and set my $CDPATH. I can successfully cd to subdirectories of those in my $CDPATH. What I'd like to do from here is for tab completion to bring up files in those ...
1
vote
0answers
101 views

Unintended autocomplete or alias in Terminal

There is a "strange" autocomplete function in my macbook. If I try to type "ps -aux" in terminal (iTerm or TotalTerminal) with the hit of "s" in ps, automatically this happens: "ps -p $$ # Tells the ...
1
vote
0answers
186 views

Writing CPU usage by core and RAM/CPU usage by process to a logfile in OS X

I am writing a script that writes memory and CPU usage to a log file, every hour on a cronjob. The logfile will look something like this: "/n====CPU usage by core====" Core0: 59.05% used ...
1
vote
0answers
49 views

Msys cd .. command takes me to home directory instead of parent

I'm using Msys on Windows 7 with what I believe to be a Bash shell. I want to navigate the following directory structure: Drive (M:) +--- Coding +--- CPP +--- projects +--- ...
1
vote
0answers
86 views

Ncat throws errors while being run from crontab

I have a simple script set up on my OpenWrt box to check if one of the computers in a local network is streaming, and if it does, the script starts wget | madplay to play the stream. Script works ...
1
vote
0answers
55 views

shell script for finding the unix noun phrase

one entry in the on database is: LPE-1*story#1/1 of pearl#1/2*historia de la perla*storia della perla* histoire de la perle* história da pérola*istoria perlei*TOPIC The fields are separated by ...
1
vote
0answers
59 views

Running a symlink locally

I am running the same program multiple times over a linux platform. It is compiled at another server, and frequently updated, and it's uploaded over through rsync to all "hosting" servers, which do ...
1
vote
0answers
47 views

Script to port specifc data from doc1 (notepad++) to specific place(s) in doc2

I really appreciate your help with a windows script or regex function that ports specific data from doc1 (xml in notepad++) to specific place(s) in doc2 (notepad++). I'm running win8. Thank you in ...
1
vote
0answers
185 views

“Script” command in Bash on Mac OSX

quick question regarding the "script" command in Bash on a Mac OSX 10.8.4 system. In any other bash environment on Fedora, CentOS, etc; when I use the script command it just begins recording with no ...
1
vote
0answers
87 views

iWork Keynote: Automate video export with custom settings for multiple files

I have a couple of Apple iWork Keynote presentations and exporting it to Quicktime with my customized settings from within Keynote is straightforward. But here's my problem: How do I manage to ...
1
vote
0answers
139 views

xdotool : close all windows except the one that is active (infront)

I would like to execute a command that will close all windows except the one that is currently active. i would likely to place this command in the gnome-panel which means when i click on the button, ...
1
vote
0answers
77 views

Automatically closing idle windows in Gnome

Can open windows automatically close themselves if they have not been used for X seconds in Gnome? For example, right now I have some Firefox windows and some other file browser windows etc open ...
1
vote
0answers
309 views

How to kill process under cygwin after using kill -9 which does not work

I am using cygwin on Windows7. I tried to kill process on cygwin using kill -9, but it said 'No such process'. $ ps PID PPID PGID WINPID TTY UID STIME COMMAND 3976 ...
1
vote
0answers
92 views

Bash Terminal keeps clearing / overwriting itself

My bash terminal on Ubuntu 12.04 64 bit keeps clearing itself partially when the output is too big. If I do a ls -al in a directory with many files. The terminal prints the result, inbetween it ...
1
vote
0answers
32 views

How to make tab completion work within parentheses

On my Ubuntu machine, I can do this emacs $(which first-part-of-executable<tab> and bash will tab-complete the full executable name. I enabled this myself by adding complete -c which to ...
1
vote
0answers
238 views

ssh Prompts For Password After Account Unlocked - Despite ssh key?

Here's what happened: I set up ssh key so that user could ssh from A to B without a password. I got user's password wrong in some other context too many times, and user's account got locked out. ...
1
vote
0answers
69 views

Bash Shell doesn't recognize the letter “t”

I have Cygwin running on a Windows 7 Box. In what is a relatively new (and strange) development, the bash shell stopped recognizing the lowercase "t". For example: I type echo cat, output is ...
1
vote
0answers
104 views

Getting bash history-complete-backwards/fowards and vi-mode to work with tmux

I'm using bash on Ubuntu 12.04 my inputrc contains: "\e[A": history-search-backward "\e[B": history-search-forward set show-all-if-ambiguous on set completion-ignore-case on"" for my history ...
1
vote
0answers
533 views

File shows different size after copying to another directory

I used cp -rP <dir name> <new dir name> to copy the contents of a directory, including permissions etc from one dir to another. The odd thing is, either du is giving me some strange ...
1
vote
0answers
192 views

Can't seem to connect to Win 7 share with smbclient 3.5.5 on Haiku

I did the registry mods mentioned here but cannot seem to connect. I say seem to, because there's no error message. smbclient \\\\WIN7MACHINE\\ -U myusername smbclient \\\\WIN7MACHINE\\ -U% ...
1
vote
0answers
529 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 ...
1
vote
0answers
156 views

bash add array to plist

I'm making a installable package via Cydia that will write com.intelliborn.intelliscreenx to this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ...
1
vote
0answers
48 views

android base64 cli conversion utilities

I want to encode a file into android base64. Android's sdk has a utility method that does this. I should be able to avoid doing any Android programming to solve this. There are utilities for windows ...
1
vote
0answers
52 views

Is this a bug in top?

This command line: top -l 3 -n 10 -o "vprvt" For some reason there are two processes that consistently creep up in the second sample's output regardless of their actual VPRVT size, and they do not ...
1
vote
0answers
434 views

Faking a Linux environment without chroot

For a university project I want to test a C++11 program on a 32-core machine. Unfortunately the machine has Ubuntu 12.04 with GCC 4.6 installed (we need GCC 4.7 because of some C++11 threading ...
1
vote
0answers
60 views

No error output for ruby commands

I am currently having the following problem: Some of my ruby/rbenv commands commands (e.g.: bundle exec irb, rbenv rehash) fail when executing. However I don't get any error output: [~]$ bundle ...
1
vote
0answers
59 views

How can I use the PROMPT_COMMAND feauture in emacs shell?

In my regular shell I have PROMPT_COMMAND set up to run a script which keeps track of certain information about all the commands I run from any host I connect to. This is very helpful. I often find ...
1
vote
0answers
321 views

“set -xe” in fish shell

In bash, invoking set -x at the beginning of a script causes the commands to be printed on stdout while the script is executing. What's the equivalent syntax for the fish shell?
1
vote
0answers
16 views

How do I log peaks from a mic if they pass one or more thresholds?

I know that the package of xawtv has program call record that can start recording if sound level is over some threshold - but that is not quite the solution. If someone knows how to do it - it could ...
1
vote
0answers
42 views

Making M-u, M-l, and M-c apply to whole words in readline

This is what I've come up with so far: "\C-\eU": upcase-word "\C-\eL": downcase-word "\C-\eC": capitalize-word "\eu": "\C-f\eb\C-\eU" "\el": "\C-f\eb\C-\eL" "\ec": "\C-f\eb\C-\eC" Is there some ...
1
vote
0answers
479 views

bash vi key bindings: Can I map keys? Display mode (insert vs command)?

I am a long time vi(m) user and recently made the switch to using vi key binding in bash. I can already tell that this will be an improvement, but I would like to customize a few things to really ...
1
vote
0answers
227 views

Node.js with Forever and node-dev

Seems like it should be a really simple one, but: How can I run a node.js application with node-dev and forever.js forever start node-dev app.js doesn't work. Ideally I'd have this as an init.d ...
1
vote
0answers
431 views

Is it possible to run an interactive script before shutdown Linux in a GNOME session?

I wrote some utility interactive scripts and want them run before shutdown. For a terminal-login session, I just add some entry in ~/.bash_logout, my login shell is bash BTW, which works. However, I ...
1
vote
0answers
56 views

Where shared folders are located on MAC OS X Lion?

On Snow Leopard there is a file named /var/db/samba/smb.shares where listed all shared folders. Does anyone know, where that file is located on MAC OS X Lion? Thanks
1
vote
0answers
127 views

aescrypt doesn't function with pv in pipeline

I am writing a bash script that pipes a file through pipe viewer to watch encryption progress. However, whenever I use aescrypt in the pipeline with pv, I get an error about not matching passwords. If ...
1
vote
0answers
378 views

Copy the output of the last command in Terminal.app

!! | pbcopy would also run the commands again and couldn't be used with interactive commands. This relies on the prompt always being $ : tell application "Terminal" to tell window 1 to history do ...
1
vote
0answers
317 views

Converting csh or tsh scripts to Bash

I am looking for a tool that can convert scripts written in csh or tcsh to a bash scripts. At least on the basic stuff so that I don't have to go through the process of translating everything from ...
1
vote
0answers
101 views

script -e and crontab or at

I have a shellscript I want to run via at and use script to capture a transcript. script -e was introduced in util-linux-ng 2.18 and returns the retval of the child process. I want to capture the ...
1
vote
0answers
90 views

Using gxine_client to get and set value playlist.repeat for running gxine

I would like to know how to use the gxine javascript interface from bash shell. I want to have a bash shell script read out value of running gxine, set things like playlist repeat/loop option, ...
0
votes
0answers
3 views

Use sfk list against only current directory (do not descend tree) or provide max-depth

The sfk list command does not mention any equivalent of max-depth. I want to use sfk-list in just a single directory or even better with an equivalent of max-depth Any way to achieve this? ...
0
votes
0answers
43 views

bash doesn't find “./file” altough file is in current directory

This tells me that there is a file called arm-uclinuxeabi-gcc in the current directory: manuel@manuel-VirtualBox:~/linux-cortexm-1.12.4/tools/arm-2010q1/bin$ ls -l total 16808 -rwxr-xr-x 1 manuel ...
0
votes
0answers
18 views

Screen: user session closed, why?

For a couple of years now have been relying on a bash script that invokes a java server process via screen; until last night it has run flawlessly, just ssh into remote server >> sudo screen >> invoke ...
0
votes
0answers
15 views

Possible to su and run both .bash_profile's?

I currently log into the boxes at work, then: su - <adm_user> My question is, is it possible to pass through to the su'd user, my bash profile and source the adm_user's bash profile?
0
votes
0answers
9 views

Ruby RuntimeError on launching terminal (Mac)

Whenever I open the terminal on Mac I get this error: /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby: invalid option --1 (-h will show valid options) (RuntimeError) ...
0
votes
0answers
13 views

Error while using sudo apt-get update

I am using ubuntu 12.04 and while using sudo apt-get update command I get this error: Hit http://in.archive.ubuntu.com precise-backports/universe Translation-en Fetched 4,683 kB in 1min 14s ...
0
votes
0answers
15 views

Odd 7z Extracting Behavior

In short, I would like to use command-line 7z to extract an archive and recreate the directory structure of the archive. I know the function letter for this is "x" yet it does not seem to work for ...
0
votes
0answers
16 views

accessing remote web-pages from local computer

Suppose I can access my remote computer from the console putting (using OSX) ssh my_name@my_ip Suppose now I want to visit web pages of the remote computer, and this from my local only using the ...
0
votes
0answers
11 views

SImple server to run program and return result

I am attempting to create a minimal local listen server that takes an input request, pipes the input to a program and then returns the result of the command. What I have at the moment is the program ...