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
44 views

BASH: feeding user input into a c-program that also takes command line input (trying to use here-document)

I am writing a script that calls a c-program that I have written. The c-program takes a file path as a command line argument and then prompts the user for input. I want to use a here-document to ...
1
vote
1answer
66 views

BASH - Script isn't executing

I have a bash script, which checks a .txt file once a minute, and calls another script, if necessary. I am using cron for this, and this is in root's crontab; * * * * * ...
-1
votes
1answer
70 views

How to deleting user data in Windows 7 on shutdown or start up

I want to make it so a user account is fresh every time someone logs on but I want to keep the desktop background,start menu,and the tool bar. How would I do this? I tried deleting the user profile ...
0
votes
1answer
360 views

Cannot control click a button in Autoit scripting

I have been trying to automate a button click using an auto IT script in an application. The window title of the application is EDI867 Tracer and the button I am trying to click is Browse. The ...
0
votes
1answer
51 views

Is Homebrew's 'install' warning an error?

When using the brew install foo command with foo already installed returns Warning: foo-3.5.2 already installed Is this technically an error, like stderr, or is this message simply stdout? It is ...
0
votes
1answer
38 views

How to send “@” using AutoKey on Ubuntu 14.04?

I just installed AutoKey on Ubuntu 14.04. When writing AutoKey scripts, I've found that: keyboard.send_key("@") Sends "2". How do a produce an "@" character in an AutoKey script?
-1
votes
1answer
189 views

Open Multiple Instances of taskmanager

Is there a way to open multiple taskmanagers in Windows 10? I trie this: http://www.codeproject.com/Articles/61970/Running-multiple-instances-of-Task-Manager but it doesn't work. So I tried to write a ...
1
vote
1answer
52 views

force log off after UAC has been disabled

I'm having to install Windows updates on multiple stand alone systems. I have my update_script.bat script to run, but as it loops through installing each update I am prompted by UAC controls for my ...
-1
votes
1answer
127 views

How to rename multiple files in same folder with same filename using batch scrpt?

i need small help, how to rename multiple files without touching their extension (in this case it winrar extension .r*) with batch script? When i try to rename it with rename command batch script ...
1
vote
1answer
19 views

How can I find entries in a group of scripts that contain text from a list?

I have a list of search terms in termlist.txt, and a directory /dir/scripts which has a lot of scripts inside. How would I easily determine if any file in /dir/scripts contains any term in the list ...
1
vote
1answer
76 views

Generate images from large list of words

This is a bit of an odd question, but basically I'm trying to create a set of Pictionary cards for a game. To do this, I have a list of 1500 nouns separated by newlines and I need each of them to be ...
0
votes
1answer
29 views

How to determine the number of processes considered by the short-term scheduler for process allocation

My assignment is to write a script displaying the number of processes considered by the short-term scheduler for process allocation (processes currently ready to run) at any given time. Now, writing ...
0
votes
2answers
104 views

What language and how to test script that will run in android terminal app

I want to write a script that can run in a terminal app on an android device. I have basic questions about getting started. Background: I have a Windows batch file that (basically) pulls folders ...
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
268 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
69 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
10 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
28 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
12 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
187 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
57 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
387 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
155 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
57 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
85 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
28 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
63 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
65 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
44 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
119 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
42 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
36 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
36 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
84 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
190 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
171 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
45 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
29 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
182 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
38 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
73 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
543 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
657 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
27 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
193 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
65 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
45 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
182 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
92 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 ...