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

learn more… | top users | synonyms

0
votes
0answers
15 views

how uninstall video card driver(integrated) in linux with shell command

Here is my problem: I was trying to update a new video card driver for my computer's Intel integrated display card, but the command " modprobe -r " return module is in use. I try to disable the ...
1
vote
1answer
33 views

Surpress execution trace for echo command?

I'm running shell scripts from Jenkins, which kicks off shell scripts with the shebang options #!/bin/sh -ex. According to Bash Shebang for dummies?, -x, "causes the shell to print an execution ...
0
votes
1answer
12 views

How to send process in background which has not started from shell?

I know how to send process to background and foreground which has started through shell using bg and fg commands. How can I send process which has started by clicking icons or menu? like I open ...
1
vote
1answer
21 views

How can I run `M-x compile` under a particular shell in emacs?

I've a piece of software that can only be compiled under my-weird-sh. I like to use some-better-sh in my day-to-day work, so that is my login shell (via chsh). This changes the shell in Emacs to ...
2
votes
1answer
48 views

What does this zsh for syntax mean?

I working on source controlling my dotfiles and a lof of what I'm doing is based off of Zach Holman's dotfiles. I want to source all zsh files like he does in his files but before I just throw the ...
0
votes
1answer
318 views

OneDrive Subfolder Icons Keep Resetting

I'm having a frustrating time with my OneDrive client where, when I customize the shell icons for subfolders inside my cloud drive, it resets the icon to default upon synchronization. As frivolous as ...
0
votes
1answer
30 views

including timestamp in file name

I tried to create a file like this to put a timestamp in the file name vim Customer1-$(date).txt The result was Customer1-Sat.txt, however, I wanted the full timestamp Sat 30 Aug 2014 09:41:27 PDT ...
0
votes
1answer
42 views

How do I make sure that bash (not tcsh) is used in Linux?

