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
1answer
130 views

Simple autoit script to toggle Caps Lock on and off in Win7

I am looking for a simple autoit script that will toggle the Caps-Lock and/or Num-Lock keys on and off to stop my Windows 7 laptop going to the screensaver and locking. These options are grayed out ...
0
votes
1answer
121 views

How to remove network-manager access from LightDM?

I'm running Ubuntu 14.04. I didn't like how LightDM gave access to network manager before anyone has actually logged in... So I added 'network-manager stop' to rc.local. It works just like how I ...
0
votes
1answer
66 views

PrimoPDF script error - twitter.com

When running PrimoPDF, I get the following script error: An error has occurred in the script on this page. Line: 0 Char: 0 Error: Script error Code: 0 URL: http://platform.twitter.com/widgets.js If ...
1
vote
1answer
86 views

Possible to automate setting of Internet Explorer settings?

Is it possible to automate the setting of some Internet Explorer settings through some sort of self-contained script or program (and not something like Group Policy or domain controlling)? In ...
0
votes
0answers
32 views

Configure a script for specific batch processing in VirtualDub

I am trying to figure out a way to batch process these files. http://i.imgur.com/CRBUCMU.png and, as you can see in the picture, a .wav file with the name of the archives. The thing is, each video ...
1
vote
1answer
272 views

Exit bash script when curl gets a non 200 HTTP status

I have a bash script setup to perform a few curl requests for currency in EUR INR JPY do curl -i --data '{"currency": "'$currency'"}' -H "Accept: application/json" -H "Content-Type: ...
1
vote
1answer
28 views

Is it possible to perform Windows boot-time actions before paging is enabled?

I would like to perform some actions at Windows boot time before paging is enabled. I know I can run startup scripts with Task Scheduler or with group policy startup scripts. My question is whether ...
0
votes
1answer
192 views

integer expression expected error when trying to run a command on each line

I am trying to essentially run a command on each line of a file. Below is what I have so far. I want to be able to take each line, take the last column from it, run a command on the integer and if it ...
2
votes
1answer
170 views

How to remove substring in Powershell script

This script is almost what I need: $input_path = 'C:\Common' $output_file = 'C:\Common\extracted.txt' $regex = 'assets' Get-ChildItem -Path $input_path -Filter *.txt | Select-String -Pattern $regex ...
0
votes
1answer
46 views

Prompt for values until press ENTER key with empty value

I'm working in a bash script for automatize some tasks. This is what I have done until now: #!/usr/bin/env bash PS3='Please enter your choice: ' options=("Create new group" "Add users to group" ...
0
votes
0answers
10 views

Reconnecting a virtual keyboard

