scripting

do any scripting languages support midi?

like the question says... are there any scripting languages i can learn that let you use midi? ...

Limit WGET'ing by timer, how to do this?

Sorry for my english (i'm rus) I save MJPEG stream from IP-camera with wget wget -O 2010-01-12_01.mjpeg http://172.16.1.220:8070/video.mjpg I need limit saving by hour (every hour is a another file - 2010-01-12_[XX]) What is the bast way to do it ? 1) starting and killing by cron ? 2) for .. do in script, how ? ... thanks for answe...

Automatically run a program if another program returns an error

I have a program (grabface) that takes a picture of the face of a person using a webcam, and I also have a shell script wrapper that works like this: On the command line the user gives the script the name of a program to run and its command line arguments. The script then executes the given command and checks the exit code. If there was...

shell script to find&replace section in xml

Hi, Im have a xml config file called solrconfig.xml, it has this section in the middle of it: <!--############ BEGIN replication settings DO NOT EDIT ################################--> <requestHandler name="/replication" class="solr.ReplicationHandler" > <lst name="master"> <str name="replicateAfter">commit</str> <str name="replic...

Request Form error in VisualScript

Hi There I am hoping that someone can help me with this visualscript filesystemobject question <% 'Creating the subfolders' Public objFSO Sub Main() Set objFSO = CreateObject("Scripting.FileSystemObject") Call GeneratePath("C:\Inetpub\wwwroot\sites") Call GeneratePath("C:\Inetpub\wwwroot\sitesx") End Sub Function GeneratePath(pFolde...

Analysing a shell script

This would be part of a reverse-engineering project. To determine and document what a shell script (ksh, bash, sh) does, it is comfortable, if you have information about what other programs/scripts it calls. How could one automate this task? Do you know any program or framework that can parse a shell script? This way for instance, I co...

Converting RAW audio data to WAV with scripting

I have a large number of .RAW audio files (unsigned 8-bit PCM with no-endianness) which I want to convert to .WAV files. What command-line tool (windows or linux) can I use to convert these quickly? ...

Practices while releasing the python/ruby/script based web applications on production

I am purely a windows programmer and spend all my time hacking VC++. Recently I have been heading several web based applications and myself built applications with python (/pylons framework) and doing projects on rails. All the web projects are hosted on ubuntu linux. The RELEASE procedures and check list we followed for building and...

bash script to translate XML

Hi I have dozens of XML files with I would need this: <p begin="00:06:28;12" end="00:00:02;26"> translated into this: <p begin="628.12" end="631.08"> I know i need a simple awk or sed to do this, but being new; can someone help ...

"Real" and non-embedded use of Ruby, Python and their friends

Hello! So I'm aware of the big ammount of general-purpose scripting languages like Ruby, Python, Perl, maybe even PHP, etc. that actually claim being usable for creating desktop applications too. I think my question can be answered clearly Are there actually companies using a special scripting language only to create their applicatio...

scripts that interact with flash objects on webpages

Hey everyone, I was wondering if there was a scripting language that one could use to to interact with a flash object on a webpage? I am trying to automate some tasks but the webpage uses flash. Thanks for the help! Edit: I am trying to fill out a form basically click a few "check boxes" and then a submit button but I would like to ...

awk script as a webservice

Hi, I made a awk script to do stuff on some input files but as I want to avoid installing gawk on the windows machines I want this awk script to be available as a webservice or just a form where I can either upload a file or just copy the text of the file in a box and run the script on it and get back the result of the awk script. How ...

Write shell script that can only be run by a sudo user in Ubuntu

I'm writing a shell script that is supposed to be run by users only in sudo user list, what's the appropriate way of doing this? what I'm thinking is in the shell script, try to create a dummy file in system dir such as /var/run/ and remove it, so users not in sudo list will receive a permission error, but I believe there gotta be a mo...

Create user and privileges to DB in MySQL VIA script

I need to create a script that can create a user/password and grant then certain privileges on a local DB. Thanks in advance! -Sol ...

How to get this bash script to work if the variable "fileName" contains space?

#!/bin/bash -x echo "Enter file name: " read fileName fileName=`pwd`"/$fileName" if [ -f $fileName ]; then echo "file is present" fi Even if I change the value of fileName by adding quotes at starting and end.. The script still doesnt work. ...

Windows Script Componets - Are they thread safe

Hi Folks. I need to develop a very simple class developed as a Windows Script Component that needs to work in a multi-threaded environment. I am wondering just how thread safe Windows scripting Components are and the scripting engine that executes those components. In VB6 if a compiled DLL was not compile with "Retain In Memory" and "Una...

World Time Script

I have an online website portfolio and I want to put their the current time in our country and also I want to put the weather update there. If my clients browse it they will see the time in our country. My question is: What script should I used? Example: I live in Philippines so thats GMT+08:00 Then, when someone browse my website from...

RTF file upload in PHP and problems with UTF

I want to create a web form which will allow the user to upload text/rtf files in UTF-8 having foreign language content using PHP and then execute a series of commands on it via the exec() function. After this processing I would be giving it back to the user as a download. I made rudimentary form in html with a file input form and submi...

ASP.NET MVC 2 AJAX dilemma: Lose Models concept or create unmanageable JavaScript

Hi, Ok, let's assume we are working with ASP.NET MVC 2 (latest and greatest preview) and we want to create AJAX user interface with jQuery. So what are our real options here? Option 1 - Pass Json from the Controller to the view, and then the view submits Json back to the controller. This means (in the order given): User opens some Vi...

shell script filter question

I am trying to store the resulting list from "ls -la" into a variable then filter out some files name, after that print out only the filtered file names (along with the date and stuff like how ls -la does it" again, but when I do that everything is in one line, is there a way to make sure every file name are on different lines? thanks i...