A shell is software that lets users interact with the operating system, usually by typing at a command-line.

learn more… | top users | synonyms

3
votes
0answers
292 views

iTerm2: How to get output of a shell command with applescript

I want to get the output of a shell command run through iTerm2's applescript into an applescript variable. I tried the following but it does not work: tell application "iTerm" activate try ...
2
votes
0answers
88 views

Downloading and building O3D

I'm trying to get a program called O3D into my computer by following the instructions on O3D's wiki. I tried to download the project to my directory but the prompt gave me this answer: gclient is ...
2
votes
0answers
81 views

How can I get emacs 24.* under windows to autocomplete paths in shell buffers using “\” instead of “/”?

See How can I get emacs under windows to autocomplete paths in shell buffers using "\" instead of "/"? I use emacs on windows 7, when calling M-x shell, emacs opens a DOS-Shell. ...
2
votes
0answers
343 views

loop curl could not resolve host

I've had working script, which suddenly doesn't works. It contains something like this: while read url; do curl $url done < links links file: http://duckduckgo.com http://google.com And I ...
2
votes
0answers
148 views

Bash: color prompt and command differently from output stream

I'd like to color the prompt and command of my shell differently from the text printed in the output stream. My current export for PS1 is as follows: export PS1="\e[0;36m\h:\e[m ...
2
votes
0answers
152 views

Dummies guide to mailutils

As a prelude to learning more about postfix and dovecot (as a pure hobbyist) I'm trying to understand the mailutils package. I'm using Davmail so I have the server set up at localhost and my ...
2
votes
0answers
63 views

Set timeout on zsh autocompletion

I like ZSH's autocompletion feature, but often it hangs my terminal. I'd like to set timeout on autocompletion so it cancels (kills) itself after n miliseconds.
2
votes
0answers
916 views

Grub: Legacy 'ask' parameter no longer supported

I'm trying to change the resolution on my base shell (the Ctrl+Alt+1) shell in Debian so that it supports my ViewSonic monitor. The shell appears really fuzzy when it is displayed on my lcd monitor, ...
2
votes
0answers
82 views

Something is changing the OSX default shell to tcsh

On one of the mac machines I'm somewhat responsible for (Snow Leopard), something periodically changes the default login shell from bash to tcsh. This seems like it's probably suspicious, but not ...
1
vote
0answers
15 views

Better line breaking in terminal?

I am not sure if my request is valid, doable or better than the default option, but I'll give it a shot anyway. Word-wrapping in a terminal usually bothers me, since it wraps in the middle of the ...
1
vote
0answers
31 views

Recursive search occurs instead of last command when using up arrow.

I'm using an internal product "shell" based on spring shell. When I press the up arrow to get my last command, instead I get (reverse-i-search)`': Retrieving the last command works for all my ...
1
vote
0answers
17 views

How do I get a proper subshell in mc's mcedit?

I can use the shell from mc when pressing Ctrl+O and when using Debian, I can also use that shortcut from mcedit. However, in Ubuntu, this will only show the shell but I cannot enter anything.
1
vote
0answers
44 views

Terminal's bin/bash not responding

I have Googled through several instances of this issue but cannot get Terminal to open up with bash. I restarted the program, the computer and even logged in through another Administrator account but ...
1
vote
0answers
241 views

find command with exec sh doesn't work in shell script but in commandline (raspberrypi)

I want to find "old" folders in /volume1/photo/ipcam which are named like "????-??-??" and move corresponding folders within dropbox (with the same directory structure /ipcam/...) to the subfolder ...
1
vote
0answers
52 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
44 views

Windows 3.11 maximized shell window in SYSTEM.INI

I use a way to run 16-bit applications by running them in emulated Windows 3.11 in DOSBox. I automatically mount the directory containing the application, set the SHELL property in SYSTEM.INI to the ...
1
vote
0answers
138 views

Adding a new (hidden) “Delete” Context Menu item to Windows 7

I would like to add a new "Delete" context menu item such that I can delete large amounts of files and folders with a single right click without using explorer because of how slow it is. I have ...
1
vote
0answers
46 views

In the Open Firmware shell, how do I get output from ls to not scroll off the screen?

I'm working on a PowerPC-based Macintosh G4. In the Open Firmware shell, I'm using the ls command to show the device tree, but part of the information I need is toward the top of the tree, and scrolls ...
1
vote
0answers
117 views

Error while remount a partition read only

I have a rooted HTC and need to create a custom file in /system/xbin. I execute a mount command (for read-write permission on /system), create the file, remount /system in readonly and after that my ...
1
vote
0answers
190 views

Using the msysgit shell in Emacs for windows

