scripting

Script for creating development environment folder structure ?

How would look like a simple script ( cmd.exe batch, *nix shell , perl , python or whatever .. ) for creating folder structure for development environment. Suppose we are in a project where we need more than 10 developers to bring in and we do want to ensure that all of them get the same libs and environment to ensure that "we are on t...

How do I automatically update a subversion repository?

Does anybody know how I can run automatic update subversion? If anybody has a script or something like that, could you show me an example? ...

How to get script file path inside script itself when called through sym link

Hi, When I need to get path to the script file inside script itself I use something like this: `dirname $0` that works file until I call the script through sym link to it. In that case above code prints the location of the link instead the original file. Is there a way to get the path of the original script file, not the link? Than...

How to find information in a file using regular expressions on Linux

Hi, I have a file with many lines in it. One of them look like : set auto_upgrade {1 2 3 4} The list can contain more numbers. Now, in a shell script I want to look into this file and find out what is the last number in the list. In the example above, it should find 4. I have a regular expression to find this : set auto_upgrade {...

Windows equivilent to UNIX pwd

How do I find the local path on windows in a command prompt? ...

Database design for conditional actions

I'm working on something of a wizard-type application to allow users to build simple "scripts" that basically perform actions based on certain conditions. Scripts that they build will be stored in a database, and modification will be common, so some sort of forward-only text generation is not an option. My program converts this internal ...

Advice on a Canadian SMS Gateway provider

Hey everyone, I am curious as how to how much trouble / money it would be for me to be able to accept incoming text messages to a number, which I would then pass to a server side application in PHP. I'd ultimately send SMS messages back out via email addresses. Does anyone know any good Canadian providers to accept incoming SMS message...

IronPython, Click Once, .NET 2.0 Error - thoughts?

...

How to start a process on a remote server, disconnect, then later collect output?

I am writing automation code in python to test the behavior of a network application. As such, my code needs to be able to start a process/script (say, tcpdump or a python script) on a server in the network, disconnect, run other processes and then later return and shutdown/evaluate the process started earlier. My network is a mix of w...

sh read command eats slashes in input?

Perhaps easiest to explain with an example: $ echo '\&|' \&| $ echo '\&|' | while read in; do echo "$in"; done &| It seems that the "read" command is interpreting the slashes in the input as escapes and is removing them. I need to process a file line by line without changing its contents and I'm not sure how to stop read from being s...

How to check in a bash script if something is running and exit if it is.

I have a script that runs every 15 minutes but sometimes if the box is busy it hangs and the next process will start before the first one is finished creating a snowball effect. How can I add a couple lines to the bash script to check to see if something is running first before starting? ...

Mixing Single and Double Quotations in Bash

Alright, I have a script that takes a few arguments, runs data, and then rsyncs the data out to a different server. The problem is that to run the data, I have to take one of the arguments and then run a report using it, which is very bash unfriendly (Ex. [3023.2<>1], [5111.3$]="5", etc). So if I'm going to run the command, I need t...

How to fill Web Form from Flash or Javascript?

I am looking for a solution to fill web forms from flash or javascript. The "filling" should be done non-visually. The "filling" should be initiated from user computer, because I need to access local network resource. Just by looking at Selenium and iMacros I can tell that creating player that is smart enough is a pretty big project. I ...

Run a script at unlock?

Hey, I'd like to get a shell script to run everytime I unlock my computer, on KDE 4. I learned that I could run one by overwriting /usr/lib/kde4/libexec/krunner_lock with a shell script doing its thing, then the original krunner_lock binary, and I'd basically want to do the opposite: launch a script that "undoes" what the locking script ...

Is there a jQuery autogrow plugin for text fields?

I have a found various plugins for autogrowing a textarea, but not input text fields. Does anybody know if any exist? ...

Auto Restart/Reset countdown timer

What i want is that when the timer has reached the end-date and time it automatically start over but by counting down from 60 seconds. Im new to jquery and im strungling with this problem for almost 3 days and i cant get it running. My countdown is working perfectly with the end-data inserted from the database but when it reaches the end...

Merging gimp layers in a script

I keep e.g. buttons for my applications in GIMP xcf-files, with different elements of the image in layers. This provides a nice consistent view of the button and it is easy to replace stuff, such as the button background. From a single xcf I generate a number of "compiled" images, i.e images with different subsets of the layers merged. N...

Form to search XML document

I got a tutorial from W3CSchools on XML and XSL, I have three files (Please see code below) XML - cdcatalog.xml XSL - cdcatalog.xsl HTML - search.htm What Im trying to do is build a HTML search form to search the XML document, ive change some artist names within the XML file so for example if i did a search for Bob Dylan these three det...

converting an Excel (xls) file to a comma separated (csv) file without the GUI

Is there a simple way to translate an XLS to a CSV formatted file without starting the Excel windowed application? I need to process some Excel XLS workbooks with scripts. For this i need to convert the xls file into a csv file. This can be done with a save-as from the Excel application. But, i would like to automate this (so, not open ...

JavaScript code to Class Diagram

Hi, I am looking for a tool that can generate class diagram from JavaScript code. Similar to the ones for C++ and Java. Is there any? Thanks ...