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

Changing Colors of Directories in z/OS when using ls

Is it possible to have directories show up in different colors versus regular files when doing ls on z/os? I'm finding lots of suggestions for the many flavors of UNIX, but none seem to work on z/os. ...
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 ...
0
votes
0answers
24 views

Shell script using diff to compare the different files

I have five different files and all are in different directory, I want to check matching files and find out the unique files as well. I am not sure how should I handle this.
0
votes
2answers
56 views

How to POST file contents using cURL?

I want to do an HTTP POST of the contents (as a string) of a local file located at path/to/my-file.txt to a URL endpoint at http://example.com/. For example, I might want to do the following: ...
0
votes
0answers
12 views

How to fix Linux No Such device or address while trying to open /dev/sddlma1?

Using clonzilla I recently re imaged a HS21 blade. During boot I am receiving a "No such device or address white trying to open /dev/sddlma1" An error occurred the file system check Dropping you ...
0
votes
2answers
26 views

new column to a tab delimited file, with as predefined value

How can I add a new column to a tab delimited file, at the end of the file, containing the same values for each row. For example: infile.txt Name Age Address Sex X 12 adrs1 M Y 15 adrs2 ...
0
votes
1answer
25 views

OS-X download, “Add the following statements to your .profile file: ” EGSnrc download

I have nearly configured EGSnrc on my OS-X machine running el capitan The final step is the following.... The EGSnrc configuration for NAME is ALMOST complete ... EGSnrc requires various ...
1
vote
2answers
31 views

BASH script syntax check, track execution?

As a (Debian) Linux newbie I was wondering if there is a way to track the execution of a bash shell (.sh) script ? Like in Windows you trigger that with a echo on command in a batch file. My first ...
0
votes
0answers
34 views

When does %PATH% get expanded?

Ok so I'm pretty sure this question has been answered somewhere already, I'm just not able to find it within 30minutes. I have set some custom variables (system-wide) and added them to my system ...
0
votes
2answers
24 views

Script Shell Extract String

#! /bin/sh lineversion ="/tmp/g-9.n.gggg1000.fr-worker1.V.2.tar.bz2" My question: how can i extract g-9.n.gggg1000.fr-worker1.V.2 from $lineversion in another variable
1
vote
1answer
35 views

Difference between ampersand (&) before or after command arguments

I am a Windows user and I am using Cygwin as my terminal. In order to run notepad++ from terminal I have added this lines to ~/.bash_profile: npp () { /cygdrive/d/Notepad++/notepad++.exe ...
0
votes
1answer
49 views

arithmetic operation on a nested column in a tab delimited file

I have a tab-delimited text file containing Column1...Columnn columns and R1 to Rn rows. Within some of the columns, there are multiple nested fields with an identifier and then separated by semicolon ...
0
votes
2answers
56 views

simple arithmetic operations on a tab-delimited text file in shell script

I have a tab-delimited text file containing C1...Cn columns and R1 to Rn rows. Column 10 (C10) has a field 'X'=four comma separated integer values (X=a,b,c,d). I would like do a small arithmetic ...
0
votes
1answer
72 views

Why can't I load an EFI shell anywhere?

So I recently found out I had EFI instead of BIOS and went to experiment with different .efi programs to see which one I would want for full functionality. From 3 bootloaders I have used, I get the ...
2
votes
1answer
30 views

Why does this simple shell loop stall and start consuming massive amounts of memory?

A friend of mine known for inhumane treatment of machines wanted to stress their CPU, and so wrote a one-liner like this: for z in {1..100000000};do num1=$(($z * $z)) && echo $num1;done ...
1
vote
0answers
40 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) ...
2
votes
2answers
71 views

Add abbreviations in fish config

I would like to use the abbreviations feature of the fish shell, especially for the known bash variable !! or aliases to common git commands. I know that abbreviations can be added like in the ...
1
vote
2answers
27 views

What is % in Unix Shell

