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

learn more… | top users | synonyms (1)

0
votes
0answers
8 views

Script Windows paste content

I would like to modify what the default copy and paste does on Windows 7. For example, if I copy 123 45 678, I want it to be pasted as 12345677 in one string with whitespace stripped. Is there any way ...
2
votes
3answers
249 views

Alias/script to log the command history before exiting terminal?

I'm new to bash and scripting. I was thinking of writing an alias or a script so that every time I exit the command line, it will record my command history. Because I try a lot of new commands, and I ...
2
votes
1answer
61 views

AHK script is unstable while running

I am working in a External HDD manufacturing company. I have requirement to upgrade the FW for thousands of HDDs. I have to upload two files in sequence to get the upload completed. To do manual ...
0
votes
0answers
9 views

Linux (Arch) script for configuring multiple file-sharing options

Having an Arch ARM server in the house, which serves multiple purposes (routing, firewall, DHCP, squid etc.), I started looking for some kind of tool (script, web interface, whatever) that would allow ...
0
votes
1answer
25 views

Cannot send the input correctly in AHK

I try to send the input of a file name in the AHK script but I cannot get the right input. The AHK is not sending the whole text that I want it to send. Here is my code. SendInput, 867_CCM.xls But ...
0
votes
0answers
11 views

Can I create a user in windows 2012 to only run scripts?

I would like to create a user that is used to only run scripts. Scripts include python programs and powershell programs. Is it possible to only allow these scripts to be accessed by this user. Are ...
2
votes
1answer
115 views

AutoHotKey – ellegant way of waiting until a system dialog box becomes able to accept keystrokes?

Standard system Print dialog or Save dialog is swallowing keys sent immediately after opening. Is there a way how to send keys successfully as soon as possible? Details: Let's have some simple use ...
0
votes
1answer
50 views

Using errorlevel in batch file to add network printer

I'm trying to write a script so people can add a network printer by just typing in it's name. REM Adding network printer @echo off :addprinter set /p printer="Please enter the name of the printer ...
0
votes
1answer
285 views

How can I over-ride Windows10 default DNS Servers to use OpenVPN assigned DNS servers

A problem has arisen with Windows 10 in that it always uses it's local DNS servers (as well as VPN assigned DNS servers) for DNS resolving, which in turn leads to a DNS leakage scenario. Details ...
0
votes
0answers
100 views

wget or cURL for dynamic recursive URLs (generated through directories and adding specific same text at the end)

I'm using a wget command with some options in order to refresh the cache module from all URLs of a Prestashop. This is the command: wget -r -D www.domain.com -l3 -P temp -x -R "*cart*","*order*","*My ...
0
votes
2answers
52 views

To run an AHK script after detecting USB External EHDD

I'm trying to make a script in AHK(Auto Hot Key) to detect if there is any External HDD is connected and then run the next command in the script. Suppose below is the script. A B C D E I want A to ...
0
votes
0answers
16 views

script to process calendar dates on a webpage

I'm just wondering if anyone knows of a publicly available script which would do the following: 1) identify ("parse out") calendar dates on a webpage (or simply in any text document, whether html or ...
1
vote
0answers
60 views

Automator app won't open after being copied to another computer - OSX

I created an app in Automator. The app runs fine on the computer with which I created it, but when I copy it to another computer I get: The application “AppX” can’t be opened. If I open it in ...
1
vote
1answer
26 views

Windows Batch Call Command not passing variable value?

I'm getting strange output when running my script: @echo off setlocal pushd "%~dp0" set Mode=batch if "%Mode%"=="batch" call :BATCH echo %Loc% pause>nul exit :BATCH set "psCommand="(new-object ...
0
votes
0answers
48 views

Package conflict when installing Zend Server on RHEL using install script

I am trying to install Zend Server on a RHEL machine using install script stated on this steps http://files.zend.com/help/Zend-Server-8/zend-server.htm#rpm_installing_zend_server.htm When I run ...
1
vote
2answers
58 views

Is it possible to start a command on many nodes at the same time?

