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
2k views

Access e-mails on an Exchange server with a scripting language

I have several daily reports that are automatically e-mailed to an Exchange account that I normally access through Outlook Web Access. As part of my job I get to log in daily and record numbers into a ...
0
votes
1answer
391 views

Executing PHP script from command-line

It has been a while since I did any scripting with php. Now that I'm back at it, I find I'm missing something simple. Currently, the only way I am able to run my scripts is with the php command in ...
2
votes
1answer
1k views

Checking VBScript for syntax errors without actually running the script

I have a script in VBScript. I'm not sure if it contains any syntax errors or other non-runtime errors. Normally I would just run the script, but I don't want the script to actually run because the ...
3
votes
0answers
714 views

Python and Google Sketchup

Is there any way of scripting Google Sketchup using Python rather than Ruby? I have had a look at SuPy but unforturnately I'm working with Python 2.6 rather than Python 2.5 which SuPy appears to ...
1
vote
3answers
1k views

Framework for interactive shell script (bash)

My current project runs a tests system on a linux box (with 9 active screens) The whole team are familiar with how to kick off a test &c. but less familiar with the commands for checking ...
1
vote
0answers
715 views

Retrieving a registry variable in a batch script

I wish to write a batch script (windows XP) that extracts certain installation paths from the registry. How would one go about writing such a script? I have written the following - I am (as you ...
1
vote
1answer
2k views

How can I manually generate a fake ACPI lid event from a script in linux?

I'm trying to make sure that my laptop will suspend if I unplug it after the lid is already closed, and I believe that one way to accomplish this would be to simulate an ACPI lid event when the power ...
0
votes
1answer
757 views

How to run script before starting vpn connection?

I need to run a bash script BEFORE connecting to a vpn (which I do by clicking the network manager applet). I need this script because when connecting to the vpn the routes are incorrect. The script ...
0
votes
1answer
89 views

Timing issue with autohotscript, fails to dump or open destination file

I've created a autohotscript to quickly dump selected text into my jot file on the Desktop and I think I'm facing a timing error. The script works like thus: Select text when reading a text file, ...
2
votes
1answer
817 views

How can I easily place multiple powershell windows on login?

I like to have a 2x2 grid of powershell windows open on my alternate monitor, but I'd prefer not to have to open and resize each one by hand. I can set the window size (through ...
1
vote
4answers
4k views

Simple Way To Display Script Output On Windows Desktop? (Like GeekTool on OSX)

I'd like to display the output of some command-line scripts on my Windows desktop. I believe Rainmeter and Samurize can do this, but I find Rainmeter kind of baffling and frankly it's just overkill ...
0
votes
2answers
902 views

Changing MAC address in a linux machine (fedora 8)

I am doing a test on MAC learning and for that ,I need to change my MAC address of linux machine while the interface is UP. To be more clear, consider eth1 in a fedora core 8 machine. And while the ...
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
4
votes
4answers
16k views

How do I make a script run upon startup of the Ubuntu machine?

I want to run /home/myuser/go.py How do I make that run in the background, everytime my linux machine boots up?
6
votes
4answers
8k views

How to execute a shell script with selected files/folders in finder?

I'm coming from Linux where it's easy to run a script against a set of files in nautilus or dolphin, but I was kind of surprised to see that this isn't easy in OSX. Preferably, I would love to be ...
3
votes
4answers
2k views

sudo displays typed password in bash script

I have a bash script that uses sudo a few times. There's a couple of strange points about it though. It asks me for my password a few seconds after I've already entered it for a previous command. ...
0
votes
2answers
4k views

Passing url parameters to Firefox but open urls in new windows, not tabs

I want to open around 10 instances of firefox using the command line like firefox.exe www.google.com www.msn.com www.yahoo.com But by default, firefox opens these web pages in tabs, i want firefox ...
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 ...
13
votes
1answer
10k views

does %* in batch file mean all command line arguments?

does %* in batch file mean all command line arguments?
0
votes
1answer
263 views

Active Directory VBS Script for Auditing a Presentation

Can anyone help me with this VBS script? Thanks in advance. User logs in to a XP computer and a PowerPoint presentations or web page starts They read through the presentation and then click a links ...
0
votes
2answers
69 views

Is there a website to ask for people to make script for you? [closed]

I don't have enought knowledge to make something that would do what I want. I there somewhere I could ask someone else to do the job? I think I already stumble upon something like this, each post was ...
7
votes
2answers
2k views

VIM plugin creation tutorial?

I'd like to make a script that executes a series of commands (basically just two lines): :v/\S/d :w But i cant find a tutorial about how's done. Anyone?
0
votes
1answer
306 views

How to exclude HTML elements by ID or class using HTTrack or bash script

I need to copy a website, but I want to exclude specific HTML elements by ID or class in all pages (using a bash script). I need this because I don't want ads or some other annoying features of some ...
2
votes
3answers
493 views

A BASH script that will copy the contents of the directory so long as the average system load is low?

For reasons I won't get into, I need to copy directories so long as the average system load is low. Can someone help me write a BASH script that will copy the contents of a directory, but check to ...
1
vote
1answer
1k views

Is there a way to programatically set the printer properties in Windows?

As a paper saving drive throughout the organization, we plan to set 2 page printing as default setting on all the Windows machines. I would like to contribute to this by writing a small script that ...
2
votes
2answers
763 views

Linux script that indicates time the server was offline?

Below is data taken from my dedicated server: root@namhost [~]# last root pts/0 XXX Tue May 18 09:46 still logged in root pts/0 XXX Mon May 17 08:51 - 12:18 (03:26) reboot ...
0
votes
1answer
608 views

dialup connection script

I've just started working for a company who produce a specialist modem. In the test department they simulate actual use with a bunch of pc's acting as clients connecting over this modem. As such ...
4
votes
3answers
1k views

I want to execute the commands in a loop at the same time, not one after another

I'd like to write a loop ('for') that will do some action 'X' number of times. But instead of performing the actions sequentially, one after another, I'd like them to execute simultaneously (in ...
1
vote
3answers
2k views

How to assign shortcut to applescript per application or how to show per application scripts menu

There are applications which have script icon in menu like iTunes, NetNewsWire, TaskPaper and it is easy to create script for those apps and assign shortcut (using Keyboard pref pane), but most don't ...
1
vote
1answer
197 views

IF commands in a batch file

I'm writing a small batch file to replace users' themes and charts in Office. I have the below batch file that works just fine. cd c:\documents and settings\%username%\application ...
0
votes
3answers
125 views

how to display permissions to biggest file?

I have a task to write a bash script showing permissions to biggest and smallest file in catalog. How I could obtain that ? I've tried ls -s but it shows me all files sorted by the size.
13
votes
5answers
25k views

What tool can generate MD5 from the command-line? [closed]

Is there any tool that can automate by script to generate file MD5? I used to use Cygwin but I am looking for another solution without having Cygwin installed.
1
vote
2answers
537 views

Windows PowerShell ISE doesn't import PSCX 2.0 module

i am using Powershell 2.0 with the PSCX 2.0 module. When writing PS scripts inside Windows PowerShell ISE no Cmdlets from the PSCX module are availible. For example running "Get-DriveInfo" from ...
1
vote
2answers
88 views

How Do I Automatically Update My Database Nightly

Currently, every day before I start work, I complete the following procedure: ssh to the production server gzip our daily database dump file scp the gzipped dump file over to my computer gunzip the ...
0
votes
3answers
1k views

shutdown.exe timer

I'm trying to run shutdown.exe -l -t 10 only showed shutdown help manual. I thought of inelegant but working solution of ping -n 10 localhost shutdown.exe -l How wasteful is this solution? ...
0
votes
1answer
154 views

Ubuntu: How do I set my app to start with the system?

I want 3 application to start as I login. How do I do it? (I'm using Ubuntu 10.04 if it makes any difference)
0
votes
4answers
718 views

How to do grap data between two file in Linux?

I have two .rtf file.... The first one have this content: Apple, Orange, Banana, Noodle, Chip The Second File is something like this: Apple I love eat Apple. Banana I hate Banana. ...
2
votes
2answers
14k views

copy file to multiple folders via batch script

I want to copy a file (file.txt) inside all folders of a given destination. I want to create a batch file that does the job, but I'm not so skilled in Windows batch syntax.
0
votes
2answers
272 views

Netstat -i redirection problem

When I run this command netstat -t 1 -i 2>&1 > $NETStat_OUT_FILE & inside a script , the output of netstat does not get redirected to the file.. Could any one find a solution for this ?
1
vote
1answer
6k views

Set Permanent System variable through bat file

This is a follow-up to Set Permanent Environmental Variable in Windows XP. I want to change System variables in XP through running a bat file. But when I run it I get the error "Too many command-line ...
6
votes
1answer
13k views

Set Permanent Environmental Variable in Windows XP

I want to set environmental variables permanently through a batch file. Is there a command to set Permanent Environmental Variable (other than SETX) for Windows XP service pack 3? command SETX ...
1
vote
2answers
2k views

How to write a script to move files from one FTP server to another?

What are some good ways to move file from a development site on a linux server to another linux server (which would be production). I will be working from a Vista system. Basically, I'd like to just ...
0
votes
1answer
433 views

Scripting around the lack of user:password@domain url functionality in jscript/IE

I currently have a jscript that runs a PHP script on a server for me. But I want to be at least somewhat secure so I setup a login. Now if I use the regular user:password@domain system it won't work; ...
1
vote
3answers
1k views

How Do I Parse a String?

I am new to bash, and I am creating a script that loops through the files in a directory and based on part of the filename, does something with the file, so far I have this: #!/bin/bash ...
3
votes
3answers
989 views

bash shell script which adds output of commands

Let's say I have a command called foo which prints a number to the screen when called: $ foo 3 Let's also say I have another command called bar which prints another number to the screen when ...
0
votes
1answer
264 views

logging into network share

I am logging into a network share through a batch script to start a test I can get the shared program logged in but then up comes the windows prompt "run" or "cancel". Not all of the machines have ...
6
votes
2answers
11k views

How to list manually installed software packages in Ubuntu? [duplicate]

Possible Duplicate: How do you track which packages were installed on Ubuntu (Linux)? Hello, I'm using apt-get install to install various software on my PC. I have a handful of PCs that ...
1
vote
4answers
115 views

Autodelete/autorename mp3s?

I need a way that I can automatically scan my whole drive and rename my *.mp3 to *.3pm or delete them. How I could do that?
2
votes
5answers
3k views

Problem with running a script at startup as root?

The main question: Is there a way I can run 'completely' one of my script when ubuntu's desktop appears no matter if root , administrator, desktop user or an unprivileged user logged in? What does ...
14
votes
4answers
33k views

Remotely run script on Unix, get output locally?

I need to run a (Tcl, or whatever) script on a remote Unix machine, from a (local) Windows command shell, and I want the stdout/stderr of the script to show up in the Windows CLI. The exit code would ...