Questions tagged as 'script'

1
answer

Windows Ping should return only the response values of the packages

I am making a script as a ping command and I want to get only the response from packets sent and received, so far I can only put the ping media using this variable: for /f "tokens=* delims= " %%i in ('ping -n 4 172.16.7.144^|find "ms"') do set...
asked by 01.12.2014 / 21:00
2
answers

How to create a shell script that puts an echo at the beginning of each line in a file

I need to create a script that inserts the echo command at the beginning of each line of the file and at the end > > blocodenotas, for example #!/bin/bash ls -l uname -a netstat -tunap I want a script that turns this into: echo "#!/...
asked by 13.12.2018 / 20:39
0
answers

Adapt Script that copies specific files and renames them (VBS)

Well I already have a script that does the reading and copying of the files, however, I need to refine it a bit more, for example: CURRENTLY: I get the list of file names: AAAAA1.jpg AAAAA2.jpg AAAAA3.jpg I need it to be:...
asked by 27.11.2018 / 23:55
1
answer

How to insert value of a query into a variable in Shell Script?

I have JSON in a file nomes.txt . JSON is: {"p": { "nome": ["josé","Maria", "carlos","Artur"] }} I want to throw the query value of it into a variable. Show the results: #!/bin/bash ns='cat nomes.txt' echo $ns...
asked by 05.09.2018 / 15:52
0
answers

Run .exe as administrator in .bat file

I have the following situation: I have a .bat file that should open a program (.exe), but this executable file must be opened with administrator permissions, I tried using the runas command as vi some informing, however this command needs to b...
asked by 16.07.2018 / 16:37
1
answer

Every time I make a page in Codeigniter I need to put the JS, UI, VALID links?

I need the help of the experts there. Every time I have some codeigniter application I need to put the links, which usually stay in the head or footer within the page I created? Example: I create a User view, and in it I add user and valid...
asked by 06.07.2018 / 23:04
0
answers

Convert an HTML Code string to an HTML Tag

Good morning. I have the following problem: I am integrating between the company's mobile application and the VIMEO platform. I'm using oEmbed-type integration, and their documentation ( link ), when I make the request an XML is returned in w...
asked by 25.05.2018 / 17:08
0
answers

Send string to spreadsheet via email

Hello, I have a spreadsheet in GoogleDocs, which sends an email alert to the user via script when the deadline for a task is expiring. I would like the user, upon receiving this message, to have the option of clicking a button or link to stop re...
asked by 07.06.2018 / 21:42
0
answers

How do I automatically convert a formula into a number in Sheets?

What script for Google Sheets is able to transform a formula into a number (as if it were to copy the formula and paste "values only").     
asked by 18.05.2018 / 02:58
1
answer

Script to check process running and finalizing or not

I have a process called monitor.exe and it can not have 2 active processes because it is a print monitor that if it has 2 active processes it will issue 2 duplicate invoices, so I would like to know if it has how do I make a script that checks i...
asked by 19.04.2018 / 15:01