Questions tagged as 'script'

2
answers

Bash script in which you enter numerical value and execute with that value

I have this little script in Bash to raise or lower the brightness of my laptop: #!/bin/bash clear sudo tee /sys/class/backlight/radeon_bl0/brightness <<< 10 In which "10" is the numerical value to change. My question is: How do...
asked by 20.08.2017 / 06:02
1
answer

Create MySQL database from script in bash ubuntu 16.04

I would like to create a database using a script that I already have, in MySQL from the bash of ubuntu 16.04, the script is the following -- Creamos la tabla si esta no existe CREATE DATABASE IF NOT EXISTS platzi; -- Indicamos que trabajaremo...
asked by 25.02.2018 / 18:06
1
answer

Query with sed bash script string

I have the following example: cat test.txt Showing the following:    juan maria juan maria juan maria maria juan maria juan maria juan   roberto roberto roberto roberto roberto roberto To separate 2 from 2 each chain I do it using...
asked by 10.11.2018 / 13:21
1
answer

Clone bulk git repositories

Is there a script that allows me to clone more than 100 git repositories at the same time? For example: https://github.com/Geovation/wifispy/ https://github.com/wlanslovenija/wireless-info https://github.com/stef/wireless-radar/ https://github...
asked by 16.10.2018 / 13:01
2
answers

Error when trying to insert an insert into MySQL

I'm doing a procedure in which I create a temporary table and fill it with the result of a query, or at least that's what I'm trying to do. I have the following script: CREATE TEMPORARY table tblTemporal( id bigint AUTO_INCREMENT PRIMARY KE...
asked by 21.07.2018 / 18:41
1
answer

Validate Text only and JavaScript point

I'm using the Fancygrid.com Framework, and I need to validate in a Field to accept only texts and period, I'll explain. I have a field called user and the structure is: juan.cruz As you can see the field validation must accept letters and th...
asked by 28.03.2018 / 18:19
2
answers

Help with clipboard.js and td cells / td

I have a dilemma with clipboard.js What happens is that I have a couple of cells which I would like to click on the field of the cell is copied to the clipboard. As a test, I did the following: <script src="https://cdn.rawgit.com/zenor...
asked by 20.12.2017 / 02:26
1
answer

Problem when selecting elements within other elements with JQuery

I have a checklist that is dynamically armed with Jqurey according to a previous selection, so at times I can have 3 checks or 6 according to the profile of the user that I am going to edit. I try to make the checks fill with the informa...
asked by 10.12.2018 / 19:22
1
answer

error log in bash

I would like to know how I can create a log or have control of the data that is updated or not in this bash script I read a csv and send the data with CURL and the .sh works correctly now I would like to generate a log of errors or have a messag...
asked by 15.11.2018 / 22:04
1
answer

problems when running a shell script, problems in the "if"

Hello, I went to run a shell script in the terminal but I get an error as if I could not accept the condition in the first one (I already gave him the permissions) the exercise says the following: Build a Shell Script called lartc.sh that all...
asked by 27.10.2018 / 22:25