Is it possible to start a command on 10 nodes at the same time? Here is a portion of my script: #! /bin/sh nb_lignes=`wc -l $1 | cut -d " " -f1` echo "$nb_lignes machines" for i in $(seq ...
2
votes
1answer
38 views

I want to execute a file every time a file changes

I have a python script that automatically ends after X amount of runs, at the start of the program it sets the value of restart.txt to 0 using this code. restart = open("restart.txt", "w") ...
1
vote
1answer
111 views

Batch script to ping an ip range?

I'm trying to write a batch script (psexec is also an option) to scan a range of IPs 192.168.1.1-255 and as output, would like a csv file, something like this: column A column B ...
0
votes
1answer
35 views

How to do a variable time scale?

I have a video where I would like to change the time scale of a video based on ratios read in from a file. I have figured out that to double the speed for an entire video I could use the setpts ...
1
vote
1answer
33 views

Order of execution of instructions in a script shell

Here is a portion of my script test.sh: #!/bin/bash tar -cf $name.tar $name && pbzip2 $name.tar echo "[$1: Waiting..] Please, i have a question. The execution of the second instruction ...
0
votes
0answers
30 views

OpenVPN restart script not working

The following script was posted on the openwrt forum https://forum.openwrt.org/viewtopic.php?id=31853 as a way of restarting OpenVPN. The problem we're having is the ping is not going through when ...
0
votes
0answers
55 views

How do I capture multiple and specific processes performance user logman/perfmon?

Currently I have created a logman counter to monitor an entire system using the following command: logman create counter genericLogging -o C:\PerfLogging\data.blg -f bincirc -c "\LogicalDisk(*)\% ...
0
votes
2answers
123 views

Start a program like google chrome always on top without external software

So as the topic says, I want to start my chrome and keep the window always on top, would that be possible with a script or something? I googled a bit about that topic and if the question is answered, ...
1
vote
0answers
142 views

How do I script the creation of Disposable Virtual Machines with vmware workstation?

I am Making a disposable (use for one task/website then delete) Virtual Machine (VM) it's a slow process to do it in VMware workstation. I want to automate it so it is like the quick ~5 second DispVM ...
1
vote
0answers
36 views

Script to uninstall a folder from within C:\ProgramData\folder (GUID)

I'm hoping to find a script to uninstall a folder from within the ProgramData folder ie.. C:\ProgramData\folder (GUID). As you can see the folder also has a GUID string this is what I have: rmdir /s ...
1
vote
1answer
28 views

Script Shell: Display date of two minutes (period)

I have the following script: #!/bin/sh while :; do sleep 1 date done How can I change this script display the time only of two minutes (period) and exit? Is that possible?
0
votes
1answer
108 views

How to get the Default browser name in mac osX using a bash script

I am trying to write a script that finds If the default browser is chrome. In which file can I find store this information?
1
vote
3answers
32 views

Script Shell: Delete a line from a file

Here is my file "test.txt": 172.16.68.4 172.16.68.3 Here is my script: #!/bin/sh ip="172.16.68.4" sed '/$ip/d' $1 Please, i'd like to delete a line from test file but it didn't work for me. ...
0
votes
1answer
53 views

yes command replacement unix shell scripting

Is there any command like yes command for Sun OS 5.8? I want to give to write a script which I need to press n continuously, which I want to automate. I tried with yes command but it is not there in ...
1
vote
1answer
407 views

Run only specific /etc/network/if-up.d-script for specific interfaces

I would like to run a network script when bringing up a specific interface (e.g. eth0) by invoking ifup eth0 The script should ONLY run when bringing up eth0. My approach was to write the script ...
3
votes
3answers
557 views

How to execute a second condition if the first condition is true in Linux shell scripting

I have an if condition. If that condition is true then one script will be run and after that I need to check another condition. How can I do that using an if statement or something else? For ...
0
votes
0answers
25 views

Multiboot AD Binding Script Trouble (Error 10001)

So let's preface this with what I'm trying to do: I'm using DeployStudio to deploy multi-boot Macs, such as OSX10 and OSX09. My workflow goes like this upon Netbooting into the deployment server ...
0
votes
2answers
158 views

Loop inside EOF - UNIX SCRIPTING

