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)

3
votes
3answers
3k views

How can I take hundreds of smaller images and create one big tiled image?

I have 251 images that are 128x128 in size; I need to create one big image that includes them all tiled together. The image will be 32128x32128 in size if all goes well (Paint.NET says it will be ...
3
votes
1answer
314 views

Force a bash script to run to completion where some items may stick

I've a Uni assignment I'm building that I need to run multiple times with multiple different parameters to check run times. At the moment I've a simple bash script that looks a little like the below - ...
3
votes
3answers
4k views

Firefox plugin to block scripts of only specified websites

I'm looking for a Firefox plugin that blocks JavaScript from specified URLs. Example: I add: "google-analytics.com" It then blocks all scripts coming from Google Analytics. Essentially a ...
3
votes
1answer
4k views

In TextWrangler for Mac OS X, how to change the selected text to lowercase using a keyboard shortcut?

I know how to use the menu to change case, but I want it to be a keyboard shortcut. Other text editor have this feature but I would prefer to stick with TextWrangler. Does one already exist or is ...
3
votes
2answers
706 views

Why is my bash script not receiving the exit code from umount?

This is my first time attempting to write a long bash script to manage a server I run, and when using "set -ex" the script exits when umount fails. I thought my if statement would catch it but the ...
3
votes
1answer
4k views

I want to create an AutoHotKey script that waits for a window and sends some keystrokes to it, but the keystrokes are repeating by default

I want an AutoHotKey script that waits for a particular window and then sends keystrokes to that window. However, since the waiting is done in a loop, the keys are sent again and again. Let's say I ...
3
votes
2answers
2k views

Clear the TEMP folder on shutdown

I am following some instructions in More Ways To Speed Up Windows XP to help speed up my computer. One of those was to delete the temp folder on shutdown. Yet after I shutdown and then boot up, the ...
3
votes
1answer
15k views

Change NIC speed/duplex settings in script?

I have a laptop running Windows Server 2003 SP2, with PowerShell installed. Occasionally, this system has to be used in environments where it needs the NIC manually set to 100 Mbps/Full Duplex in ...
3
votes
3answers
20k views

How do you update an Excel file (Data Refresh and update formulas) WITHOUT opening the file?

I have an Excel file that want to update and save automatically with out having to open it or manually interact with. Manually, I open the file up and hit data refresh which goes and does a SQL query ...
3
votes
1answer
3k views

Is there a way to make AutoHotKey select text?

I've seen a lot of info (here & elsewhere) about things you can get AutoHotKey to do with text once the user has selected it, but is there a way to have an AHK script select the text itself? I'm ...
3
votes
4answers
3k views

Mount a share on a Mac using a login hook

I have a script that mounts a Samba share to a folder on the desktop, it runs no problem but when its setup as a LoginHook it doesn't mount the folder. Does anyone have a working login hook that ...
3
votes
1answer
3k views

How can I clear the scrollback buffer in konsole from bash?

I'm a heavy bash user and konsole is my preferred environment. I know I can use the keyboard command ctrl+shift+x to clear the scrollback buffer, but there's certain points in my scripts where I would ...
3
votes
2answers
3k views

init.d script not executing?

I have a script on ubuntu that I put in /etc/init.d. It has 0755 permissions, and I can run it manually both executing it and sourcing it, with good results. I have symlinks in both /etc/rc3.d and ...
3
votes
3answers
862 views

Safe and trustworthy Greasemonkey scripts

i simply can't think of using firefox without Greasemonkey scripts. there is always some risk in using greasemonkey script. so let us enlist some good tested and examined greasemonkey scripts that can ...
3
votes
2answers
111 views

How can I make my computer do a repeated series of tasks by a script file on Windows?

When I want to update a web project of mine, I have to do the following tasks all the time: Open cmd.exe. cd into working directory of project. Run localhost command in cmd.exe (~ jekyll s). Launch ...
3
votes
1answer
169 views

Map a network drive to be used by a service

I am trying to map a network drive (the WD My Cloud HDD) to be used by a service (CrashPlan backup software) in Windows 8, something that I have achieved with this script: net use X: ...
3
votes
2answers
92 views

Looking for a way execute a task on all files in a directory (recursively) on Windows

I have a huge number of mp4 video files that needs to have a volume boost. I need a way to execute a ffmpeg audio filter on all files in a specified base directory (and in subdirectories as well). My ...
3
votes
2answers
4k views

Renaming with exiftool: how to deal with missing tags?

I'm dealing with an unorganized, big group of media files, captured using several different cameras and camcorders, and I'd like to use exiftool in a bash script to rename each file with its creation ...
3
votes
1answer
715 views

SSH port forwarding with automatic reconnect, script executing at startup

In short, every time my computer boots, I would like to start a ssh port-forwarding connection that will reconnect with the server if the connection drops. Computer is Debian Wheezy x64. An initial ...
3
votes
2answers
2k views

Creating Windows shortcuts from Chrome bookmarks

I have a very large number of bookmarks in Google Chrome. I want to transfer all of them to a windows folder, so that each bookmark will be a shortcut to a website (I want a list of shortcuts, just ...
3
votes
3answers
1k views

How to check if zip file is empty in bash

How can I verify if the zip file is empty or not ? I cannot use if -s in bash as the zip file is not always zero in size. if the zip file has empty directories in it, I want to delete the file else ...
3
votes
1answer
2k views

What software can I use to scrape (download) a MediaWiki wiki?

I want to scrape an entire wiki that uses MediaWiki software. The amount of pages are pretty small, but they have plenty of revisions, and I'd like to preferably scrape revisions as well. The wiki ...
3
votes
2answers
774 views

Is there a way to add a dynamic signature to an email?

I'm trying to create an email signature that will display differently on a recipient's computer based on what state their IP address is in. I was wondering if there are any known ways of accomplishing ...
3
votes
1answer
3k views

How can I batch/mass create users for a Filezilla FTP server?

I recently inherited two FTP servers; both systems run Filezilla Server. One has a small user-base so creating users is a small task. The other is huge and needs to have 300+ users created. I estimate ...
3
votes
2answers
3k views

How can I get an interface's bandwidth at any given second from the Linux command line?

I am doing a school project in which I want to get the bandwidth of a network interface at any given second, or some other small increment of time. I need this for a Perl script I am working on. ...
3
votes
2answers
7k views

Useful scripts for Sikuli

Thanks to Lifehacker I came across Sikuli which is described as: Sikuli is a visual technology to search and automate graphical user interfaces (GUI) using images (screenshots). The first ...
3
votes
1answer
951 views

Is there a reference to all Windows “errorlevel” by command?

Is there a reference to all Windows "errorlevel" by command? Looking for a page that defines all error levels, by command.
3
votes
2answers
5k views

Is there a way to get access to a window handle in windows using WSH, or WMI or similar?

Is there a way to get access to a window handle in windows using WSH, or WMI or similar? I just want to flag a window as always-on-top. Ideally I'd use windows script host for this. (Should also be ...
3
votes
3answers
248 views

How can I “invert” a directory structure?

I use a image processing tool which can batch output different sizes of the same image into the directory form: <specific directory>\<image size name> e.g. SuperBowl\Fullsize JPEG I ...
3
votes
1answer
972 views

Float integer division and setting variable value

I am currently learning the world of bash scripting. I am aware that bash by itself does not do arithmetic with floating integers. I have done some research and have found that there are tools that ...
3
votes
1answer
197 views

Specify the shell variant in Emacs local variables for the file

How can I specify the shell variant for a file in that file's Emacs local variables, when the file is not a standalone program? Emacs allows me to specify that a shell include file should be opened ...
3
votes
1answer
1k views

#!/bin/bash -e :: what is `-e`? other arguments?

I am a shell script coder that always opt to use shell as top level as part of my belt in creating website apps on the fly and have relied on my bash scripts if I want a project to be implemented ...
3
votes
1answer
301 views

Can't terminate a nohup process

I would like to send a SIGTERM signal to a nohup process, but this signal is completely ignored, only SIGKILL works, which is considered a bad choice to terminate a shell script. Do I have any options ...
3
votes
1answer
3k views

How can I execute a script each time I log in and out from OS X?

What I want is to send a URL with variables to a server which will track when someone is present based on when they login and logout of their workstation. I've tried setting the LoginHook in ...
3
votes
1answer
5k views

Outlook 2010 - using a VBA script in a rule

I was following the directions in a great post when I got to the step for selecting the name of the script to run. I have VB code in ThisOutlookSession, but for some reason, the name of the procedure ...
3
votes
1answer
150 views

Pidgin: a me-specific log file?

I'm trying to make a compilation file of all the text sent by me and all the responses that included my name.... What's the best way about scripting this? Is there a plugin like that for pidgin? ...
3
votes
1answer
100 views

Creating a batch file to launch the currently opened applications and folders

Example: If I were viewing example.txt in a Notepad and editing an image in GIMP, I'd like to generate a batch file that would launch those files using those applications after I've closed the ...
3
votes
1answer
912 views

Script firefox to print to PDF

I like finetuning my ebooks to make them look really nice, and since my e-reader has limited justification capabilities (that is, it's really bad at justifying text), I usually print my html books as ...
3
votes
2answers
530 views

sed: Replace an unknown number of patterns on the same line

I'm trying to use sed to search for a certain 'primary' pattern that may exist on several lines, with each primary pattern followed by an --unknown-- number of 'secondary' patterns. The lines ...
3
votes
1answer
855 views

Logging into webpage via script

I'm trying to automate the extraction of some information from a website that first requires me to log in. I have done this in the past (years ago) using wget, but that method no longer seems to work ...
3
votes
1answer
199 views

Prevent a repeatedly running console program from taking focus

I'm running windows 7. Every 10 seconds, a script will run that will send a popup command line box and close at the end of the script. In the meantime, when I'm using other applications, I am ...
3
votes
4answers
9k views

Input Error: There is no script engine for file extension “.vbs”

I keep getting it in command prompt, any idea why and how I may resolve the issue? Windows 7 Ultimate 32-Bit
3
votes
1answer
1k views

Create keyboard shortcuts to move/resize windows in Ubuntu

On windows I have a few AutoHotkey scripts that let me hit various key combinations to resize windows to particular pre-defined sizes, or move them to certain areas of the screen (or both). I'm ...
3
votes
3answers
7k views

How can I manually load/unload a driver in Windows Vista?

I think one of my drivers is causing some of my Windows Vista machines to boot extremely slow. Since the perf log is basically no help, I want to try manually unloading/loading drivers to see if ...
3
votes
1answer
89 views

How can I automate some simple steps within the GIMP?

I'm trying to use GIMP to automate 3 actions upon a user defined selection in the currently active image - Grow selection by 2 Add border to selection (width of 2, with feathered edges) Fill the ...
3
votes
1answer
5k views

How to add a network (IP) printer using command line or a script?

My company will be deploying a bunch of laptops that will be used during a seminar for people to sign up for services on our website. At the end of the signup process they will need to print out a ...
3
votes
3answers
2k views

Howto start an interactive script at ubuntu startup?

Based on Ubuntu core 12.04, I have prepared a bootable DVD. After booting (to console only), I can login as a user and start a script for installation of an embedded device: sudo install_script In ...
3
votes
3answers
70 views

merge pieces of file together

I have a directory tree of files I need to loop through and reformat the lines. can I do this with sed with some combination of find? for each file, I'll need to adjust the text in the file from ...
3
votes
2answers
500 views

Bash autocomplete for different directories

I've played with bash autocomplete now for a while, but couldn't find a solution for my problem. I have a project directory with subfolders like this: projects/ruby/project1 projects/ruby/project2 ...
3
votes
1answer
2k views

Run script at shutdown/reboot with systemd

I would like to run a script file when the system is called for shutdown/ reboot from 'reboot' and 'shutdown' commands. And if possible, also hard shutdowns like 'init 0' or 'poweroff'. How would I go ...