scripting

Create a client side hook script to prevent user commit to external in TortoiseSVN

My trunk has struct: \trunk ----\data ----\src ----\tool with \tool is external to another place, not in my trunk. So i don't want user commit to \tool in SVN. They can only commit to \data or \src. Can anybody help me to create a hook script to prevent user commit to external (in this case is \tool folder). ...

PHP script stops running arbitrarily with no errors.

I was working on a fairly long script that seemed to stop running after about 20 minutes. After days of trying to figure out why, I decided to make a very simple script to see how long it would run without any complex code to confuse me. I found that the same thing was happening with this simple infinite loop. At some point between 15 an...

Mac installer that runs a script

Hi, I need to create an installer for a Mac application that not only unpacks the information but executes an script before unpacking the information. Also I want an interactive application that asks for some parameters during installation. Do you know any tool to do that staff? Thanks! ...

How can I create 1000 files that I can use to test a script?

I would like to create 1000+ text files with some text to test a script, how to create this much if text files at a go using shell script or Perl. Please could anyone help me. ...

Syntax highlight file for the echo command (VIM)?

Hi! I am working in a Vim script. One of my functions needs a temporal display like the one you get when typing ":clist". I don't want a whole new buffer since I am so lazy that I prefer typing just one key to delete the info. I am stuck with the syntax highlighting of the echo command. I want to apply a whole syntax file but so far I'v...

How to get current username in Windows Powershell?

How to get the current username in Windows Powershell? ...

Bash scripting problem

cat hosts.txt | while read h; do telnet $h; done When I run this, it telnets to first host which denies the connection but then exists instead of looping over the other hosts in the file. Why is it exiting the loop after the first host and how can I fix it? Thanks. ...

Add a prefix string to beginning of each line

Hi, I have a file below : line1 line2 line3 And I want to get prefixline1 prefixline2 prefixline3 I could write a ruby script but it is better if I don't need to. EDIT: prefix will contains / , it is a path , /opt/workdir/ for example. ...

Why is this SQL script failing?

Hi, I'm trying to run a SQL script against SQL Server 2005 as part of the set up for my integration tests. The script works perfectly fine if I execute it from within SQL Server Management Studio. However, when executing programmatically, this part of the script that enables full-text search refuses to work: -- lots of tables and index...

Create Tablespace Script in Oracle 10g

Hi Experts, I am using the below script for generating a DDL to create tablespaces in the database. select 'create tablespace ' || df.tablespace_name || chr(10) || ' datafile ''' || df.file_name || ''' size ' || df.bytes || decode(autoextensible,'N',null, chr(10) || ' autoextend on maxsize ' || maxbytes) || chr(10) || 'default...

Bourne Shell For i in (seq)

I want to write a loop in bourne shell which iterates a specific set of numbers. Normally I would use seq for i in `seq 1 10 15 20` #do stuff loop But seemingly on this Solaris box seq does not exist. Can anyone help by providing another solution to iterating a list of numbers? Thanks, Chris ...

Remove line breaks in Bourne Shell from variable

In bourne shell I have the following: VALUES=`some command that returns multiple line values` echo $VALUES Looks like: "ONE" "TWO" "THREE" "FOUR" I would like it to look like: "ONE" "TWO" "THREE" "FOUR" Can anyone help? ...

TFS: Can I have a script run when I create a new label?

We're using TFS 2008 for our source control. We're currently doing embedded work so our actual build process is using Analog Devices VisualDSP++ IDE. However, we do still use labels on TFS. What I had hoped was for the ability to have a script run when a label is applied. The idea here is to update version information in some data files....

How to programmatically determine the installed version of IE from a script

We have an automated testing cluster based on selenium-grid. To manage the cluster, I have built a collection of Rake (Ruby) tasks which can start, restart, ping, and stop nodes. I'm testing our application across a number of browsers including IE6, IE7, and IE8. This means each node in the cluster has to be aware of which version of IE...

Script generation using GUI

Hi, Is there an example for a project a GUI fro script generation? The idea is to let a non-programmer use a front end to enter command and simple logic that will translated to runnable scripts. The programming language does not meter. thanks ...

Write a cmd line script to parse an xml file

What would be the best solution to check (from the command line with a script), if a certain xml file contains this line: <endpoint uri="endpoint.php" class="flex.messaging.endpoints.AMFEndpoint"/> or this line <!-- <endpoint uri="endpoint.php" class="flex.messaging.endpoints.AMFEndpoint"/> --> and stop execution if the second one ...

Use of general-purpose scripting languages

Hello! There are many scripting language communities claiming that the language can be used for everything but in fact, nearly everybody uses it for one specific thing, e.g.: web development. If I take a look at Ruby, for example, they tell you its general-purpose but actually everybody is using it with rails for web development only.. ...

How to make a lua app for PSP?

I am trying to use Luaplayer HM v2 on my PSP, but I am unable to make a simple Helo World app. I have tried a lot of thing's but it simply doesn't work. All tutorials, app that I found are for LuaPLayer, I cannot find anything for Luaplayer HM v2. Please help me I need some tutorials or sampels for Luaplayer HM v2. Luaplayer app don't...

comparing csv files

I want to write a shell script to compare two .csv files. First one contains filename,path the second .csv file contains filename,paht,target. Now, I want to compare the two .csv files and output the target name where the file from the first .csv exists in the second .csv file. Ex. a.csv build.xml,/home/build/NUOP/project1 eesX.ja...

Converting output of `hg history` into a dot file

How can I take the output of hg history and convert it into a dot file? ...