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
12 views

Wrap git's shell script to add bashrc or equivalent start-up commands

My server has a git user that handles all git access. You can't log in with it. It's only for git access. That works because GIT comes with a handly shell /usr/bin/git-shell. Login feedback: fatal: ...
3
votes
0answers
199 views

How to open a local file with a query string appended to it in the default browser?

I want to do something like this from a shell script: $ open 'foo.html?foo=bar' Sadly that fails, as it looks for a file named foo.html?foo=bar instead of foo.html before opening the browser: The ...
3
votes
0answers
3k 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 ...
3
votes
0answers
442 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 ...
3
votes
0answers
1k 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
46 views

Color coded 'ls' under ssh connection from Mac to SunOS server (tcsh shell)

I'm on a Mac under OSX. I ssh into a remote server which is running SunOS. The default shell under the remote server is tcsh, not bash. How can I set the ls to generate color coded output as I have ...
2
votes
0answers
85 views

Force Ubuntu user to use specific shell

After years of reading helpful questions/answers on superuser, today it's my turn. I'm playing around with "lshell", a linux shell written in python (lshell on github) which gives the opportunity to ...
2
votes
0answers
126 views

Prevent ARP spoofing in AP, “wl deauthenticate” command

I am in a situation where I cannot do MAC filtering in an AP and I need to block a user that is ARP spoofing the network. I am trying to use the command wl deauthenticate to kick the client. And I ...
2
votes
0answers
79 views

OSX - Custom lockscreen incorrect password script

As you probably know, in Mac OS X you can enable a lock screen when waking from sleep, where the user enters their password. I am looking for a way of running an Automator.app workflow when an ...
2
votes
0answers
34 views

Can one start shell from save file dialog

Using ubuntu. If one tries to print to a file, the save dialog opens. Is there a way one can execute the shell (or terminal) from the save file dialog file name entry box?
2
votes
0answers
414 views

How to change default shell for a network user?

I am working with Ubuntu and I would like to change my default shell to z shell. I cannot use the chsh -s /bin/zsh or chsh-s /bin/sh myuser command since my user name does not exist in /etc/passwd and ...
2
votes
0answers
327 views

Shell unbuffering for CygWin: is it possible?

I have tested on CygWin doing "ls -R" with a large directory and sending the output to a Test.txt file, so the process takes about 30 seconds to complete; the file is created, but it is empty; it will ...
2
votes
0answers
319 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 ...
2
votes
0answers
132 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
520 views

tmux in zsh with vi mode, toggle cursor shape between normal and insert mode

