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)

1
vote
2answers
791 views

Programmatically reconnect to wifi network

Sometimes I work with frequently-dropping wifi connections. I can either reconnect manually or wait some time (varies from few seconds to few minutes) before windows attempts to reconnect. Is there a ...
6
votes
4answers
4k views

Script to move specific user folders in Windows 7

When I install Windows Vista/7, I move some of my user folders onto a new partition (i.e. Documents, Musics, Pictures, etc.). This does not include moving the whole User directory, just some of the ...
3
votes
2answers
4k 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 ...
2
votes
5answers
751 views

cannot run CMD script from Vista windows explorer

I am running Vista Home Premium. I tried to write a script to do some simple automation.... it does not work! even the most simple script like: @echo ON dir . does not get executed and only an ...
0
votes
1answer
631 views

Outlook 2007 script error

I'm trying to set a folder homepage on Outlook 2007. The page works fine on this PC, but when I try it on another machine (specifically a Citrix session), I get a script error as per screenshot: ...
22
votes
7answers
93k views

Running bat file at startup as administrator in Windows 7

I'm currently running a startup script in form of a bat file successfully in Windows 7 (I've inserted a new registry key entry with the bat file path as value in ...
0
votes
2answers
2k views

IE Proxy Exceptions List

Does anyone have a script that can modify the proxy server exceptions list in Internet Explorer? If so, is it compatible with IE6 and up?
1
vote
2answers
2k views

FTP script won't transfer remote files to local computer

This is a follow up to FTP BAT file - Windows Scheduled Task. I copied the FTP script, but I can't transfer the files to my local computer. All I get is this (server address omitted): 331 ...
4
votes
1answer
5k views

Setting file creation date in Mac OS X

I need a script to set the creation date to the modification date for a bunch of files created by my sound recorder - any way to do this? Running Mac OS X 10.4.11
0
votes
3answers
1k views

run script on first boot, and on shutdown

We are using a web based punch in/punch out clock at work, and I only need to double click two nice icons to send the proper commands to the server when I get to work in the morning, and finish work ...
0
votes
6answers
3k views

How to use ssh from shell script without waiting for password?

I can not use public key method. I also don't want to use expect script. I searched this site for solution but everybody is talking about these solutions. Is there any other way like command line ...
1
vote
2answers
110 views

Security issues related to storing secrets in scripts

Let's say you have a program you want to run unattended, as root, which requires a secret (such as a passphrase; something you don't want other people to find out), which can be read from an ...
5
votes
5answers
15k views

How to replace a single character in Windows filenames using a batch file?

I have a Windows Server 2003 server that has a whole bunch of filenames that need renaming. Basically, I just need all - (hyphens) replaced with _ (underscores), no matter where they are in the ...
2
votes
1answer
191 views

md5sum only new files?

I have a directory containing files and an md5sum.txt file. I add a file new files to the directory. I would like add md5sum sums for all files that are not in md5sum.txt. Is there a simple way to do ...
12
votes
3answers
11k views

Create a logoff script/task for Linux

In similar vein to my question for Windows and Mac OS X, how would one go about creating a logoff script for Linux? Any distro is fine, as I'm sure it'd be extendable across others. I'm most ...
2
votes
1answer
5k views

Create a logoff script/task for Mac OS X

Related to my other question on Windows, how would one go about creating a logoff script for Mac OS X?
1
vote
3answers
4k views

Create a logoff script/task for Windows

Without using AD GPOs (Active Directory Group Policy Objects), or similar, how would one go about creating a logoff script for Windows? This would be for XP (home and pro), Vista, and 7, in a ...
1
vote
5answers
602 views

Traverse path up and check/set permissions in shell script - how?