I have a bash script where I use ssh to connect to another server and run some commands there. I found some sites that the error (Warning: no access to tty (Bad file descriptor). Thus no job control ...
1
vote
1answer
24 views

What's the soonest I can send a signal to a background process (trap)?

I have a script from which I run a second script in a subshell. What's the soonest that can send a signal to the second script? script1: ./script2 & kill -SIGCONT $! script2: echo "~~ ENTRY" ...
1
vote
1answer
39 views

Shell, subshell, source, background process, PID == confusion

I am trying to get my mind straight as to how all these things are put together. For example with this script: #!/bin/bash . script1 ./script2 . script3 & ./script4 & sleep 5 How do the ...
0
votes
1answer
21 views

why following shell script function failing?

_exec() { CMD="$1" echo "Executing command: $CMD" EXEC_OUT=`$CMD` EXEC_RET=$? } _exec "hostname|cut -d\".\" -f1 " SHORT_NAME=$EXEC_OUT if [ $EXEC_RET -ne 0 ];then echo "Unable to ...
0
votes
1answer
59 views

How do I build a script shell to send cmd via telnet and log only results?

I would like to make a shell script that can call a range of IPs via telnet, to send a command, and write the result to a file.
0
votes
1answer
94 views

Monitor process start time, end time using shell script

I am working on project in which we execute shell script which invokes the Node process and further processing happens. I want to design a script which should log the start time, termination time of ...
0
votes
1answer
38 views

'dd' command on Damn Small Linux?

I looked at the package list of DSL, and I don't see 'dd'. For example I would like to restore /dev/sdb from an .img file like so: dd bs=1M if=/home/myname/image.img of=/dev/sdb What command do I ...
1
vote
0answers
19 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 ...
0
votes
1answer
36 views

Default prolog for all ZSH scripts?

I have a file that contains several helper functions, meant to be used only in other ZSH scripts. I do not want them to be loaded with my profile. To make these functions available in my script, I ...
0
votes
1answer
26 views

Weird output in my mac iTerm bash shell. How do I make it clean?

Setting up my bash and made some mistake. Here is my bash shell: android-c26f663baae722eb:~ okyretina$ I have used a clean .bash_profile and sourced it and the shell still have that weird ...
2
votes
1answer
101 views

Default shell for running scripts (w/o shebang) in macos?

I have ZSH as default shell in MacOS, everything is working fine. ZSH is installed as brew package, Ive set default shell in my account, new shell is listed in /etc/shells... everything is set, like ...
0
votes
0answers
83 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
25 views

cygwin programs returning errorcode -1073741819 on 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, ...
2
votes
3answers
74 views

Why is this sudo command try to run in /root?

I try to run a sudo command via SSH like this: ssh domain.com sudo -u user bash -c "cd /home/user/ && ls" (which is obiously just an example). I get back: /home/user/: line 0: cd: /root: ...
0
votes
1answer
27 views

How to get when run `top` command ports listed?

How to get when run top command ports listed ? I get info about process but I need port to see ( process dies very quickly , 0 seconds, and I cannot grep after ps aux ). Is possible to top command ...
0
votes
1answer
75 views

concurrent scheduled jobs and ora-27477

Need: To have Oracle kick off a shell script that performs processing on tables and data in the Oracle database. The script is instantiated by specific activity from web clients. Issue: Web clients ...
0
votes
2answers
55 views

is there anyway to get remote shell from windows to windows over WAN? [duplicate]

Is there any way to get remote shell (not RDP) from home PC to office PC? i have 2 pc's on 2 different places pc number one ip : 66.33.22.885 ( home PC ) pc number tow ip : 77.13.85.676 ( office PC ...
1
vote
2answers
58 views

SSH Connection refused wrong port

I want to connect to remote server through Ubuntu shell. I am using ssh root@serverIP in Ubuntu shell but I receive this msg: connect to host xxx.xxx.xx.xx port 22: Connection refused This IP is on ...
0
votes
0answers
22 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
5answers
58 views

History in bashrc on login vs manual sourcing - clearing and loading

I use a bunch of different aix machines at work and need to share users with co-workers. To make my life easier but not bother others with my customizations, I have created a .bashrc file that I copy ...
1
vote
1answer
32 views

Hide all output from a background process

I have a bunch of commands in my zshrc which invoke another command in the background. The background command is an alias to a text-to-speech program (I use it to give me audio cues when processes ...
0
votes
1answer
59 views

Memory usage of a process in a shell script

I want to find out the memory usage of a process in a shell script.I tried to use this piece of code : while[process] do if [ -e /proc/$pidno/statm ]; then m=`awk '{OFS="\t";print ...
1
vote
1answer
36 views

How to extract certain database from full Mysql dump?

I have regular backups of my mysql server.For convenience I set it up as a single Mysql nightly dump. Now I need to restore one of the databases from the dump. How do I restore a single database ...
1
vote
1answer
39 views

ZSH Cull Old Aliases

When I call alias in a zsh shell, I get a list of aliases. Some of them are desired, some are not. I originally created a .alias file in my home directory, and added source $HOME/.alias to my .zshrc. ...
0
votes
2answers
114 views

Linux zip and exclude directory in Bash script

I am trying to write a bash/shell script to zip up a specific folder and ignore certain sub-dirs in that folder. This is the folder I am trying to zip "sync_test5": My bash script generates an ...
2
votes
3answers
91 views

In a Linux shell, why does backslash-newline not introduce whitespace?

When using the Linux shell, I come across the following situation: $ A=B\ > C $ echo $A BC In my mind, when the newline encountering escape character, it can not be a CR character but it still ...
0
votes
0answers
36 views

Writing a secure login script

I'm trying to write a secure login script to allow a user to have limited access to a server and change particular options. My method for doing so is via a python script executed by the users ...
0
votes
0answers
23 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 ...
1
vote
4answers
94 views

How to get first line of output from command line?

I'm running a find command that's returning multiple results, but I only need the first result. A bit of googling led me to the "read" command, but I couldn't figure it out, and the man page didn't ...
0
votes
0answers
51 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 ...
1
vote
1answer
119 views

alias not working with my mongo --eval command

I have the following mongo shell command to delete all users that aren't admins mongo --eval 'db.users.remove({group:{$ne:"admin"}})' collection This works. I want to create an alias for this ...
0
votes
0answers
8 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
1answer
70 views

shellinabox - How can I restrict access to certain users only?

I've got a Ubuntu 14.04 machine which I've set up with shellinabox. Now I would like to restrict access to shellinabox to only a certain user account. Nobody else should be able to log in with it. ...
1
vote
2answers
67 views

Choose which binary is default binary on Mac OS X Mavericks

I have installed the latest SVN 1.8 via homebrew on my Mac. However now If I run svn --version I get back that I have 1.7. Next thinng I run which -a svn which then shows me I have it twice: ...
0
votes
1answer
33 views

How can I move a specific folder if there is a file with the same name in bash script?

I'm trying to write a shell script that finds a specific file and moves it to a folder. #!/bin/sh echo -n "/home/cosmoretro/movie/" read text2 while : do echo -n "Ara:" ...
0
votes
2answers
58 views

Renaming files from a list of filenames

I'm still very new to shell scripting so I'm sure this command is all kinds of wrong. I am trying to rename a folder of files to the names in a txt file. The precondition is that the filenames.txt and ...
1
vote
2answers
57 views

What is the meaning of “var=${str=expr}” in linux shell?

What is the meaning of "var=${str=expr}" in linux shell? Who can explain it for me specifically?
1
vote
0answers
19 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 ...
0
votes
1answer
32 views

compare 2 arrays eg. csv

i would like to know if it is possible to compare 2 list via shell. The setup: List "A" with about 6000 entries List "B" with about 300 entries Is it possible to detect wich are duplicate and wich ...
0
votes
0answers
29 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 ...
0
votes
2answers
69 views

Crazy terminal behavior

I am trying to run a script to rip all the audio from a bunch of MP4 files. Everything works when I do it line by line cutting and pasting from my text editor into terminal, but when I create a shell ...
5
votes
1answer
100 views

Why there is an empty line begin with “*” in the result of history command on linux?

Today at work, I wanna know a history command which I am not very familiar with and I was sure that I just executed a little while ago. However, when I ran history on the same terminal window, I found ...
0
votes
1answer
107 views

Tried Installing ZSH through cygwin and then trying to use zsh through Cmder

I tried to install Cygwin (64 bit version) on my computer, and it went through hunky-dory until at the very end, autorebase.bat failed with exit code 1. I read through the logs and they weren't too ...