I am currently looking at a shell script which makes use of '%' sign. %.gtf.checked: %.gtf irap_check_gtf $(gtf_file_abspath) && touch $@ I am not being able to understand the use of ...
1
vote
0answers
28 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
26 views

I cant ssh into intel content access point from macbook terminal

I am trying to ssh into the intel content access point with ubuntu 12.4 installed on it from my macbook air, but i get the following errors: ssh: connect to host 192.168.88.1:22 port 22: Operation ...
0
votes
1answer
33 views

Passing unix shell (optional) text parameter without expansion

I want to write a unix/linux script updategit.sh with a default parameter to commit to git. updategit.sh should be POSIX compatible. I hope POSIX will solves some of worst incompatibilities of the ...
0
votes
1answer
38 views

How do I sort files by date in filename?

I have a set of filenames like this vorlesung 02.11.15.mp4 vorlesung 04.01.16.mp4 vorlesung 07.12.15.mp4 vorlesung 09.11.15.mp4 vorlesung 09.12.15.mp4 ... The last part of the file name is a date ...
3
votes
2answers
40 views

Linux Shell - Display system information in upper part of the screen

out of curiosity: Is there a way to display system information in the upper third of a linux shell that stays there and updates automatically? In my humble understanding this would maybe require ...
2
votes
0answers
36 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 ...
1
vote
1answer
40 views

Linux tar files within specific date range using filename date

I have files whose names begin with YYYYMMDD like the following: 20160221_143223_Report.csv 20160222_121223_Report.csv ... 20160229_141223_Report.csv 20160301_171223_Report.csv I want to ...
0
votes
0answers
18 views

Add an option to windows context menu (shell)

Some time ago Windows shell menu displayed an option "Edit in Adobe Dreamweaver" for some files extensions, like .html for example. I had removed Adobe CS5 from my PC to try the Adobe Creative Cloud, ...
54
votes
6answers
4k views

What is a simple way to let a command run for 5 minutes? [duplicate]

Is there an easy way to let a specific command (only terminable through Ctrl-C) run for 5 minutes automatically? For example: minute-command 5-minutes ping www.google.com or any other command that ...
0
votes
2answers
20 views

why do strings print differently in python shell then interpreter window?

new to programming and i am reading through a a couple intro to programming concepts using python books, and i am seeing a contradiction between the texts and what i am seeing in my python document. ...
-1
votes
1answer
30 views

drop database via bash with dash in database-name

I have a variable in a script with the list of folder names with dash in their names DBDIR="some directory" dbdash=`ls -l $DBDIR | egrep '^d' | grep '.-.' | awk '{print $9}'` And I want to drop ...
0
votes
1answer
26 views

basename command is outputting an 'enter' character along with the file name

I'am reading a text file line by line using while loop whose contents are directories and file names. I read the file names using basename command. I want to check if that file exists in a directory. ...
-1
votes
1answer
28 views

Shell Script output indentation

I want to call a shell-script / application inside another script. Every line of the contained script should be indented by 2 spaces. Is this possible? The output should look something like this. ...
4
votes
2answers
1k views

Why am I having / how can I fix this error: “shell_session_update: command not found”

Background I am getting into Ruby 2.x, and Rails 4.x, on a MacBook using OS X El Capitan (10.11.3), using the fish shell, employing the integration listed on this page: RVM - Fish Shell (Integration) ...
0
votes
0answers
45 views

EFI Shell: Volume is not mapped to filesystem

I got a MSI gaming 3 mainboard, SanDisk SSD 256GiB, Seagate HDD 1TB the mainboard automatically installed the efi shell v2.31 on my hdd /dev/sda1 after installing windows on the ssd and fedora on ...
3
votes
2answers
38 views

Periodically source shell profile

I'm a zsh user, but this should apply to any shell in theory. When I edit my .zshrc to add a new alias, I have to source ~/.zshrc in all of my open terminal tabs/windows to be able to use the new ...
0
votes
1answer
43 views