I am writing a script to automatic start up of an application whenever we found error in logs. so #/bin/bash if [ grep -c 'error' logs -eq 0 ] ;then exit else start <<EOF ## start is a ...
-2
votes
1answer
55 views

using find and delete files/folder - with the exception of 1 folder - challenging

i want to use find and delete everything with the exception of one folder if found. e.g. [oracle@SJOAM test]$ ls -l total 4 -rw-r--r--. 1 oracle oinstall 0 Sep 2 02:05 a -rw-r--r--. 1 oracle ...
0
votes
1answer
41 views

Windows batch script to replace a word in a filename

I've got a user that creates multiple exported sets of textures from a visual editing program he uses daily. When these export the filenames come out with a pattern of "texture*" (e.g. texture_43522, ...
1
vote
1answer
131 views

automatic new mac setup (dotfiles, scripts, etc)

I'm looking for a way to automate the setup of a new macbook I'm about to purchase. I've done through quite a few during the years and it always takes forever to get everything up properly. I don't ...
0
votes
1answer
80 views

Is there a way to write a Batch-file which will Return services into their Default mode?

I had already twice a problem with my computer were it just went out of controll and most of the functions were incontrolable, including services like Sound, Brightness, Internet and some other. Later ...
0
votes
0answers
21 views

Automatically open an application when Bluetooth is tuned on

I want an application to execute when my Bluetooth turns on. And also if possible to close the app if Bluetooth turns off.
0
votes
0answers
33 views

Failing script producing extra folder

I've run into an error that I'm not able to understand and fix despite extensive web searches over the past few days. I have a SetupComplete.cmd script under this location ...
1
vote
1answer
139 views

Bash script to create a folder structure

I'm trying to write a Bash script to automate a recurring task, namely the creation of a structure of folders, where some of them should be numbered (To be more specific, this is meant to archive some ...
0
votes
1answer
18 views

Remove all lines after /

I have 2 lists one with this format: http://www.example.com/archives/573 http://www.example.com/1812.html http://example.com/hello-world/ but i want it in this format www.example.com ...
0
votes
1answer
41 views

How to trigger autohotkey script with a download

I want to trigger my script every time my Gpodder program downloads an MP3.
1
vote
1answer
182 views

PowerShell: Automatic Join-Domain with Secure String - 'Encryption Key' Usage

I work in an enterprise environment, where I manage a lab of 75 computers. I use Ghost to image and then I walk the computers afterwards to change the PC names and SIDs. I am implementing a script ...
-2
votes
1answer
51 views

bash: Loop over lines of a file

Here is my script: #! /bin/sh for line in $(cat list); do echo "[$line]: Getting my workers list.."; var=$line-"worker1"; echo "$var" >> "hostlistworkers.txt" ...
1
vote
1answer
26 views

How to remove pattern containing blank space and special characters in sed

How to remove following words from a text file: DEFAULT ('') DEFAULT ((0)) DEFAULT (((1)/(1))/(1900)) DEFAULT (getdate()) I am not able to delete above four pattens using sed.
0
votes
0answers
21 views

Undo command Linux “rm” [duplicate]

Please, I have used rm * in a script shell, it deleted all my files? (a typo) Is there a solution to recover these files ?
2
votes
1answer
36 views

Execute blocking script with admin rights in Windows before and after standby

I would like to run a script in Windows right before standby/sleep mode with admin rights and blocking, i.e., the system should not go to sleep until the script has successfully terminated. ...
1
vote
1answer
49 views

Setting a rule for an incoming mail (read or unread)

I need a little advice on Outlook 2010. There is this situation: - one webmail account which is used by a several people (using web browser or phone to access it) - one computer with MS Outlook 2010 ...
2
votes
2answers
58 views

How to get latest version string from a collection of folder where folder name is version string

for folder structure like below RootFolder | |--1.2.3 |--1.2.4 |--2.1.3 ... ... ... Under RootFolder, there are a collection of folders, and they all named with ...
1
vote
1answer
175 views

Execute command to remote server via SSH after exporting variable

I have two machines, A and B. I need to execute a script which is located in B by SSHing there from A. In order for the script to run I also need to export a variable. If I just SSH and export the ...