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

Is there a shell which supports fuzzy completion as in Sublime Text?

I'm using bash and I was wondering if there is any plugin in bash or other shell which allows me to do this cat tfnislong.txt + [tab] completes to cat ThisFileNameIsSoLong.txt just like tab completion ...
3
votes
0answers
163 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
74 views

Echo string in tcsh with special characters escaped

Is it possible to echo out a string in tcsh such that it is fully escaped, as tcsh would understand? In the same way as printf %q works in bash: % # Create a variable containing a tab character % ...
2
votes
0answers
62 views

How can I restore Start Menu behaviour when clicking folders? (default shell)

I was experimenting with default open handlers for folders (to use an alternative file manager), so messing with HKEY_CLASSES_ROOT \ Folder, Drive and Directory I was able to change the default ...
2
votes
0answers
218 views

Messy output in zsh working in emacs M-x shell

I have changed my shell to oh-my-zsh, which is working great in iTerm. However when I open up my Emacs, M-x shell, I see it also changes to zsh, but the output from executing commands is messy: ➜ ...
2
votes
0answers
73 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
33 views
+50

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 ...
1
vote
0answers
25 views

Netstat doesn't work on FreeBSD by php function exec()

In my php-app I need list of all ip connected on 80 port. i've chose this way: <?php $ips = exec("netstat -an |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c", $info); ...
1
vote
0answers
56 views

error occur when i run awk command write in .sh file and run in cygwin terminal

i have cygwin terminal for run shell script(.sh ) file...it work good..but when i add awk command in shell script and then run Error occur /usr/bin/gawk.exe: error while loading shared libraries: ...
1
vote
0answers
43 views

repeat command until process start or timeout unix

Is there anyway to check the number of file in a directory, if the number of files is correct, say 5 files, zip the files with zip -r total.zip. If the number of files is wrong, wait 3 seconds, and ...
1
vote
0answers
65 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
32 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
27 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
91 views

zsh completion doesn't work under Cygwin for other drives

I'm on Win7 x64, Cygwin 1.7 and zsh (and using oh-my-zsh). Zsh newbie here. I've reviewed zsh autocompletion not working on cygwin and tried the solution there but no luck. My mount table: C: on ...
1
vote
0answers
80 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
39 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.
1
vote
0answers
447 views

