Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [script]

An automated series of instructions carried out in a specific order, such as a Windows script created to launch a specific program on startup.

0
votes
0answers
16 views

How to call a bash script out of a Mac OS X app [on hold]

My script touch_a.sh gets executed correctly, when running from my bash terminal: two files are generated within my private tmp directory: touch_a.txt by touch_a.sh and touch_b.txt by touch_b.sh (...
0
votes
1answer
27 views

how to count all file in dir , return line count, modify date of file and second row first colume string

I have a directory with several csv files. I would like to return the line count for each file, the modified date of each file and the string in the first column after header row using batch scripts ...
0
votes
0answers
12 views

Script to change bios setting

Can someone help with my issue? I'm looking for a script that change bios power setting to Automatic power ON> Wake up on Alarm as Daily Event and time set to 00:30:00.
0
votes
0answers
14 views

How can you do the javascript command in python: “document.body.innerHTML”? [on hold]

I need to write some code as homework where you perform a padding oracle attack on a web service. So everytime you visit a link, you get an output. This output is either padding correct or padding ...
1
vote
0answers
11 views

Running Linux command after reboot under specific conditions

we are currently setting up a Kubernetes Cluster. Kubernetes starts up at server boot normally and after a while, after the program "kubelet" has fully loaded its components, the network port 30000 ...
0
votes
0answers
54 views

What programming language can i use to do similar things as javascript in a browser on Linux? [on hold]

I'm supposed to write a program that performs a padding oracle attack on a web server. On paper, I already know how the padding oracle attack works and I also know how to write a program that is doing ...
0
votes
0answers
21 views

Continuously detect a change of chksum of files under folder with inotify-tools

I just installed inotify-tools. I would like to continuously detect change of chksum of files under folder /path Once a change was detect ( under /path ) then it will print echo “chksum of files ...
-1
votes
0answers
21 views

Can I mirror mouse events on any parts of my screen?

I want to be able to use one mouse to control two cursors, where if I move the mouse the two cursors move together I also want both cursors to left click at the same time if I left-click the mouse. Is ...
-1
votes
0answers
17 views

file.app is damaged or incomplete

I want to create a MacOS application from a shell script. Therefore, I created the script "App" with no extension and simple commands in it. I created the files App/Contents/MacOS/App and wrote an ...
0
votes
1answer
17 views

AutoHotKey: How do I set the starting value of the current loop iteration?

I've made a basic AHK script that adds unique metadata to each file on a system I use every day. The idea is to add _01 to the first file followed by _02 to the second file and going up forever until ...
0
votes
0answers
12 views

postgreSQL Autostart Script on Ubuntu 19.04

Summary: After installation of postgreSQL, i tried 2 autostarts scripts but found some problems*: And su postgres -c 'pg_ctl start -D /usr/local/pgsql/data -l serverlog' again on /etc/profile The ...
0
votes
0answers
4 views

OCR and Tessaract recognize numbers

im very new in Blue Eye and need some OCR into Roulette recognizing numbers. So i made a script : when Color.At coordinate is (RGB)("255", "0", "0", "658", "322") begin Plugins.OCR (Simple)("654", "...
-1
votes
1answer
27 views

Is it possible to schedule apps to unlock with applocker?

Programs like Cold Turkey allow you to set timers for how long apps can run, so I'm wondering why there isn't some code I can put into cmd that stops a program from being opened? With task scheduler, ...
0
votes
0answers
25 views

How to change IP address of multiple computers using batch file script?

How to change IP address of multiple computers using batch file script. I'm planning to run this via GPO so that i can change numbers of computers using 1 script. Hope you can help me.
-1
votes
1answer
27 views

Installed tmux 2.9 and now SSH script it throwing an error. protocol version mismatch (client 7, server 8)

I now get this error with tmux 2.9 where with tmux 2.7 it had no issues. [15:02:59] nod @ server01: ~ $> ssh-multi2_1.sh server10 server11 usage: new-window [-adkP] [-c start-directory] [-F ...
0
votes
0answers
34 views

How do I remove duplicate files in a folder in windows? [duplicate]

Suppose I have two files with same name but different file sizes. Each file has two copies. One with size x. and its copy with size y. where x>y There are two copies of each file. One with x MB. And ...
0
votes
0answers
10 views

Automate Cosomote login using a FON account

i found Cosmote Wifi Fon can sent me script to auto login fon using Cosomote . Ifount Automate BTWiFi login using a FON account but is BT in for Cosmote
0
votes
4answers
61 views

how to protect bash scripts from being read

Good evening guys. As the title suggests I was wondering if it is possible to protect bash scripts that also contain sensitive data from being read and tampered with by other users using the system. ...
0
votes
0answers
26 views

Google Sheet Script Error: “Sorry, unable to open the file at this time.”

I created two scripts for a small business which do the following: Script 1: Creates a new blank invoice which is a copy of an invoice template Script 2: Converts the invoice into a PDF file and ...
1
vote
1answer
30 views

How to check if a server has a fixed IP address using Powershell?

for me to check if the server has a fixed IP address at the moment I go through a long process, as described on the pictures below, in order, and that is for windows server 2016. my question is: is ...
0
votes
1answer
21 views

How to make a python script run persistently?

I have a remote server that I want to use to record livestreams. I ssh into the server and run a python script using nohup to monitor and record streams. problem is if I quit the ssh session, the ...
0
votes
1answer
44 views

Windows 10 v1809 ignores “Configure Logon Script Delay” GPO #2

Link to: Windows 10 v1809 ignores "Configure Logon Script Delay" GPO This is my first account and I don't have enough rep points to comment there, apparently. So I have to make a new ...
0
votes
2answers
57 views

Powershell script to compress all child directories and move to archive; keep file structure. Delete originals

I have a task where I need to compress all child directories (child is each day of a month) within each sub-parent directory (Month) and move to an archive folder. Then delete the originals. Also an ...
0
votes
0answers
17 views

Getting the path from device in “My PC” [duplicate]

I'm writing a script that requires access to my camera, through the My PC path. How do I come about doing this? The explorer path looks like this "This PC\Camera Name\somefolder". The camera is not a ...
0
votes
0answers
20 views

Auto-shutdown at specific time

I have implemented a GPO and linked on computers/users OU. All computers are DC joined. But the problem is that GPO is not taking place on computers, even though not showing in GPRESULT /r command. ...
0
votes
3answers
69 views

How to calculate throughput of particular interface in Linux?

Is there any way to calculate throughput per interface (e.g. eth0) in Linux system using ip command or ifconfig? I tried bmon, nload - but is it possible to get the same result using some basic Linux ...
0
votes
0answers
39 views

Shell script to ssh into 10 servers & check for java process

Shell script - to ssh into 10 remote servers and keep checking for presence of a java process - 'abcd' and the print the PID and return. It should check for 5 min atleast -if no process found. please ...
-1
votes
1answer
61 views

Move files into a folder based on only part of their name

I have a bunch of files that I am trying to organize into folders based on the first 11 characters (Ex. X-01234-567) and some of the files have description after these numbers that help to identify ...
0
votes
0answers
321 views

Windows 10 v1809 ignores “Configure Logon Script Delay” GPO

As described here, since Windows 8.1 group policy logon scripts are delayed by 5 minutes after logon. The following GPO is intended to re-configure that delay: Computer Configuration -> ...
1
vote
3answers
143 views

Scripting connecting/disconnecting a paired Bluetooth device

Is there a way, through powershell, or any other tools to connect and disconnect a paired Bluetooth device? Basically press the Connect/Disconnect button in Bluetooth & other devices, except from ...
0
votes
2answers
69 views

Add '#' in XML file using Batch script

I am very new to batch scripting.  Could you please let me know how I can add "#" in an XML file – second line first letter – and save it in Windows. As per the above screenshot, I need to add one ...
3
votes
0answers
40 views

How can I autocomplete file names with special characters in Powershell?

Say I am trying to replace files with placeholder files with the same name. If I have a file called "example.mp4" I can simply type in >Clear-Content e and tab complete from there, but if I have ...
0
votes
0answers
22 views

Generate an .ai (Adobe Illustrator) file programmatically?

I would like to generate .ai files (with custom groups and elements), from a script. But preferably I would do this without using Adobe Illustrator SDK (because of its complexity, its poor ...
0
votes
0answers
30 views

Identical scripts, same permissions, one hangs one doesnt, How? Why?

I've also posted this question on stack overflow. here:https://stackoverflow.com/questions/55689120/identical-scripts-same-permissions-one-hangs-one-doesnt-how-why please answer on the site you ...
0
votes
0answers
13 views

script for copying text from txt file into other file´s spotlight commentary (within same folder)

I am not a coder/scripter. thus I am looking for some initial help/clues to solve the problem sketched in the header. I basically have a file-structure: [folder :] ../xyxyxyxy.info [file-1 :]../...
0
votes
0answers
52 views

Batch file to edit text in a file to a new file

I have a text file Old.txt with the below contents: hierarchies dimensions products product 11 product 12 scenario scenario budget actual PerformanceUnit PU1 PU3 PU46 PU23 PU2 PU245 NoPerformanceUnit ...
1
vote
2answers
68 views

bash script:echo output garbled and in wrong order

I am having an issue with a bash script that is echoing output in an unexpected order. The script is as follows. The problem is with the output of lines 30-32. 1 IFS=$'\n' 2 i=1 3 bluered="" 4 ...
0
votes
1answer
70 views

how to execute a script within a script in shell command

I'm trying to make this script work (what it's supposed to do is search for a string in the last log file of a remote server): ssh -i $ssh_key_file ubuntu@$1 -t "cd /path/to/logs; grep \"POST api/...
0
votes
0answers
27 views

Illustrator - Save file in multiple formats, scripts or action

is there any way to automate some saving process. I have to save my files in multiple formats, for example, once the vector image is ready I have to save it as .ai, .pdf, export it as .png, .jpg. I ...
0
votes
1answer
37 views

How to script remote monitoring and management

Looking at this video on scripting: https://www.youtube.com/watch?v=LcERIxWDQXA how or where is this executed? What I'm not understanding is how to use the SWIS (SolarWinds Information Service) ...
0
votes
0answers
14 views

How to insert arguments at a placeholder position in a command?

When I run npm test, the following script is executed: node $(npm bin)/jest --no-cache --runInBand I can pass arguments to an npm script using --. The following: npm test -- --inspect-brk Would ...
0
votes
0answers
8 views

How to check incoming SIP trunk works

I have a 3CX PBX setup with sip trunk which registers OK, but sometimes callers state they can't get through (various errors from "there is a fault" to silence). When I try the line myself, it seems ...
0
votes
1answer
24 views

Correct syntax in a script to append to .bashrc for root

I'm trying to script some things and cannot figure out the correct syntax to append to root's .bashrc file. For this script, I'm just trying to get it to display the hostname in red when we ssh into ...
0
votes
0answers
99 views

Batch script for Winrar “Extract Here” with recursive folders

I want to search an entire disc and user Winrar "Extract Here" on all archives. I tried to create a bat script but i did not succeed. All script i can found do other things, i just want to use the "...
0
votes
0answers
17 views

Reading Linux scripts to Windows machines

For my job I have to "script -f XXXX.txt" for everything that I do. Then I take those .txt files and copy them to a CD then transfer to a windows machine. The Problem I am facing is when I try and ...
0
votes
1answer
212 views

Mapping network drives with script

I'm attempting to use a script to unmap a drive clear the cached credentials used to map that drive map the drive again using different user credentials. In Windows 7 the following script ...
0
votes
0answers
38 views

Run in background and detach a process

Whenever I logout from a server, hdfs --daemon start datanode stops working. So, I tried to start a linux command in background and detach the process in terminal using nohup hdfs --daemon ...
0
votes
0answers
64 views

run script on detection of USB device connected (Windows 10)

I want a script to run whenever I plug in this specific USB device. I have the script, it's a .bat file if you must know. The device in question is a Fractal Axe-FX II. In device manager it comes up ...
0
votes
0answers
19 views

Querying Offline Files available disk usage

Looking for a way to query the Offline Files "available" disk usage (Windows 10). The value I want to query is displayed in the Offline Files GUI on the Disk Usage tab. The value is not based on ...
0
votes
0answers
30 views

How to view Domain startup script?

I am Local Admin on our machines but not Domain Admin. When I go to rsop.msc to view the Group Policies applied, I can see that there is a startup script executed from %logonserver%\sysvol\ourdomain\...