Questions tagged as 'linux'

2
answers

Run script using system variable

I have a simple script in bash : #!/bin/bash echo "Hello world" And he executed it on my console with a simple: user@host: $ sh script.sh Hello World That said, I would like to execute the above ( sh script.sh ) by means o...
asked by 23.11.2016 / 02:28
1
answer

How to limit the bandwidth in ftp account in a ubuntu web server

Hello friends, sorry in my web server linux in ubuntu as I could limit the width to ftp accounts of my clients I was investigating but none of them works for me, how could I limit the upload, because I need this? and speed needed for your accoun...
asked by 09.10.2016 / 01:58
1
answer

PROBLEM WITH GCM IN LINUX

When I run a jar that I use to send a pushin using GCM in WINDOWS, I have no problems but when I run my jar in LINUX I get the following error:    1 [main] MAIN ERROR - IO Exception java.net.ConnectException: Expired   the connection time    ...
asked by 20.05.2016 / 16:09
2
answers

PHP Fatal Error: Class "Controller" not found

I'm trying to run a PHP script on the Linux command line with: php -f ClienteController.php and I get this error in the command line: PHP Fatal Error: Class 'Controller' not found in (__directorio__) The ClientController code: <?p...
asked by 01.08.2018 / 15:37
1
answer

how can I capture in an array the text of a line from a txt file? in the shell

I want to capture the text of each line of a text file example text Finally, I indicate that if we invoke the command without counting options (count lines, words, etc), the command will directly return four columns: the count of words, lines...
asked by 02.08.2018 / 21:20
1
answer

Error: std :: out_of_range

I'm having this problem, the program compiles and links, but at the time of executing I throw this bug, if someone could give me a hand.    ~ / Projects / Queue using vector # ./main terminate called   after throwing an instance of 'std :: ou...
asked by 09.07.2018 / 20:12
1
answer

save in variable values of grabc

How can I save the RGB values of grabc in variables? grabc -rgb or this other code: xwd -root -silent | convert xwd:- -depth 8 -crop "1x1+$X+$Y" txt:- | grep -om1 '#\w\+'     
asked by 24.07.2018 / 05:27
1
answer

Get percentage of use of RAM and DISK in Linux

Basically I would like to know the command in linux to get "ONLY THE PERCENTAGE OF USE" of RAM and DISK. I emphasize "ONLY THE PERCENTAGE" because I would like to save this value in a String without first doing any treatment. I would greatly...
asked by 10.05.2018 / 00:56
1
answer

oracle 18c on Ubuntu16

I'm trying to install Oracle 18c on Ubuntu Server 16 When it reaches a point in the installation, it throws the error: "Failed to call destination install" There is documentation on how to install Oracle 12c in Ubuntu as: Tutorial in 12c Bu...
asked by 31.10.2018 / 18:48
1
answer

Absolute path md5sum

#!/bin/bash comprobacion () { fichero=$1; #La variable a almacena el valor actual del checksum a=$(ls -p $fichero | grep -v / | grep -v Script_Md| xargs md5sum); #La variable b almacena el contenido de...
asked by 08.05.2018 / 16:49