scripting

Cruise control.NET

Hi , I am just a beginner in cruise control.NET.My doubt is that is there any way by which cruise control.NET can detect changes in the local folder itself(for eg:C:/MYSource)rather than look for changes in the source control repository.I need to force the build all the time from the web dashboard to build.I want cruise control.NET ...

Cruise control.NET to ignore changes in some local folders?

hi, Thanks for the great help u had done .Infact i was now able to detect modifications in my local folder itself.But now i face another bottleneck. When my cruise control.NET detect any modifications in my source files it starts building and it checks by polling every 60 seconds. Now the results of the build files are getting popula...

How to run two processes as though they were one in bash?

hi, I've got two commands foo and bar. foo runs for a long time without stdin or stdout/stderr activity. bar is a client of foo and runs with stdout/stderr but no stdin activity. I'd like to run them from one shell, being able to kill both with ctrl-c, and to see the output from bar as it occurs. i.e. something like this sequence fo...

Creating a script for a Telnet session?

Hello, Does anyone know of an easy way to create a script that can connect to a telnet server, do some common telnety stuff, and then logoff? I am dealing with users who are not familiar with telnet and the commands they will need to run. All I want is for them to double-click on a script, and have that script auto-magically run the c...

How to copy a directory structure in ruby, excluding certain file extensions

I want to write a ruby script to recursively copy a directory structure, but exclude certain file types. So, given the following directory structure: folder1 folder2 file1.txt file2.txt file3.cs file4.html folder2 folder3 file4.dll I want to copy this structure, but exlcude .txt and .cs files. So, the resulti...

Cruise control.NET invoking an IDE

Hi, I have an IDE named VxWorks 653 2.2.3 Development shell which needed to be invoked all the time when i notice any change in my source files.So i had invoked this shell through a VB scripts which invokes two more .bat(Batch files) to get this shell popped up for execution.Now i feel that since my IDE can be invoked by command lin...

Vim: need help with a tiny script code to highlight.

Hi. I need a script code to highlight "[Capítulo" and "]" and everything between them. Thank you. I want it to work everytime I open , for example, a .txt file. Just like code highlighting. ...

Is there a quick-starting Haskell interpreter suitable for scripting?

Does anyone know of a quick-starting Haskell interpreter that would be suitable for use in writing shell scripts? Running 'hello world' using Hugs took 400ms on my old laptop and takes 300ms on my current Thinkpad X300. That's too slow for instantaneous response. Times with GHCi are similar. Functional languages don't have to be slow...

Cruise control.NET tracking the number of times source files are changed??

Hi all, i have configured a ccnet which actually sniffs for the modifications in my source files present in my local system.My ccnet.config file will poll every 4 minutes to check for any modification in the source files.So the problem is like if i modify the same file twice,when the ccnet polls what i see in the command window ...

How to capture the result of a system call in a shell variable?

We want to build a script that run every night (kills and restart a java process). For that we need to capture the process number (since there could be more than one java process running). The command below is basically what we will use to obtain the processes number, probably with a regexp at the end of the grep. Unless any better su...

Launching a .py python script from within a cgi script

I'm trying to launch a .py script from within a cgi script while running a local cgi server. The cgi script simply receives some data from Google Earth and passes it to the .py script which is currently being called using execfile('script.py') placed at the end of the cgi script. The script runs to completion, however script.py contains...

How do I access my rails database from a task in lib/tasks?

I am developing an app that needs to send text messages, so I have carrier information stored in a database. I also need that information in an XML file for client side code to read. To make this happen, I am writing a script that reads the carrier information from the DB and creates an XML file in the config directory. I felt this sc...

Who does non-decimal bignums with floating radix point?

Nice as the Tcl libraries math::bignum and math::bigfloat are, the middle ground between the two needs to be addressed. Namely, bignums which are in different radices and have a radix point. At present math::bignum only handles integers (afaict) and math::bigfloat won't let you specify different radices to math::bigfloat::fromstr (ditt...

run the output of a script as a standalone bash command

suppose you have a perl script "foobar.pl" that prints the following to stdout date -R and you want to run whatever that perl script outputs as a standalone bash command (don't worry about security problems as this is running in a trusted environment). How do you get bash to recognize this as a standalone command? I've tried using x...

Cruise control.NET Integration queues??

Hi , This is a doubt regarding the material published in the following link "http://confluence.public.thoughtworks.org/display/CCNET/Integratio+Queues" which tells that "The default behaviour of CruiseControl.Net is that each project defined in the configuration is given its own integration thread, thereby allowing differently nam...

How can I have a PHP script run a shell script as root?

Running Fedora 9/10, Apache 2, PHP 5... Can I run a shell script as root, from a PHP script using exec()? Do I just give Apache root priveleges, and then add "sudo" in front of them command? Specifically, I'm trying to start and stop a background script. Currently I have a shell script that just runs the app, start.sh: #!/bin/bash ...

Env Variables in Python (v3.0) on Windows

Hello all. I'm using Python 3.0. How to expand an environment variable given the %var_name% syntax? Any help is much appreciated! Thanks! ...

scriptable FTP client

I need to have a script download all file in a given directory. I only have ftp access. A quick test shows that I can't talk my ftp client into logging in from the command line. Even after trying Arnshea's answer it refuses to read the password from the file or stdin. Even after logging in I can't download wild cards. (fixed with mget,...

Advice for Windows XP Scripting, WSH versus PowerShell

After much experience scripting in the Unix/Linux open-source world, using languages such as Bourne Shell, Perl, Python, and Ruby, I now find myself needing to do some Windows XP administration scripting. It appears that the legacy environment is Windows Script Host (WSH), which can use various scripting languages, but the primary langua...

Compare many text files that contain duplicate "stubs" from the previous and next file and remove duplicate text automatically

I have a large number of text files (1000+) each containing an article from an academic journal. Unfortunately each article's file also contains a "stub" from the end of the previous article (at the beginning) and from the beginning of the next article (at the end). I need to remove these stubs in preparation for running a frequency an...