In a given shell script I need to take a known path and check it upwards (to the file system root) for correct permissions. How would I split the path and walk upwards in a shell script (can be bash ...
1
vote
2answers
2k views

Windows 7 Action Center messages via script

I would like to know how to read, via vbscript, WMI, Powershell etc -the new Windows 7 Action center messages that the user normally gets informed of. I want to read all those messages on each ...
2
votes
2answers
779 views

Virtual PC Scripting

Does Microsoft Virtual PC have any scripting capabilities? I'm trying to automatically launch a web browser inside the VM and have it go to url specified by a parameter.
4
votes
3answers
764 views

Windows Startup and Shutdown scripts

In the group-policy editor, I see an option to add scripts to be executed on Startup and another option for scripts to be executed on Shutdown. Are these intended for personal use? And if so, are ...
11
votes
1answer
7k views

Is there a way to call a script when Ubuntu wakes up from suspend or hibernate mode?

I have a little shell script that I run automatically when I log on to my Ubuntu machine; it will set the parameters of my touchpad the way I like it. However, when Ubuntu wakes up after being ...
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 ...
1
vote
4answers
1k views

What can I use to simulate user actions within firefox

Is there a tool/scripting language that would permit me to run a script in firefox? It is for page testing -- Ideally I could release a version, and it would simulate the user by waiting, clicking, ...
0
votes
1answer
932 views

MyDefrag Script: Shutdown after Completion?

I'm looking for a script that shuts down my PC after it completed the procedure. Preferably inside the standard scripts!
0
votes
1answer
52 views

Script for preriodic emailing to a list of addresses from an Excel/Access DB?

I'm looking for a program/script, better if it's OpenSource/Free, that can periodically send an email to a list of addresses that are in an Excel File or Access DB. I know I could hack something ...
0
votes
4answers
103 views

How to make a script to invoke all others scripts matching a pattern

I have a directory with a lot of scripts to generate figures. All the scripts match the pattern fig*-gen.sh I would like to have a bash script (named allfig-gen.sh) to invoke all figure generation ...
0
votes
3answers
1k views

Internet Explorer Script Error when closing System Information window

When I close the System Information window I get the following error: Internet Explorer Script Error An error has occurred in the script on this page. Line: 86 Char: 1 Error: Object expected Code: 0 ...
1
vote
1answer
69 views

What's the best way of telling Kaffeine to play in random order the 15 newest files in a directory in linux?

I want to be able to use kaffeine or another media player to randomly play an arbitrary number of the newest files in a particular directory. Preferably with as little typing as possible, and I am ...
0
votes
3answers
6k views

How to get outlook email attachment onto a file server?

Background: Every work day I get an e-mail message from a known sender. The sender puts an attachment in the e-mail message. I have to process that attachment with a python script. Question: What ...
1
vote
3answers
2k views

How to write a script to accept any number of command line arguments? (UNIX, BASH)

I have a script that I want to accept any number of command line arguments. So far I have if [ -O $1 ] ; then echo "you are the owner of $1" else echo "you are not the owner of $1" fi ...
0
votes
1answer
837 views

Error 502 in OpenOfficeSpreadsheet formula

The formula failing is the following: =IF(TIMEVALUE(C2 & ":00") > TIMEVALUE(B2 & ":00"); 0; C2-B2) I previously tried =IF(C2 > B2; 0; C2-B2) but this also gives me "Error 502". ...
1
vote
2answers
3k views

Script in UNIX (Bash) to determine if the user is the owner of a file

Something that would take any number of arguments, where each argument would be a path to a file or directory. If the user does own a particular path then it should check it to see if the path ...
6
votes
6answers
12k views

How to make a statement that checks if something is divisible by something else without a remainder (BASH)

#!/bin/bash Echo “Enter a number” Read $number If [$number ] ; then Echo “Your number is divisible by 5” Else Echo “Your number is not divisible by 5” fi the if [$number] statement is what ...
6
votes
3answers
927 views

Linux: How do I execute a script in a way that it knows its directory?

I need to write a script, which would be called from any location, but needs to run from the directory it resides in. The script should query its directory at runtime. How can this be achieved? ...
1
vote
4answers
2k views

avisynth (or a like tool) for linux

Is there a way to run avisynth on linux? OR Is there a similar tool? That is, a way to write a script file that can be played in a video player and/or fed into an encoder, etc. Update: My distro ...
2
votes
2answers
3k views

Is it possible to access the shell (Darwin) on an iPhone?

In order to write some little script for example.
2
votes
6answers
2k views

Is there a way to tell if a file is done copying?

The scenario is this: Machine A has files I want to copy to Machine C. Machine A can't access C directly, but can access Machine B that can access Machine C. I am using scp to copy from Machine A to ...
5
votes
2answers
601 views

Good log colorizing script?

I'm looking for a script which I can pipe a log into, specifically the tail -f of a log, and it will colorize it. Log would be in syslog format but if there's a program that handles multiple formats ...
21
votes
4answers
13k views

Looping Through Subdirectories and Running a Command in Each

I have a set of repositories sorted into directories based on their VCS (Git, Mercurial, SVN). With Subversion I was able to run svn update * in the parent directory and it would loop through each ...
0
votes
4answers
194 views

Get XMMS2 to call outside script on automatic playlist advance?

Is there a way to get XMMS2 to call an outside script when it advances in a playlist - either automatically or via manual intervention (e.g. xmms2 next)? The goal is to have balloons pop up on my ...
11
votes
4answers
3k views

How to set a Linux Ditribution to self-destruct (to wipe everything from the system partition) via a script

I know this is a rather strange question, but I actually need to implement something like this for work. I shall be helping to facilitate a course that uses licensed software. The software is somewhat ...
10
votes
3answers
2k views

Calling a script with ./bla.sh vs. . bla.sh

Can anybody explain to me what the shell does in the two examples A) and B) below? It obviously behaves differently, but I can't find out why the output is different. Example: Let's have a script in ...
5
votes
1answer
13k views

What is a DDL script in the context of databases?

What is a DDL script in the context of databases?
0
votes
2answers
4k views

How would I go about modifying Firefox's about:config settings via an external .bat file?

I would like to change the value of a particular about:config property via a script external to Firefox. Have any of you tried this before? I've read that you can modify "prefs.js", but I was ...
61
votes
13answers
18k views

Add directory to $PATH if it's not already there

Has anybody written a bash function to add a directory to $PATH only if it's not already there? I typically add to PATH using something like: export PATH=/usr/local/mysql/bin:$PATH If I construct ...
4
votes
2answers
2k views

Sending mail from the command line, in an automated way

I want to be able to send a text file through an SMTP server of my ISP (port 25) to an email address on the internet, like my Office email address, or my GMail address. I have a basic Ubuntu 9.04 ...
0
votes
1answer
540 views

On Ubuntu 9.04, is there any way to automatically email text files through a script?

I've been actively tweaking my backup script on an Ubuntu 9.04 Jaunty Jackalope Machine - as it is now, the script uses rsync and cron to backup certain folders several times a day. At the end of the ...
11
votes
3answers
5k views

How do I launch a bash script from Finder in OS X?

How do I launch a bash script from Finder in OS X? I'm OK working at the CLI, but my little script is not so loved by my GUI-bound colleagues.
0
votes
1answer
2k views

What's the best way to convert this complex “takeown” command into a shutdown script?

I found this command here. The command is structured as a registry modification that will add a "Take Ownership" entry in the standard Windows Explorer file/directory context menu. I can see where ...