Questions tagged as 'linux'

1
answer

Multiprocessing in Python

I'm creating processes using multiprocessing in Python, but I need to create processes inside other processes, that is, child processes. Is it possible to do this using multiprocessing ? Code: import time import multiprocessing...
asked by 05.10.2018 / 03:41
3
answers

Problem creating a .sh script to get into a directory

I'm creating a .sh script that the first step is to get into a directory. 1. #!/bin/bash cd /home/salariosbrasil/consulta-ninja #git pull pwd This directory exists and even cd does not work .. but your self test mkdir -p...
asked by 24.01.2017 / 20:40
2
answers

MySQL: Windows or Linux? [closed]

Which one performs best for dedicated server with MySQL considering several complex calculations in Stored Procedure and Functions?     
asked by 02.07.2015 / 22:04
1
answer

How to create a graph with two axes and with different scales in R?

I'm trying to plot a chart with 3 datasets. "Precipitation" and "Evapotranspiration" have high values (from 5 to 580) so it would use the same Y-scale (from the shale side) for both plotted data superimposed on line graph. The data of "Days with...
asked by 01.11.2017 / 14:16
2
answers

How to use sip debug in asterisk?

In Asterisk software, is it possible to debug a phone number only? without it being peer from my server? I know there are commands: sip set debug peer 1000 sip set debug ip 172.16.0.100 In a similar way to debug it is possible to...
asked by 01.02.2017 / 20:30
1
answer

List file excluding first letter

I have a file called 1arquivo and it usually clears it with the ls command. How can I use ls excluding the first letter so that it returns me only arquivo . It has to be a generic solution because I will have several files in...
asked by 30.11.2017 / 17:49
1
answer

How to list all files in the ".ts" format of folders and subfolders to be converted to ".avi"?

I found a shell script and modified it to meet my need and it looked like this: #!/bin/bash [ "$1" ] && cd "$1" ls -1 *.TS [ "$?" -ne 0 ] && echo 'Sem arquivos TS nesse diretório' && exit 0 for ARQUIVO in $(ls -1 *.TS)...
asked by 25.10.2016 / 22:37
1
answer

How to list the symbolic links of a folder in Linux?

I'm using a deploy tool in PHP. When I use the command, some symbolic links are created for certain folders. How do I run this command on a Linux server, I would like to know if there is any command to list all the symbolic links created...
asked by 06.06.2016 / 14:44
1
answer

Copy file cate and ls [closed]

Which other command copies what is inside the file in <> to the other file. cat < file1.txt > file2.txt - Is there any command that does this with pipe? And also ls –lsR | more is there any command that does...
asked by 08.04.2016 / 00:39
2
answers

script does not write to file

I am mounting a bash script as follows: #!/bin/bash destfile=/home/user/teste.txt array=($(ls 20151* |awk '{ print $9 }')) n=${array[@]} echo "$n" > "$destfile" However, when you run the script, the test.txt file is created, but empty....
asked by 12.01.2016 / 13:06