Questions tagged as 'shell'

1
answer

How to make a pipe in your own shell?

I'm creating a UNIX and there was a question: How to pipe in your own ? The command in String is a table respP This is an idea but I have not managed to apply it: if(tube==1){ //printf("\n\n\n"); // En el caso de un pipe, m...
asked by 08.01.2016 / 17:13
1
answer

Execute network service at startup on RHEL Server 7

I am working with the RHEL 7 server (MAIPO), but I have the problem that when restarting it, the network does not automatically raise and I have to press the button to start the network from the GUI. I understand that what happens is that the...
asked by 10.04.2018 / 23:02
2
answers

View details Mongodb on Debian

I need a way to see the bd , collections, and MongoDb documents. Since I usually communicate with mongo using mongoose . I would like to know a direct way from the console to access the characteristics of a bd that y...
asked by 12.06.2017 / 04:23
1
answer

Implement & background in my own shell in C?

I'm trying to create my own shell in C, so far I've gotten it to do everything I need correctly but I'm looking for ways to implement the asynchronous synchronization of when you type & behind a statement or command (also called background),...
asked by 07.05.2017 / 16:24
4
answers

BASH - Renaming files

I have to rename the files ending in ".cpp" to ".cc". For this, I thought of the following code: #!/bin/bash route="." if [[ $# -eq 1 ]]; then route=$1 fi for file in $(find $route -name *.cpp) do newName=$(dirname $file)'/'$(basenam...
asked by 31.10.2016 / 20:30
2
answers

Obtain hours, minutes and seconds from the date of birth

I do not know if the format of this script is correct or not. I would like to know if I am on the right track and if you could help me in two parameters that I lack and I can not get out. Statement of the exercise: Ask the user date of birth,...
asked by 11.02.2018 / 18:35
2
answers

Use of scale in bash

I'm trying to print an associative vector with decimals on the screen but I can not find a way to do it: #!/bin/bash cantidades="cantidades.csv" line=20 declare -A sumaCantidad declade -A media declare -A numeroCantidades for i in 'seq 2 $lin...
asked by 24.10.2018 / 23:47
1
answer

How can I create a gif from the linux terminal?

I found the need to create an animated with a gif and after looking at different sites I found a command that is very good without needing to install tools only with the linux ternimal.     
asked by 26.09.2018 / 04:31
2
answers

Spaces in query SEARCH_ACTIONS Android

How do I add spaces to the query field with SEARCH_ACTION in android? Example: IT WORKS: adb shell am start -a com.google.android.gms.actions.SEARCH_ACTION -e query "enviar" <nombre_paquete> IT DOES NOT WORK adb shell am start -...
asked by 10.12.2018 / 20:28
1
answer

"UnicodeDecodeError" when starting the python shell on the Windows cmd

Good day, I have a problem when initializing the python shell in the Windows cmd, less than a day ago it worked perfectly, but suddenly, when I wanted to start the Python shell inside the Windows cmd with the command "python" ", it shows me the...
asked by 07.11.2018 / 17:59