Cygwin runtime errors (“couldn't allocate cygwin heap”)

I am getting following exceptions when I start running some commands in Cygwin. C:\cygwin\bin\bash.exe (4136): *** couldn't allocate cygwin heap, Win32 error 0, base 0x740000, top 0x755000, ...
1
vote
0answers
387 views

What is the meaning of “spawn” linux shell commands ? (Centos6)

I need to know how to setup a cron job that automatically connects to the remote server and change the directory and get all the files in that directory to local i think i have to use sftp but i saw ...
1
vote
0answers
135 views

rdiff-backup fails from shell script

I am trying to run a shell (sh) script for backups, using rdiff-backup. The lines of interest are: cmd="${prog} -v5 --print-statistics --include-globbing-filelist ${inclist} \ --exclude ** ${src} ...
1
vote
0answers
26 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
134 views

format stdout as multicolumn text

I'm trying to take some single column data and display it in a tty as columns, much like ls does. Basically, you can think of this as trying to take the output from ls -1 and make it look like the ...
1
vote
0answers
39 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
270 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
656 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, ...
1
vote
0answers
155 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
80 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
16 views

ImageMagick Script Error: ': No such file or directory @ error/blob.c/OpenBlob/2644

I am trying to run the following script in terminal: mogrify -resize 900x10000 *.JPG mogrify -resize 900x10000 *.jpg for f in *.JPG do echo "<tr><td><img ...
0
votes
0answers
15 views

How to Create One Installation Package from Multiple Debian Packages?

I have multiple Debian packages required to install Wine and Winetricks. I'd like to create a new package that will enable a user to click only once or twice (double click) and start a shell script ...
0
votes
0answers
18 views

Can not delete folder with svn control files created by other user

this problem happened on a SunOS I (not root user) want to delete a folder "def"(contains sub folder and files) created by other user, I have the full control of "def"'s parent folder(say "abc"), but ...
0
votes
0answers
18 views

autologin to root user with .cshrc

How do we cause login cshell to automatically execute sudo su - when a user first ssh into the linux box from Windows putty ? We tried putting this line sudo su - in .cshrc file but it is never ...
0
votes
0answers
20 views

how to avoid this tesseract error! Cancelled repeat of length 0 due to Joined

Cancelled repeat of length 0 due to Joined I am feeding thousands of jpg files into tesseract and for most of them it works fine, but sometimes tesseract gives the above error, and terminates my ...
0
votes
0answers
11 views

How can I use bindkey and zle in zsh to change a control key plus numbers to a variable string?

I use a set of shell scripts called SCM Breeze to give me an enhanced git status. It marks files in my git status with numbers that are set to variables, i.e. $e1, $e2, and $e3 can be used to ...
0
votes
0answers
21 views

Prevent emacs shell-mode to apply string-face to output lines containing a colon?

Inside shell buffers, lines not starting with a space and containing a colon character have the following text properties: face font-lock-string-face Does someone knows if there is ...
0
votes
0answers
53 views

How can I tell if OS X is connected to a VPN network from the command line?

How can I tell if OS X is connected to a VPN network from the command line? By running ifconfig without any arguments when I am connected, I see that there is a utun0 interface which appears to be ...
0
votes
0answers
64 views

Can not bring a background running vim to foreground?

If I have a vim running in the background, it seems that I can not bring it back to foreground. Do you have any idea, why?
0
votes
0answers
33 views

script on a remote machine that archive files fails

I have a simple script (Given below) on a machine that collect files from several folders into a single one and then archive it. The script works as expected on the remote machine. When I run it via ...
0
votes
0answers
44 views

when i was trying to do scan i got error using hping tool

my command is: root@ubuntu:~# hping3 ‐1 213.233.182.X ‐‐rand‐dest ‐I eth0 and i get this answer hping3: you must specify only one target host at a time but my friends get the answer by doing ...
0
votes
0answers
38 views

installed easy_install on pypy and python easy_install gone

I wgeted distribute_setup.py and ran it with pypy. now I have to easy_install, one for python2.7 and one for pypy. one in /usr/local/bin/easy_install works for pypy while the other one in ...
0
votes
0answers
23 views

Different behavior from ubuntu server and ubuntu client on windows

#!/bin/bash # Reading cat /home/radiare/Desktop/first.txt | while read LINE do echo $LINE if [ "$LINE" == "false" ]; then echo "Inside first loop" break fi done echo "second file read started" cat ...
0
votes
0answers
242 views

init.d script for OpenOffice / LibreOffice headless does not stop process

I am using Ubuntu and found this init.d script for LibreOffice headless. Problem is that it does not seem to be stopping the process when asked to "stop". Any help greatly appreciated. Two other ...
0
votes
0answers
79 views

How to enable autocompletion in Gnome 3 on Alt+F2?

Is there possibility to enable auto-completion on Tab as in shell for Alt+F2 RUN prompt? When I press Tab it does nothing. When I press Tab after "gno" it extends to "gnom". My distributive is ...
0
votes
0answers
197 views

Automation script to SCP from UNIX to Window Server

I'm new to server/Unix trying to transfer file between AIX to Windows I'm trying to create SCP or SFTP script that will run on cron and transfer text file on /usr/apps/11.111.1.11.log file to window ...
0
votes
0answers
42 views

Keyboard Maestro + Coda: Setting up project files

I want to automate some stuff inside Coda in creating template project directory. Basically what i want to achieve, when I type create my project basic inside coda, it will create a directory ...
0
votes
0answers
60 views

Running different programs via ssh

I got some problem when I tried to run different programs via SSH. The problem is, let's say I have 2 different java programs, then I would like to run them simultaneously on different JVM, in order ...
0
votes
0answers
20 views

Limite virtual cores to run java project on bash

I run my java project on Amazon servers. Each server has 2 virtual cores and 2 EC2 for each core. Can limit the number of virtual cores used? For example, i want to run with just 1 virtual cores and ...
0
votes
0answers
42 views

Switching to some emacs shell buffers moves the cursor to the beginning of the buffer

I run Emacs 24 with prelude and a few shells that i invoke at the start ( e.g.: (shell "*shell*_spare") ). When i switch to some of them (C-x b), my cursor lands at the beginning of the buffer, ...
0
votes
0answers
104 views

How to lock screen in linux before hibernating?

So when i hibernate my laptop the screen doesn't lock automatically. To solve this i've changed /etc/acpi/powerbtn.sh to contain: su - myUsername -c "gnome-screensaver-command -l" sudo pm-hibernate ...
0
votes
0answers
47 views

How do I stop a running program in VxWorks shell?

I'm accessing a router running VxWorks 5.4.2 using a serial terminal and I can't figure out how to stop a running program I've started from shell. For example ping seems to run indefinitely and usual ...
0
votes
0answers
195 views

terminal with custom command

I am using Linux Mint 13 (Mate). I have edited my mate-terminal profile using custom command as follows mate-terminal --full-screen By mistake i haven't set the default profile to load. So terminal ...
0
votes
0answers
92 views

Logout trouble with alternative shells (Win7 Home Premium x64)

I've tried bb4win and Litestep, and every time I need to log out for some reason (shutdown and all included), the system hangs and the spinning icon next to the "Logging out" text stops spinning. ...

1 2 3 4