Automating Dialog

How can I, via a shell script, automate the dialog utility. For example: I want to be able to select the name I want. The dialog has no hot keys, so I need to be able to "read" the word under the ...
0
votes
0answers
29 views

aptitude's %t format option doesn't show archives of installed pkgs - why (bug)?

According to the aptitude user's manual (Section "Customizing how packages are displayed"), %t in a format string will display "the archive in which the package is found". Therefore, when I enter -- ...
1
vote
2answers
134 views

Run a shell script in background in Unix at specific time daily

I have a shell script task.sh that is needed to be run in background in Unix at specific time daily. I know nohup is useful to run the script in background. But worrying about how to schedule this ...
1
vote
1answer
49 views

Using shell (bash) to determine key for value from file

I am scripting some application deployment and deploy promotion processes using bash (shell). These scripts are being written as a failsafe in case our CI platform ever fails again (as it has ...
1
vote
1answer
57 views

Changing sh color in .bashrc

I'm trying to change the color of my shell which I connect to using Putty. When I type this export PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h:\w\$ ' I get exactly what I want. ...
3
votes
1answer
38 views

Script SSH Interactive Console that needs escaped chars

I would like to modify my existing SSH connection via a shell script. So if I run an existing script remotely I would like it to open a new port to be tunnelled. Interactively I can do this via: ...
0
votes
1answer
73 views

Batch for execute Putty, log on Server and run commands with shell script or txt [duplicate]

I need help for this process. I have a batch file to run Putty and log with ssh an server and will execute commands from file "commands.txt". C:\Programme\PuTTy\putty.exe -ssh user@server -pw 123456 ...
1
vote
1answer
29 views

files dissapear when I run mv command

I use the below command to move files: mv *.gz directoryname but directory name has spell mistake and the file with directory name has been generated with unknown format. And I lost my file. How ...
0
votes
1answer
24 views

Duration time between cycles in a log file

My apologies if this is too basic, but I have a log with this kind of information: Mai 5 12:34:00 xoengine XO[1287]: [Xo|xoengineMain.cpp:122|0xb88ec60] starting xoengine 4.0.1.2 (x86) from ...
2
votes
1answer
166 views

Execute commands using sudo in remote server after logging into PuTTY through batch file

I need to login into remote server daily and perform same set of tasks. I am using Windows platform and the remote server is Unix. I use PuTTY to login to remote server. To reduce the manual work, I ...
1
vote
1answer
60 views

How to change shell to custom shell?

So, I have made a little shell script in PHP with some basics functions (ls, cat, etc..) and I'd like to use it as my default shell. But since I don't want to do a mistake, I have some questions: If ...
0
votes
2answers
37 views

How to pass parameter in linux command at the end of the line

I would like to pass a parameter at the end of the line while I am giving a command in terminal. So I would like something like the example below find /path/to/directory -type f -exec grep -irl ...
0
votes
0answers
45 views

Vagrant shell provisioner does not respond

I am provisioning a VM through shell script in AWS using vagrant-aws plugin. VM gets launched and the shell script gets executed but I don't see any update on the shell prompt. It used to get updated ...
0
votes
1answer
43 views

Cannot execute ssh-ed osascript properly inside of shell script

I have created a ip-down script in my etc/ppp/ directory. Essentially I am trying to kill certain programs/servers when the VPN disconnects, then display a notification on another computer via ssh. I ...
0
votes
1answer
51 views

Can I install anything on this limited system?

My modem has a telnet port and when I login to that port I get a root shell in device. The commands are very limited but there is empty space in device. Can I install something like nmap to this ...
0
votes
1answer
40 views

Why doesn't cronjob execute feh command

I build a cronjob to download a new picture from a source every ten minutes and set it as wallpaper using feh. The file is downloaded but the wallpaper doesn't change. Where is the problem? crontab -e ...