(note: I wrote this question on stackoverflow, but got flagged as offtopic, so I'm re-writing it here) Here's what I want: Consistent behavior (as much as possible) between Vim, MacVim, zsh with vi-...
2
votes
0answers
541 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 (...
2
votes
0answers
550 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
253 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 mailutils....
2
votes
0answers
643 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 ...
2
votes
0answers
89 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 ...
2
votes
0answers
627 views

“Error: AudioQueueStart failed” when running afplay repeatedly

Every time a run in Terminal the command: while :; do afplay "/Users/username/Library/Application Support/Nada/Bell.aif"; sleep 10; done I get the expected result, but after a while the ...
1
vote
0answers
23 views

Create tmux session in seperate shells

I'd like to use tmux sessions to manage windows / panes in different shells. What I've noticed is that tmux will always use the shell from which it was first launched for all subsequent sessions ...
1
vote
0answers
22 views

What is the difference between ulimit -r and -e?

What is the real-time scheduling priority mean (ulimit -e) ,and how to use it ? -r The maximum real-time scheduling priority -e The maximum scheduling priority ("nice")
1
vote
0answers
37 views

Get desktop shell access by wired connection from Raspberry Pi

Today I asked my self if this was possible: Connect a Raspberry Pi to a desktop PC (Ideally to the motherboard, so that the Pi can be hidden inside the case) and then connect he Pi the the Internet ...
1
vote
0answers
39 views

Purpose of function export in bash

If we take a look at the following example: # testing(){ echo hello;} # testing hello # echo $(testing) hello # echo testing >script # ./script ./script: line 1: testing: command not found # ...
1
vote
0answers
20 views

How do I launch/use Cygwin as the shell for TortoiseHg?

In the settings for TortoiseHg, there is an option to select what shell you would like to use. The two defaults listed are, as you might expect, "windows_command_prompt" and "powershell" but I would ...
1
vote
0answers
14 views

Starting Scripts Using SSH

Case 1: ./Myscript.sh param (on a first node) Another node: (In parallel i run the same script) ./Myscript.sh param (on a second node) Case2: From my host, using ssh: for i in $(seq $...
1
vote
0answers
46 views

Colon(:) operator in Unix shell

As far as colon is concerned i understand that is is used in certain situations as a null and as a parameter of expansion for substring, but can someone explain me this: do_qc: $(STAGE1_OUT_FILES) ...
1
vote
0answers
39 views

inotify does run twice

I wanted to write a script that triggers some code when a file gets changed (meaning the content changes or the file gets overwritten by file with the same name) in a specific directory (or in a ...
1
vote
0answers
30 views

How to stop output from AT command in a shell line

I have this issue. I try to get output from AT command from my modem, using Linux. I get the output, but I don't know how to stop the output. The line is some like this: echo -e 'AT+CGMI' > /dev/...
1
vote
0answers
60 views

Why can I access the internet in a browser but not the terminal?

I can browse the internet using Chrome and Safari, but when I use the terminal, I can not. When I try to ssh in the terminal, I get "request timed out" and when I try to ping I get "3 packets ...
1
vote
0answers
76 views

How to restrict user's ssh to non-terminal access without changing /etc/passwd?

I have a user on my Linux system that is only allowed to use SSH to scp, sftp and rsync, but not allowed to have a shell session in a SSH session. I want to know a secure way to setup the restriction. ...
1
vote
0answers
24 views

List of links that will be taken without a proxy in linux

How can I add a list of links that will be taken without a proxy in linux or another shell programm (etc. proxychains)? I need it to exclude the download proxy .avi files proxychains firefox
1
vote
0answers
363 views

Merge xml files using Linux shell scripting

I have 2 files named file1.xml and file2.xml respectively. The contents of the files are: file1.xml: <EJB:Service> <EJB:ServiceId>123</EJB:ServiceId> <EJB:ServiceName&...
1
vote
0answers
35 views

make environment variable available inside cmd script in windows

I am running a script like below, but the environment variable path does not contain C:\tmp inside script.cmd, how to make it available? Os is windows. cmd.exe /c "set path=%path%;C:\tmp && ...
1
vote
0answers
53 views

How can I show the output of a shell command in a gnome panel or the top menu bar?

The top bar in a classic gnome desktop shows menus (top left), then some freely configurable panel space, and on the top right a somewhat configurable panel space with system status icons, date/time, ...
1
vote
0answers
43 views

How to read contents of ATSAM3X8E chip on Arduino Due Board in Mac OS X

I have two Arduino Due boards with some programming that has since been lost. I need to back up the contents before replacing the program. I’ve been playing around with another Arduino Due before I ...
1
vote
0answers
147 views

How to set output of terminal to external VGA display

I have laptop with broken screen and external monitor that i can connect to laptop via VGA port. Is there any way how to set output of shell(I have no GUI on installed debian) to VGA monitor? I can ...
1
vote
0answers
22 views

Terminal reset troubles

According to the MinGW setup program, I have the bash shell installed. When I attempt to issue a reset, I get: sh: reset: command not found Bash responds to the reset command in every other ...
1
vote
0answers
82 views

RVM is not a function message when using fish shell

I'm trying to use rvm from within the fish shell rvm gemset use rails3 I'm getting the following error message from fish RVM is not a function, selecting rubies with 'rvm use ...' will not work. ...
1
vote
0answers
448 views

Shell Commands not working : REDHAT

I added some service to the startup script and then after reboot , i got this message- 24 package(s) needed for security, out of 52 available Run "sudo yum update" to apply all updates. -bash: id: ...
1
vote
0answers
104 views

How do I start the taskbar after changing the “shell” registry key that runs at login

So, I have made a version of windows that looks like it isn't running windows (no logos or common windows tropes), so that it looks like it is only the software I choose that is running, sort of like ...
1
vote
0answers
55 views

Including a fallback in default shell

I have an account on a network, and my shell is set to zsh, but when I log onto a computer that doesn't have zsh installed on it, a terminal I launch tries to run zsh and fails, so I get an empty ...
1
vote
0answers
42 views

How does OS X's Terminal pass the new tab's dir to login or bash?

In OS X, you can add a shell to /etc/shells and set it as a user's default shell, such that when they open the terminal they are presented with that shell. In addition, you have the option to open all ...
1
vote
0answers
58 views

monitor command outputs in separate windows within a terminal

For a list of input text, I want to execute a repetitive command using each element from the list. In addition I also need to monitor the results of each of these commands in parallel. So I am looking ...
1
vote
0answers
131 views

How to show git branch in Emacs shell

How can I show the current git branch as part of the Emacs shell prompt? For example, I have this in my ~/.bash_profile (I'm on Mac OSX 10.9 Terminal): parse_git_branch() { git branch 2> /dev/...
1
vote
0answers
128 views

Triggering KDE's “Attach as tab to” feature from a shell script

I very much like the possibility to attach any window to any other one as a tab in KDE. Particularly, as part of my workflow, I often have a Dolphin (file manager) window attached to a Konsole (shell ...
1
vote
0answers
197 views

UEFI shell mode with no colon key

I have a newly built PC with a UEFI-enabled motherboard and I'm having trouble getting my DVD drive to boot into UEFI mode so I opted to boot into UEFI Shell to manually start the DVD in UEFI mode. ...
1
vote
0answers
23 views

Showing context menu option if extension is not .aent

I have made an application that can basically encrypt anything, I have added a registry entry in HKEY_CLASSES_ROOT/*/shell/ so that it's shown whenever one right clicks a file. but I don't want to ...
1
vote
0answers
26 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 ...