Background: At work, I use a PC laptop connected to a docking station. On the docking station, I have plugged in my Logitech G510S gaming keyboard (I utilize the hell out of the extra G keys for ...
0
votes
1answer
134 views

bash command in python not working

I would like to run a bash command from python. My code: process = subprocess.Popen(('ifconfig -s'), stdout=subprocess.PIPE, shell=True) output = process.communicate()[0] lcd.message(output) sleep(2) ...
0
votes
2answers
62 views

New to scripting and need help running powershell script to deploy software. (powershell blocked execution) [closed]

The following script was written for me. My problem is that when our remote deployment system executes the script, Powershell on the local machine will not run the script. It has no problem running ...
2
votes
2answers
2k views

Run a remote script/application in detached mode in Ansible

I am having trouble running a remote application startup script "detachedly" from an Ansible playbook. The script will run, but I can't get it to get/stay detached. I am probably doing something ...
0
votes
1answer
16 views

How to call in one line multiple processes in serie

If I run the following script with 3 lines: process1 process2 process3 then process2 will wait for process1 to start, and the same will happen with process3. How can I do the same in only one line ...
0
votes
2answers
113 views

Finding a file with vbs and the open the location folder

is there a way to make a script in vbs (or other) that search in each hard drive partition for a file and then opens the location folder of the file if the file was found? So if I want to find the ...
1
vote
0answers
19 views

How to burn multiple sets or groups of MP3s with multiple drives simultaneously

I have lots of MP3s that I need to burn into multiple audio CDs. I manually select 80 minutes or less of audio at a time, using multiple sessions of k3b with multiple CD-R drives to burn ...
0
votes
0answers
85 views

Need help on renaming of files in a remote server using batch file

I need to rename a file in Server B using a batch script. This is easy: rename \\servername\path\test.txt test.old On Server B, I have an application that will create a file daily at 9pm. Eg: Every ...
-1
votes
1answer
80 views

AHK Anagram solver [closed]

I'm trying to make a "real time" anagram solver, but the only way I can think of is gonna take AGES to make. for example with the word tree: ::reet::tree ::eret::tree ::eert::tree ::teer::tree ...
0
votes
1answer
99 views

how to get files list in a folder with batch file without file extensions

What I used is below and its perfect but results are with file extension.(ABC123.pdf) dir /a /b /-p/o:gen >C:\WINDOWS\Temp\file_list start notepad C:\WINDOWS\Temp\file_list I need results ...
0
votes
0answers
15 views

Visual Studio: Display different files as one underneath each other (as “autopager” browser-extensions do for websites) / scroll through them

does any of you know a way or an addon to "scroll through" different files in VSs editor? When starting a project I sometimes have quite a lot of files each of them being quite small and me jumping ...
0
votes
0answers
50 views

Piped processes in upstart shell script continue running after stopping

I have an upstart script on my CentOS box that runs a shell script. The shell script runs a netcat command whose output is piped through a couple other commands and then ends up in a file. When I ...
0
votes
0answers
35 views

How to create a script to intelligently .zip numbered files?

I have a directory with a bunch of files with numbered file names (e.g., 002361). I'd like to write a script to regularly .zip them (or .rar, or .7z) based on their file names AND only update the ...
0
votes
1answer
181 views

Automate Update with script ( Flash, Java, Reader )

I'm deploying over 10-20 computers every week and have to update each computer manually. Is there a script that I could use that: Checks-Version, Downloads-New-Version, Updates-New-Version. I ...
1
vote
3answers
280 views

How can I run a Python 3 script?

I want to run a Python 3 script. I have looked in the official doc and FAQ, and they are the typical loss. I was looking for answers, I ended up with more questions. I have Windows and Linux. On ...
0
votes
0answers
27 views

How can a Nautilus script be run for an empty directory?

I have a Nautilus script that can create multiple directories at once using mkdir with the option -p. The script is effectively the following: directoryStructure="$(zenity --title "make directory ...
1
vote
1answer
206 views

Why does this script work as expected in 'curl', but not in the browser?

I have a script which when accessed with the HTTP protocol will send some data, pause for a few seconds, then send some more data, repeating until all the data is sent. When I access it in curl, it ...
0
votes
1answer
68 views

ahk script tweak for 2 instances

I’m trying to create two different hotkeys that launch two independent instances of an application. When the second one is open a “[2]” is added to the title of the Window, which is very useful to me. ...
0
votes
1answer
78 views

ahk WinMove not working in a faster machine

is it possible that in a faster machine AHK WinMove feature does not working and needs something else? I'm positive that the same script works in other slower computers, that means arrange my screens ...
0
votes
0answers
79 views

Run an interactive script with administrator privileges, before user login

Windows 7. I have a script which mount a TrueCrypt partition and share it across a LAN. Because this script must run with administrator (at least power user) privileges, I place it in gpedit.msc -> ...
1
vote
1answer
40 views

BASH Script: Why Do My Variables Not Work

I'm trying to use some script variables in a BASH script to my code more clear. However, for some reason, my variables are not being expanded/uses. Nothing simply happens when I use the variable to ...
1
vote
1answer
146 views

BinScope and ArgumentException: Illegal characters in path

I'm catching a System.ArgumentException: Illegal characters in path when trying to script BinScope from the command line. BinScope is an SDLC audit tool from Microsoft, and the full output is below. ...
0
votes
3answers
99 views

Automating User Input / KeyStroke For a Program

I've read about this problem on related posts found here at Superuser; however, my issue is slightly different and potentially difficult to solve: I am working with a phylogenetic program called ...
0
votes
0answers
51 views

Allow Tampermonkey scripts in ScriptSafe in Chrome

I am using Google Chrome with Tampermonkey and ScriptSafe extensions. ScriptSafe blocks all the scrpts installed in Tampermonkey. I am wondering if there is anyway to make ScriptSafe to allow ...
1
vote
1answer
226 views

How can I create a script to randomly play an audio file in a designated folder?

I'm attempting to use VoiceAttack to give a voice command to play a song. I'm looking to create a script to randomly play a .mp3 file from a specific folder. I'm on Windows 8.1 My scripting ...
-2
votes
3answers
653 views

Bash- How to make a Linux script file human unreadable? [closed]

I have seen many Linux scripts that are executable but cannot be read as they are in binary format. My question is how I can make my script not readable/binary format?
1
vote
2answers
214 views

How can I run a Rails server when I start Ubuntu?

I need to run this command cd /my/app/path&&rails s every time I start my Ubuntu virtual machine. I've tried to add it to /etc/rc.local file and also in /etc/init.d/rc.local but it ...
0
votes
1answer
80 views

Powershell script to open random video

I was looking for a way to open random video file in my folder which has about 400 videos (20 videos in 20 subfolders). I found a powershell script and managed it to work, but every time I run it I ...
0
votes
1answer
175 views

Use nbtstat to return list of host names in IP range?

In Windows 7 I'm using the command for /l %i in (1,1,254) do nbtstat -a xxx.xxx.xxx.%i to return host names based on a given IP range. But the output is so long and unfriendly. How could I improve ...
4
votes
1answer
65 views

Can I create a “file” that, when opened, actually gives the output of a command?

I've found myself in a couple of situations now where I'd like to have such a "file" that essentially runs a script whenever it's "opened", allowing me to "read" it's output. For example, I might ...
0
votes
1answer
78 views

Script for a batch file that runs a program for a specific period of time

I want a script for a batch file that makes a program run every 10 minutes for 5 seconds each time. In these 5 seconds, the program must be running on top of all the other windows, but out of focus so ...
0
votes
1answer
42 views

How can I run this Perl script in Windows?

I am trying to run a PERL script for the first time. Here it is : http://search.cpan.org/dist/HTML-ExtractMain/lib/HTML/ExtractMain.pm I have never used or worked with PERL before and I am finding ...
0
votes
0answers
17 views

How to check a range of zipped files

I am looking for any ideas how to check for particular entry in given range of time in logs. If I am checking logs just from one day, I can do the following: more /var/logs/log.08.12.log | grep ...
-3
votes
1answer
255 views

How to search a string and extract another string pattern from a text file using windows batch script

Consider out.txt file have the following format Display Variable; ID NAME value ===*==========*================ 201 Variavle 07Dec2014 Display Variable12; ID NAME value ...
1
vote
2answers
175 views

Is there a Windows script to disable & enable the Intel GPU?

So I've bought a new laptop with the Intel 4400 GPU. Which I'm trying to connect to an external monitor with hdmi, only the monitor gives me a no signal error. So I went on Google and found a ...
1
vote
1answer
45 views

Script to find files with length longer than 80 characters

I have around 20 C++ files in my folder that I want to check for line length but I don't want to manually go through all of them. Is there any script/program in Linux/Windows that I can use to check ...
0
votes
0answers
1k views

FireFox's NoScript equivalent for IE 11 in Windows 8.1

For my IE 11 in Windows 8, I need a tool I can use to disable/enable JavaScripts on various web pages dynamically when I open a web page - something similar to what the NoScript plugin for FireFox ...
-2
votes
2answers
50 views

How can I create a script in Unix with following requirements? [closed]

A script named /root/backup.sh on w01 that will backup the contents of /home The script will: Create a tar archive named /share/<YYYY><MM><DD>_w01.tar where YYYY represents the ...
0
votes
0answers
22 views

Running script after debian install

I would like to customize debian install to run a script (which will download and install asterisk, mariadb, java 8, etc...) and do some other wirings automatically. In the debian customization of ...
0
votes
0answers
149 views

how to bring network up at boot time in ubuntu 14.0.4

I am write one shell script which execute on every boot, Script is as below. service lsyncd stop /etc/init.d/networking force-reload ifconfig eth0 > /home/sachin/status.txt old="0.0.0.0"; ...