scripting

error handling in nant build scripts

Hi I am writing a NAnt build script which is responsible for deploying some files to an iss server. As part of this I would like to add error handling to my scripts - something which I haven't used before. Introducing error handling inevitably leads to thoughts about the structure of the build file(s). I think of structure as the grou...

Scripting out Oracle objects

I have recently been given an existing oracle database that i want to script out the various objects and its static data so that i can place the objects under source code control and when necessary rebuild the database from scratch. Does any one have any scripts or tools that i could look at to assist me. ...

PL/SQL "SQL Command not properly ended" error

I am currently working on developing some SQL scripts in PL/SQL Developer and I am getting an "SQL Command not properly ended" error that I am unsure how to solve. The code I am using looks something like this CREATE TABLE temp_table as SELECT * FROM table_x INSERT INTO temp_table SELECT * FROM table_y If I execute the two ...

SQL Server 2008 web management scripts?

Hello, does anyone know what SQL Server 2008 management scripts exists (except myLittleAdmin)? Thanks Clarification: I'm looking for web based management script (which supports SQL Server 2008) other than myLittleAdmin. ...

Simplifying algorithm testing for researchers.

I work in a group that does a large mix of research development and full shipping code. Half the time I develop processes that run on our real time system ( somewhere between soft real-time & hard real-time, medium real-time? ) The other half I write or optimize processes for our researchers who don't necessarily care about the code a...

What are the pros and cons to use iPhone/Android phones to write scripts?

What are the pros and cons to use iPhone/Android phones to write scripts? I'd like to buy a new mobile phone which I can utilize my time to do some scripting even when I'm not at my desktop computer. I heard that you can't save files to your iPhone unless you jail break it. This maybe a big problem if I want to create some new scriptin...

Programatically install Certificate Revocation List (CRL)

I need to download and install about 50 CRLs once a week and install them on several Windows servers. Downloading is the easy part, is there a way I could script the CRL import process? ...

How can I capitalize the first letter of each word?

I need a script in any language to capitalize the first letter of every word in a file. Thanks for all the answers. Stackoverflow rocks! ...

Scripting the Websphere 7 RAD

We need to prepare part of our EAR for deployment, we usually do this by loading it into the RAD, right clicking on the EJB and selected "Prepare for deployment" option. Then we export the EAR. Is there a scripting interface to the IBM RAD 7 application or running the prepare from the command line so we don't have to manually go through...

Remove Confirmation Box vbs script

I have the following code where i could send mail through my configured outlook. I can run this vbs using a rule in my outlook which in turn send a mail to the email specified in the script But i am getting a confirmation box asking a virus or not while running this script to send a mail. How to get rid of this confirmation box to mak...

Pass variables between C++ and Lua via Swig

I'm working on a C++ project with a large number of classes (150+), each of which has anywhere from 10 to 300 fields or so. I would really like to be able to provide a scripting interface for testing purposes so that I can code callbacks that don't require any re-compilation. I'd like to do this in Lua since I'm more familiar with its C ...

Grep Recursive and Count

Need to search a directories with lots of sub-directories for a string inside files: I'm using: grep -c -r "string here" * How can I total count of finds? How can I output to file only those files with at least one instance? ...

How can I get Powershell TabExpansion to print all the possible completions?

The default TabExpansion in Powershell cycles through the possible completions for the fragment on the command prompt. Internally in the PowerShell host, there's a circular buffer, and the first TAB fills the buffer and puts the first potential completion on the prompt. Subsequent TABs cycle through the list of possible completions. ...

What scenarios are enabled by scripting or automating an IM client?

What can I do with an API for an IM client? Why do I want this? What new scenarios are opened up? How can I take advantage of it? Is it something I can graft into existing apps? or are IM APIs primarily targeted at enabling new types of applications? ...

Unable to refer to a parameter in Bash

I want to put TextA to the beginning of TextB by cat TextA A TextB The problem is that I do not know how to refer to the first and second parameters, that is TextA and TextB in the following script called A: #!/bin/bash cat TextA > m1 cat TextB > m2 cat m1 m2 > TextB where m1 and m2 are temporary files. How can you refer ...

how to run php script in eclipse

I installed Eclipse PDT-all-in-one-win32-2.0.0GA and WampServer 2.0. I try to run as PHP Script in eclipse but I have this error: "The current debugger does not have any defined PHP executable." How do I create this .exe ?? ...

Scripting language that can produce a small, independent, Windows EXE?

I'd like to do some light data processing - a little binary data manipulation followed by conversion to text serialization. The result is written to a file, and processed by an external program (run by my program). The data processing is more than I'd care to consider doing in batch files. I'd prefer to use a scripting language, but n...

Script to create a listing of: <Method Name> <Num of times called> for a particular project directory.

Anyone know of a script to get a listing that will be able to tell me the most frequently called functions for a C project? method1 391 method2 23 method3 12 Even better have it be customizable to require a keyword in the method name "get". I'm trying not to reinvent the wheel and write a simple script to do it myself. Probably an ea...

Putting the output of a command with interaction inside a variable while using grep in bash

This program I use has it's own variables to set when you run it, so I want to set those variables and then greping the output then storing it inside a variable. However, I don't know how to go about this the correct way. The idea I have doesn't work. The focus is on lines 7 through 14. 1 #!/usr/local/bin/bash 2 source /home/gempak/NA...

How to Remove ReadOnly Attribute on File Using PowerShell?

Hi, How can I remove the ReadOnly attribute on a file, using a PowerShell (version 1.0) script? Thanks, MagicAndi ...