Questions tagged as 'shell'

0
answers

Syntax Error

I'm trying to run one shell in parallel with another: # Consulta de Artefato def awsArti = "AWS_ACCESS_KEY_ID=${awsAccess} AWS_SECRET_ACCESS_KEY=${awsSecret} aws s3 ls ${awsRepo}hive-backend-messaging | cut -c 32-" # Shell (Obs. Estou tentand...
asked by 11.11.2018 / 14:54
1
answer

How to copy copy the largest file from folder to another using bash shell?

Within a directory with multiple subdirectories I can fetch all .py files, see only which ones have datetime, and show me only the largest of them. Using find, grep, ls and head, but when I try to copy the output of the head, in this case the la...
asked by 11.10.2018 / 15:16
0
answers

List print server printers installed from a remote station

Work in a company that has the following structure: Each city in my state has a head office with a server that is also a print server, the printers are located here. I use the Systernals psexec together with a command to install the printe...
asked by 06.09.2018 / 20:15
0
answers

MIB in Shell with Manager and Agent

Friends to doing a MIB, about 5 parts of the PC, the agent and manager, I started to do the MIB I will post the code, only it error when I call the Manager. hdSys OBJECT-TIPE SYNTAX Integer32 MAX-Access read-write STATUS-current DESCRIPTION "Q...
asked by 22.04.2018 / 23:42
1
answer

Shell in C: Segmentation error and execve function, what's wrong? [closed]

#include <sys/types.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <sys/wait.h> void type_prompt(){ printf("\n$~"); } void read_comman...
asked by 13.04.2018 / 17:52
0
answers

ssh - error connecting to 4linux

I have a problem with the ssh issue, I'm a beginner in linux and I'm taking a course in 4linux about the basics of Linux and etc ... I'm on the connect part in cloud via ssh. When I did it for the first time it worked out, except for the passwor...
asked by 29.03.2018 / 05:03
0
answers

Shell Script to automate the installation of programs in Linux

I've put some commands in a simple Shell Script to automate the installation of web site hosting, the basics of the basic: #!/bin/bash # O Script será automaticamente finalizado se encontrar erros set -euo pipefail IFS=$'\n\t' # Ubuntu 16.04...
asked by 23.03.2018 / 00:29
0
answers

Shell script extract extension and search only by name

Can anyone fix my script? The purpose of the script is to compare the input files with the files in the WASTE folder, the problem is that if the input file is teste1.txt it does not find the file teste1.tar.bz2 p> #!/bin/bash...
asked by 23.03.2018 / 14:17
1
answer

Add variable expect

I would like to create a script shell that connects to the CISCO controller to insert the macAddres clients, using expect >, I actually need to create a script to automate the process. Variables mac_description, description con...
asked by 27.03.2018 / 02:41
1
answer

Choose how many rows to display in the output

I'm trying to put a flag -n to be able to show in the output the number of lines wanted by the user, having until now only managed to show the line number next to it case "$1" in ## definir o pósprocessador -r) pp="shuf" ;;...
asked by 08.01.2018 / 22:27