scripting

What is the right tool/skill set for writing a script/program to consistently log on and check for updates?

If this is possible... What would you have to use/learn in order to write something to consistently check (every 20 minutes) whether a page has been updated? It would involve logging into the system and navigating the site. As an example I'd wished I'd had in the past, a script to log onto my school's website and check for updated gra...

Webmail Contact List Importer

Does anyone know of a Webmail Contact List Importer scripts (ColdFusion, PHP etc) like those used on Twitter and LinkedIn ? I've found some but they are paid for and I want some more bespoke & open. To clarify a little more I'm not looking for a way to process .csv files :) I'm looking for a bit of code that can logging into gmail, yaho...

vmware - script automatic backups

I run VMWare Workstation 6.5 on WinXP. How can I script a way to automatically clone my VM images? I've read about the "vmware-cmd" tool but believe that is only available with VMWare ESX, not Workstation. ...

How to run a script at random intervals

Hi I want to write a batch job in c# that runs a task at a random(ish) interval e.g. every hour +/- 20 mins and if no update is needed, then to wait x2 the last time before running again. What is the best method to do this? ...

Blackberry development on scripting language ?

From what I've seen, the preferred way to develop Blackberry applications is Java. Is this the only way? I'm dreaming of a rapid application environment where you can create GUIs (using the Blackberry UI components). Something like a port of Tcl/Tk on Blackberry... or Python/Tkinter... or something new, but similar. Does something li...

Lua vs. Other scripting languages

I wonder why a lot of programmers claim that Lua is faster then any other scripting language? What did they do that is more efficient then other languages? Is there something completely different in their approach? What makes their code run faster then Python for example? ...

DAO vs ADO in HTA over wireless

I've written a small (8-10 laptops) point-of-sale system running over a wireless network, as an HTA that reads from/writes to an Access MDB located on a network share. I need to use ADO - GetString and the user roster are not available with DAO. I also need to use DAO - the MDB cannot be compacted with ADO. I know that: 1) If the databa...

Ignore question mark in .bat batch scripts

The thing is that I need to pass one parameter with question marks in it to a .bat batch file. If I use the question mark the parameter is not well passed. How can I solve this? I'm having troubles with this line: script.bat /n"output.owl" /r"http://www.address.com/blog/?feed=rss2" = symbol might be a problem too. ...

How can I call Perl from shell script?

I have written a library in Perl that has a certain function, that gives back information about a the server as a character string. Can I call this function from a shell directly? My boss asks "Can you call it from a shell directly for the time being?" Because he said that, I think I should be able to do it, but how do I do it? ...

How to do a script in BASH which takes random text from file?

I have file like: aaa bbb ccc ddd eee And I want to do a script in BASH which can takes random line of this text file, and return it to me as variable or something. I hear it can be done with some AWK. Any ideas? UPDATE: I now using this: shuf -n 1 text.txt Thanks you all for help! ...

How to unzip a file in VBScript using internal Windows XP options in

I want to unzip a .zip file using VBScript, only it's always a new computer with no external applications on it. Now I know Windows XP and 2003 have an internal .zip folder option, so I guess I can use it via VBScript in order to extract the file. How do I do it? I tried: Set objShell = CreateObject("Shell.Application") Set SrcFldr =...

Argument Checking Problem in Bash Script

So basically I am trying to check the arguments that are passed into the script. If it has three arguments and the third argument is a 1, then I want it to continue. I also want it to continue if it has four arguments and the third argument is not a 1. So basically I thought that I could just do... if ([ $# -ne 3 ] and [ "$3" -ne "2"...

Detecting the output stream type of a shell script

I'm writing a shell script that uses ANSI color characters on the command line. Example: example.sh #!/bin/tcsh printf "\033[31m Success Color is awesome!\033[0m" My problem is when doing: $ ./example.sh > out or $./example.sh | grep The ASCII codes will be sent out raw along with the text, mucking up the output and just gener...

No line numbers on exceptions from assembly generated by CompileAssemblyFromSource

My application has a scripting feature where I compile an in-memory assembly from the user's script using CodeDomProvider.CompileAssemblyFromSource. It's similar to what's described in this answer. It works very well, but any exceptions that get thrown from the script code don't have line numbers in the stack trace. I tried setting the ...

Is there a tool to clean the output of the script(1) tool?

script(1) is a tool for keeping a record of an interactive terminal session; by default it writes to the file transcript. My problem is that I use ksh93, which has readline features, and so the transcript is mucked up with all sorts of terminal escape sequences and it can be very difficult to reconstruct the command that was actually e...

Elevate Powershell scripts

Is it possible to elevate the permissions of a powershell script so a user without admin privileges can run the script? Our network admins are trying to find more time-efficient ways to accomplish certain tasks that right now they have to use remote desktop for...automating them with PS scripts would help, but the users don't have admin...

Reporting charts and data for MS-Office users

We have lots of data and some charts repesenting one logical item. Charts and data is stored in various files. As a result, most users can easily access and re-use the information in their applications. However, this not exactly a good way of storing data. Amongst other reasons, charts belong to some data, the charts and data have some ...

lightweight C++ scripting library

I currently use QtScript for scripting functionality in my C++ application, but it's rather "heavy" on the cpu. When a thread evaluates all the scripts in a loop the cpu usage increases to 90%-100%. Even when i put it to sleep for 1 msec every 5 scripts it stays above 75% cpu usage. Are there any other, easy to implement, scripting fram...

What are the difference between Java, C++ and ActionScript3.0 in regards to OOP?

In a pure programming context (such as structural & OOP), what are the main differences that you find (or must be careful not to be confuse) between Java/C++ and ActionScript? Any other notable or important differences are also welcome. ...

Split string based on delimiter in bash?

How to split string based on delimiter in bash? I have this string stored in a variable: IN="[email protected];[email protected]" Now I would like to split the strings by ';' delimiter so that I have ADDR1="[email protected]" ADDR2="[email protected]" Don't necessarily need ADDR1, ADDR2 variables, if they are elements of an array that's even better...