Stack Exchange Network

Stack Exchange network consists of 174 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.

1
vote
1answer
23 views

Why does command substitution not work in braces but replacing it with the actual number works?

I'm using the following command to try to max out the number of cores on my server: for i in {1..`nproc --all`}; do while : ; do : ; done & done For some reason, it only ever uses one core, even ...
0
votes
1answer
14 views

How to filter out user keyboard only login times from the 4624 Event Log data?

I am trying to filter out from the Security Event Log, those logs which correspond to the user (me) logging in by typing out password on the keyboard. I would like it to detect unlocking the screen as ...
0
votes
1answer
31 views

Bash script, get number of physical cores as number and iterate

I wrote a script that shows a number of physical cores of the machine. However, I would like the result to be a number, not a string. Here's the script: phycores=echo $sudoPW | cat /proc/cpuinfo | ...
-1
votes
2answers
28 views

Bash Command Substitution doesn't work

This is the script: #!/bin/bash thedate=$(date) var='Current date is $thedate' echo $var The output is Current date is $thedate and I'd like to make it show the date,what did I do wrong? ...
0
votes
1answer
33 views

Vim run command in background, but show output live in vsplit

How can I run a terminal command (for instance build) in vim while working on a file, while simultaneously showing the output live in a vsplit?
0
votes
0answers
15 views

Batch Script or alternate script [duplicate]

I'm not sure if this is the correct platform to ask on but here I go. I'm working on windows 10. I have a lot of files generated into one folder from a script with different parts to the name. I ...
0
votes
0answers
61 views

Shrink (scale) an SVG image via command line, while preserving its size

How can I shrink the content within an SVG file from the command line? I'd like the output to have the same default width and height, but be smaller. I'd also like for the scaling to be relative to ...
0
votes
0answers
34 views

How to run a command when any process starts?

I have an sh script to update my wallpaper which uses pscircle in order to display running processes. The script runs every five seconds to update the wallpaper, but I would like it so that the script ...
0
votes
1answer
18 views

When I change working directory in a script and execute it, the working directory only changes to specified path while in the script

When I change working directory in a script and execute it, the working directory only changes to specified path while in the script. Here is my script: #!/bin/bash cd /media/hard/drive/partitionX/ ...
0
votes
0answers
27 views

Haw can I execute my VB script in every 5 minutes automatically

I write a VB script and I need to run this script as a trigger in every 5 minutes My code is as follows: Sub Write_data_record_into_a_table() '////////////////////////////////////////////////////////...
-4
votes
0answers
16 views

script for Linux Current Date zip file from the folder and moved to windows folder on network [closed]

Actually i am looking for script for linux to get the current date zip file from the folder and moved to windows folder on network. Thanks & Regards Nawaz
0
votes
0answers
36 views

Importing txt-values from FTP

I'm trying to get text in a .txt from an FTP which i want into excel, this is what i got from our supplier support so far: Make a file named GetFromFTP.bat with this in it. echo off c: cd\import ftp ...
0
votes
1answer
41 views

NoDriveTypeAutorun registry key missing from Windows 10

I want to add a few lines to a script with the capacity to enable/disable the Autorun feature. It's not a new concept. It's been covered countless times before, including here on StackExchange, and ...
0
votes
0answers
40 views

Batch and scheduled download on Windows

complete noob here. For work I need to find a way to download all the files that are on a webpage. Moreover I would need to perform this operation everyday, around the same time. For this reason I ...
0
votes
1answer
78 views

Powershell: compare and match specific part of filename

I have something want to use Powershell to write. Could anyone know it? Thanks. I use powershell to create a list. e.g. $SUID = @("0011", "0012", "0013", "0014", "0015") I have a folder containing ...

15 30 50 per page