I am relativley new to Emacs and am trying to setup emacs, to allow the following command to open the msysgit shell. M-x bash-shell I have added following snippet to my init.el. (defun bash-shell ...
1
vote
0answers
192 views

Shell on my Vagrant box is slower than it should be

The shell on my vagrant box is incredibly slow, atleast at some things. For instance, if I press enter with nothing typed in, it takes about 3-5 seconds for it to be ready to take another command. ...
1
vote
0answers
48 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
77 views

Record the sound of a program to the microphone

I want to record the sound of a program and to direct it as an microphone entry on linux. For instance, I'm listening a music on youtube, and I want that music to be send to my skype's conversation ...
1
vote
0answers
133 views

Mac: Run screen command from launchctl

I have a Python script that I would like to run on a Mac at system start up in a detached screen session. The Python File (foo.py): import time import datetime while True: print 'hello', ...
1
vote
0answers
156 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
313 views

Sending number over serial to arduino sending something different?

I have an arduino setup that turns on a light when it receives a 1, and turns off a light when it receives a 0. I don't think there is anything wrong with the code. I can send the Arduino a 1 with ...
1
vote
0answers
19 views

Possible to determine what shell extensions are slowing down Windows?

Other than systematically disabling/enabling shell extensions, piece by piece -- Is there a way to measurably determine if/what shell extensions are bogging down the right-clicking of files/folders ...
1
vote
0answers
61 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
137 views

I am getting this error “Insecure world writable dir /Volumes/BOOTCAMP in path, mode 040777”

I tried the answer sudo chmod go-w in my /Volumes/BOOTCAMP but I'm still getting the warning It says Insecure world writable dir /Volumes/BOOTCAMP in PATH, mode 040777 and when I echo $PATH I get ...
1
vote
0answers
103 views

Shell command to find width of a text rendered with some font

I need to find the width, in pixels, of a string displayed with some font. I know that I can do: dzen2-textwidth \ -adobe-times-medium-r-normal--8-80-75-75-p-44-iso8859-1 \ "A Tale of Two ...
1
vote
0answers
53 views

Shell completion of pdflatex

I have a central installation of TeXlive and noticed that any Linux machine I mount it to will automatically know that pdflatex can only be tab-completed with .tex files. On the other hand, there's ...
1
vote
0answers
68 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
985 views

Close a specific Chrome tab in Ubuntu/Linux using terminal command

Is there a way to close a specific Chrome tab with a terminal command? I tried below commands: kill -9 <pid of Chrome tab>: Instead of closing a tab, it kills the tab ("He's dead Jim" message ...
1
vote
0answers
265 views

zsh - prompt redraw after executing command

I just started using zsh and I'm configuring a few things. I've chosen the vi bindings as I'm more familiar with those. As many people before me, I soon found it would be useful to have some visual ...
1
vote
0answers
38 views

Selectively “pass” commands onto the shell/program if certain programs are running

Is there a way for tmux to "pass" its control commands (C-A x) to the program running in the pane if a certain program is indeed running?
1
vote
0answers
83 views

Why is there a long delay when using `nohup` on Linode

I have a shell script like: for((i=1;i<500;i++)) do python get_sequence.py done I want to run it on a Linode VPS. It would take a few days to run, so I'm going to use nohup ./run.sh &, so ...
1
vote
0answers
113 views

Windows cmd only uses Linux commands

I'm using Windows 7 and for some weeks I can't use Windows commands (e.g. taskkill) anymore but Linux commands (e.g. ls, kill, ps,...) instead. The problem seems to be that it is not using my PATH ...
1
vote
0answers
28 views

Looking for Primos “name generation” code

Does anyone remember Primos? It had a shell-level thing called name generation which was very useful. For example, to rename a bunch of files from part1.suffix to part1.new.suffix2 you could say: ...
1
vote
0answers
45 views

what are commands for tc shaping,queueing and scheduling?

I have 3 virtual machines and i fixed them as a team and in 1 local host now they can ping each other and see each other now how can I write a command to see shaping using traffic controller (tc)? is ...
1
vote
0answers
397 views

How to run a SQL select query in Oracle database through a shell script?

I need to run a SQL select query in an Oracle database and have to capture the list of retrieved records in a shell script. Also I would like to modify the query for certain conditions and need to ...
1
vote
0answers
271 views

Getting complement of two text files on the Unix command line

Is there a fast Unix-based utility (ideally written in C) for getting efficient, streaming intersection/union of tab-delimited text files? For example, allow queries such as "give me the all the ...
1
vote
0answers
207 views

Using lynx/links/elinks to correctly display a websites Cyrillic characters

Been struggling finding an answer on this topic for a few days now, I"m just curious as to how one would go about forcing either the shell (putty) iself, or the text-browser links to output Cyrillic ...
1
vote
0answers
87 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
14 views

Automaticly run xinit from rc.local as different user

I'm working on some tuning of my raspberry pi b+. So I decided that midori should start automaticly after autologin. With startx it works without problems, but X is still to ressource hungry. So I'll ...
0
votes
0answers
7 views

cygwin programs returning errorcode -1073741819 Windows 7 cmd

Sometime in the last week or so none of my cygwin programs are running from the cmd shell of Windows 7 64-bit. Tried rebooting and reinstalling fresh, but with same results. After further analysis, ...
0
votes
0answers
11 views

How to batch download wikipedia pages as pdf?

I have a list of wikipedia pages that I'd like to keep updated in pdf format. What would be the easiest way to do this? The ideal workflow for me would be something that I can put into a shell or ...
0
votes
0answers
20 views

how to detect availability of GUI

For Linux: I have a text mode installation (bash) script and a graphical mode setup program (a Free Pascal binary). I'd like to run the graphical setup when a GUI is available. How do I detect which ...
0
votes
0answers
19 views

ffmpeg - how to see what scaling algorithm is used

I'm upscaling a 200x200 video to 400x400 using the -sws_flags scaling option to set the scaling algorithm. Now, I can't tell by the console output if some algorithm was used, neither by the looks of ...
0
votes
0answers
6 views

Different low uplink machines hold the same data, how to speed up rsync to machine with faster connection?

Two different machines hold the same data (10G+), both with relatively slow upload. I want to transfer the data to a machine that can receive with a much faster speed. Now to speed up transfer of ...
0
votes
0answers
16 views

path setting appears twice in env output

After an OS version upgrade I have the following strange problem: % port MacPorts 2.3.1 ... % sudo -i # port MacPorts 2.3.1 % sudo port sudo: port: command not found Furthermore, if I do it all ...