Most voted "script" questions
Scripts are "scripts" followed by computer systems and bring information that is processed and transformed into actions performed by a main program. Sounds complicated, but it’s not.
Learn more…372 questions
Sort by count of
-
1
votes1
answer107
viewsEncrypt password in groovy
I am developing an application that will have a login screen that will be based on data (user, password) already saved in a database Mysql, and so I thought I would apply the same Hash which was…
-
1
votes1
answer651
viewsScript for Telnet
How to create a script with previously established 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…
-
1
votes0
answers384
viewsHow to know where a specific script is running on a given HTML element?
There is a javascript running on a given page, I would like to find out where it is, ie the path or at least the name. For example: ". /files/global.js.download". I have a page that has several with…
-
1
votes1
answer47
viewsCommand in the Shell
I need to copy the last file created in one directory to another via ssh. I’m using the following command: ssh -oStrictHostKeyChecking=no user@IP "cd /home/user/backup_database/hour/; cp "`ls -1trap…
-
1
votes2
answers1098
viewsHow to add automatic scrolling to a div html?
I would like to add a kind of automatic scrolling in my html, with start and stop buttons, and do not know how to do. I would like when clicking start, the attribute to scroll down slowly, and when…
-
1
votes1
answer181
viewsUnix Command Grep output manipulation if no result is found
Good morning!! I am creating a script and I need that when I do a grep on a line and do not find it it return me the parameter I searched! grep "192.0.0.1 " /file.txt In the.txt file it does not…
-
1
votes2
answers1092
viewsJquery load div auto scroll
How to make high scoll when loading the page? I’m trying to do this, but without success! File: messages.php $('.chatUsuariosLista').click(function() { idUsuario = this.id;…
-
1
votes1
answer95
viewsDelete an executable file ( .exe ) after finishing without knowing its location?
The bat file has been converted to executable. The command del "%~f0" does not work! You will need to finish running the executable first taskkill /f "nome_do_executável.exe" and only then eliminate…
-
1
votes3
answers4336
viewsGet value from all checkboxes marked
How do I take all checkbox values that are checked and move to GET. $("#subcategoria").click(function(){ var checados = []; $.each($("input[name='subcategoria[]']:checked"), function(){…
-
1
votes0
answers223
viewsVB.NET + Powershell
I would like to create a program in VB.NET that runs the following code in Powershell Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register…
-
1
votes2
answers4846
viewsHow to take 2 decimal places
How do I show only 2 decimal places after the comma. I have the following script: <script> function DescontoPorcentagem() { var bruto = $("#tot_bruto").val(); var porcentagem =…
-
1
votes0
answers62
viewsRight way to make the autocomplete
I got the following script autocomplete: $(document).ready(function () { $("#id_cliente").autocomplete({ source: function (request, response) { $.ajax({ url: "/PreVenda/CarregaClientePorId", type:…
-
1
votes0
answers21
viewsHow to automatically convert a formula to number in Sheets?
Which Google Sheets script is able to turn a formula into a number (as if to copy the formula and paste "only values").
-
1
votes1
answer550
viewsButton "Play/Pause" - How to restart playback?
I made a simple button "play/pause" for audio, with the following script: <audio id="myAudio" src="http://www.sousound.com/music/healing/healing_01.mp3" preload="auto"> </audio>…
-
1
votes1
answer115
viewsHow to pass vector as argument in shell script?
I would like to pass a JSON-style vector as an argument for a script. Example : #!/bin/bash vetor[]=$1 echo ${vetor[*]} i=0 for nomes in ${vetor[*]} do i=$(($i+1)) echo "Nome $i é $nomes" done And I…
-
1
votes1
answer628
viewsHow to get the size of a string array in the shell script?
I have a string that I pass as a parameter, for example : "2,3,4,5" To pick up every item of it I make : #!/bin/bash for ((i=1; i<=4; i++)) do echo "$1" | cut -d "," -f $i done But I would like…
-
1
votes0
answers40
viewsAppendto(<script></script>) does not execute the added script
I’m creating a light box so it runs based on clicking a link. The light box works normally and I can add content inside it without problems. The point is that in this one I need to add a javascript…
-
1
votes1
answer205
viewsScript/Routine to run program
Hello. I would like an example of Script by the same VBS, to check if there is activity in Windows and so that if there is no activity in the previous 15 minutes, this script runs a certain program.…
-
1
votes2
answers183
viewsExchange text in icon according to text
<div class="modeloProduto"> <p>Massa Muscular</p>" </div> I don’t know much about site programming but I’m making a site with what I know, I wanted a script that changes the…
-
1
votes1
answer45
viewsHow to find only the distinct paths up to the specific directory?
I want to find only separate directories with the same name. If I use the locate to find the path of a given directory : locate mydirectory : /var/lib/meu_diretorio/arquivo1…
-
1
votes2
answers112
viewsHow to find out what is file and what is directory
The question is as simple as the logic I have here. Logic: Assuming that files should always contain their suffix . png . txt etc... While folders/directories carry nothing but their format name The…
-
1
votes1
answer110
viewsExport Ionic Creator
I am developing, after a long time, with Ionic again. Well, when preparing the environment correctly and typing in the terminal ionic start myapp blank the code is generated and works correctly,…
-
1
votes0
answers25
viewsCSV import (which is inside a zip) automatically received by email to the Spreadsheet
What happens is that every day I receive an email with a report attached. This attachment is zipped(.zip), and inside this zip has a CSV file. I need this zip to be converted to CSV and this CSV to…
-
1
votes0
answers29
viewsControl in a background application with Applescript
Hello, in this example below works, it opens the Skype app and type "email" and wait 20s for the next order, however I would like it to do so without opening the app, without the part of "Active"…
-
1
votes0
answers695
viewsConvert a string with HTML Code into an HTML object(Tag)
good morning. I have the following problem: I am implementing the integration between the company’s mobile application and the VIMEO platform. I’m using the oEmbed type integration, and from their…
-
1
votes1
answer46
viewsFor every time I make a page in Codeigniter I need to put the links of JS, UI, VALIDITY?
I could use the help of the experts there. Every time some codeigniter application I need to put the links, that usually get in the head or footer inside the page I created? Example: I create a User…
-
1
votes1
answer37
viewsAssign value to input
I have this code: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script…
-
1
votes1
answer455
viewsScript to Copy Directory to Program Files folder with Administrator rights
Good afternoon, you guys, I would like to copy some files in *.vbs, to a folder in "Program Files(X86)" via logon Script. But the message that appears is that the user has no rights to make the…
-
1
votes0
answers33
viewsSend string to spreadsheet via email
Hello, I have a spreadsheet in Googledocs, which sends, via script, an email alert to the user when the deadline for a task is expiring. I would like the user, when receiving this message, to have…
-
1
votes1
answer67
viewsDynamic combobox
I got these two selects: <td> <strong><label for="Valência">Valência</label></strong> <select id="Valencia" name="Valencia" style="width:150px">…
-
1
votes1
answer311
viewsHow to get the text from the share box?
Good guys, good afternoon. I never took a course and now I’m getting beaten to learn rs. Good is the following, I copied these codes over the internet, and I tried to create a cool page, of which I…
-
1
votes2
answers143
viewsIs there an advantage in languages that package (.dll, .class, .exe) for scripting languages (.php, .py, .js)?
There is some advantage in using languages like Java, . NET, C, C++ which generate a product in which it becomes more difficult to change? For example, if I get a .class, or a .jar, there would be…
-
1
votes2
answers81
viewsIs there an extra parameter for the linux script command for characters to be saved with the correct encoding?
When using the command script filename.txt is saved in the created file everything that is generated in the terminal, but when saving, the text is encoded in several points, points that I needed to…
-
1
votes1
answer415
viewsHow to insert a query value into a variable in the Shell Script?
I have a JSON in an archive nomes.txt. the JSON is : {"p": { "nome": ["josé","Maria", "carlos","Artur"] }} I want to play the value of his query in a variable. Show result works fine : #!/bin/bash…
-
1
votes1
answer32
viewsVariable running on its own
I am trying to create a variable that I will only use when I want to create a folder. But this same variable is creating this folder before the IF condition and the READ condition are executed.…
-
1
votes0
answers20
viewsLarge Object postgresql
Someone knows a replacement function or script for postgres lo_export, my problem is that I am migrating the databases to a server separate from the application and would not like to use folder…
-
1
votes0
answers38
viewsProblems with crontab and Git push script
I created a scrip . sh to update my repository in Git Hub. Manually the scrip runs perfectly. #!/bin/bash cd /home/user/tmp/ git init git add . git commit -m "`date +'%Y_%m_%d'`" git push --force…
-
1
votes3
answers283
viewsNo Fill new column as Null, yes with specified value in script
I have a specific table in the database, in it I keep information of classes that are created, swimming classes, futsal classes, weight training classes and so on, it is already in use and with…
-
1
votes1
answer232
viewsChange site background with script according to time of day
I have this script that changes the background color of the site as the page is updated. <script> function random_bg_color() { var x = Math.floor(Math.random() * 256); var y =…
-
1
votes2
answers332
viewsProblems with Angular 6 script import
I have a small problem with script and I believe it is scope of Component. I use a script to scroll in firefox, because in Chrome works normally anchorScrolling. The problem is that if I call on the…
-
1
votes1
answer43
viewsProblem with case in script
Someone explains me why my script is only returning the "Error option"? #!/bin/bash #==========================# DATA=$(date +%T) #Vai mostrar a hora com os mins CORTE=$(date +%k) #Vai mostrar…
-
1
votes1
answer54
viewsscapy installation without needing graphical interface or file . exe
Friends sweats, I’m having a little problem, I’m creating a python script with scapy and npcap (which is required for scapy to work) to run in windows. However, I managed to do the installation…
-
1
votes0
answers48
viewsDoubt with Increment + Loop . js
I have this script: var startValue = '0.00000001', stopPercentage = 0.000001, maxWait = 800, stopped = false, stopBefore = 1; var $loButton = $('#double_your_btc_bet_lo_button'), $hiButton =…
-
1
votes1
answer120
viewsMove aquifers by extension, PYTHON
Good afternoon, I want to fine tune my skills in PY, and I’m in a small script to move files from one place to another, but I would like to do this and not be guided by the name of the file, but…
-
1
votes1
answer109
viewsPHP code to send a sms via API to a phone list
Please would like a light for the code below, as it connects in an SMS sending API, but would like to send to more numbers at the same time, but the code below sends to a single number. <?php $ch…
-
1
votes1
answer465
viewsPython script error for copying . txt files
I made the following script to study. The goal is to copy all files with the extension '.txt' from the 'teste1' folder to the 'teste2' folder'. import shutil import os #Para garantir que o path é o…
-
1
votes0
answers71
viewsSearch only files created by me in Google Drive
Good morning I am creating a script to delete files with more than 3 hours of creation in a folder in Google Drive, but there is a certain lock that you can only delete files created by you, so I…
-
1
votes1
answer500
viewsMultiple connections via rtsp using Opencv and Python
I recently made a basic Python script using the Opencv library for recognition using security cameras, but I realized that for some reason, I can’t open two or more connections on the same camera,…
-
1
votes1
answer59
viewssetValue() in several vélulas (.foreach ???)
I use the function below to concatenate the value of the current cell in google Sheets and a link to create a function HIPERLINK() in the same cell. function setCustomLink(){ var ss =…
-
1
votes1
answer37
viewsKeep the last change in input saved in the browser
When you click the button it changes the background of the BODY tag, I need that when reload the page it keeps the color that was selected before, I think with localstorage work but I don’t…