Questions tagged as 'script'

1
answer

Update with JOIN in MySQL

I'm making an update to table A which will receive values from Table B as a.codigo = B.folha When running the routine below, it is slow and nothing happens for a long time. There are 500,000 lines. It's normal or I have to wait or the...
asked by 02.02.2015 / 06:02
1
answer

How to pass vector as argument in shell script?

I would like to pass a JSON-style vector as an argument to a script. Example: #!/bin/bash vetor[]=$1 echo ${vetor[*]} i=0 for nomes in ${vetor[*]} do i=$(($i+1)) echo "Nome $i é $nomes"...
asked by 04.09.2018 / 16:48
1
answer

Doubt about shell script

I'm studying linux, and it's my first contact with the shell script, the documentation I wanted to do is: #!/bin/bash if [ uname - m = "x86_64" ]; then echo "sua versão é de 64bits" else echo "sua versão é de 32bits" fi I tried to use...
asked by 01.09.2018 / 21:52
1
answer

Dynamic Combobox

I have these two selects: <td> <strong><label for="Valência">Valência</label></strong> <select id="Valencia" name="Valencia" style="width:150px"> <option></option>...
asked by 02.08.2018 / 04:00
1
answer

Erase an executable file (.exe) after finishing without knowing its location?

The bat file has been converted into an executable. The del "%~f0" command does not work! Will it be necessary to finish running the executable first taskkill /f "nome_do_executável.exe" and then delete it? Question: - How to l...
asked by 03.04.2018 / 15:30
1
answer

Shell command

I need to copy the last file created in a directory to another via ssh . I am using the following command: ssh -oStrictHostKeyChecking=no user@IP "cd /home/user/backup_database/hour/; cp "'ls -1trap | grep -v '/$' | tail -n 1'" ~/"...
asked by 19.01.2018 / 15:14
1
answer

Script for Telnet

How to create a script with pre-set commands for Telnet? In the company where I work, we use Telnet daily to configure ONUs, however, because we do not have a programming team, it is a very manual and repetitive task, because we always give the...
asked by 21.12.2017 / 22:34
1
answer

"Play / Pause" button - How to restart playback?

I made a simple "play / pause" button for audio, with the following script: <audio id="myAudio" src="http://www.sousound.com/music/healing/healing_01.mp3"preload="auto"> </audio> <script type="text/javascript" charset=...
asked by 29.11.2017 / 13:29
1
answer

Script to show capital of selected state?

Well, I wanted it when I selected a certain state, to display an alert informing the capital of it. Thanks in advance. <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Exercício</title&...
asked by 12.04.2017 / 01:55
1
answer

VBScript compile error when executing bat file for email sending

The error is described in the image. Can someone tell me the reason? I've tried to save the file with encoded ANSI but it still does not give. Set objMail = CreateObject("CDO.Message") Set objConf = CreateObject("CDO.Configu...
asked by 27.10.2016 / 10:58