scripting

Why ActionScript is said scripting language even after grown up so much and having compiled language?

From the Wikipedia defination, Programming language is Scripting languages are languages that allow you to send commands directly to a system that executes these commands. These commands are read line by line and executed-interpreted, but not compiled. Whilst, Scripting language is Programming languages are languages that all...

Cocoa Scripting Bridge to put all song names into an array

Could someone show me some code that puts all the songs names in the user's music library into an array? Then show me how to change song names to artists, albums etc. Thanks! ...

Filemtime/cachetime where am I going wrong?

What I am trying to do is check the age of an image, if its older than 60 minutes then run another php page to fetch images otherwise do nothing if less than 60 minutes old.... The script isn't opening the 2nd page (radartest.php) and running it to update the images, so need a command to tell it to run as a script please. <?php $imagen...

What kind of things can be done using Perl but cannot be done using Bash?

I'm new in using scripting language. I come across 2 scripting languages called Perl and Bash shell script. I would like to know what kind of things can be done using Perl script but cannot be done using Bash shell script? Thanks. ...

Want to script a C# application

I need to run some validation tests on our c# client-server configuration. Is there a dynamic script language that my client application could run, that would have full access to all of its C# classes and asssemblies? Something like beanshell for java: http://www.beanshell.org/intro.html Thanks! ...

Bash Script function verification

I am trying to do validation for every function I call in a script and erroring out the whole script if one function fails. Looking for the best way to do this. I feel I knew a good way to do it at one time, but can't figure it out again. I can brute force it, but it's nasty. This is how I can get it to work correctly copy_files...

Stock Trading script/language for .NET?

Is there a component I can use to create a stock trading/backtesting application in .NET? I am looking for something similar to TradeScript from ModulusFE: http://www.modulusfe.com/tradescript/ ...

Apply regular expression substitution globally to many files with a script

I want to apply a certain regular expression substitution globally to about 40 Javascript files in and under a directory. I'm a vim user, but doing this by hand can be tedious and error-prone, so I'd like to automate it with a script. I tried sed, but handling more than one line at a time is awkward, especially if there is no limit t...

TARing relatively.

Hi, I'm writing a script that can tar any given folder and place it in my home/bkp. the script will read like this, tar czvf /home/me/bkp/`basename $1`.tar.gz $1 well now, to use it., backup-script.sh /home/me/folder/sub/to-be-backed-up/ Well and good. Now when I untar it, it creates home/me/folder/sub/to-be-backed-up/*file...

directory input sanitation

I have a very simple perl script that moves files (don't ask why i cant use cp, its long, sad, and will make you cry). I take 2 inputs from command line, dir1 and dir2. Then i have an internal file list i pull and concatenate the two together. my $file = dir1 . filename That works great as long as the user puts a traling / on their d...

Do Lua variables lose their value between script calls?

In a C app when I call a Lua script, do the variables in the code stay with the same value when I call the script again later? ...

Best way to create a form in OpenOffice (or sth else?)

Hi I'm looking for a way to script an OpenOffice document so it would: have only parts editable do some magic with saving it (i'd like to save it into some generated from the entered content name) be reasonably easy to implement I've looked into this question: http://stackoverflow.com/questions/261318/what-is-the-single-best-online-s...

Increase the performace of the code by reducing the number of ssh

This function take hugh amount of time to calculate the status of a process, beacuse every time it has to ssh into the machine and find the status of a process. I only have four machines and around 50+ process to monitor and the details are mentioned into configDaemonDetails.txt like: abc@sn123|Daemon_1|processname_1 abc@sn123|Daemon_...

Changing hash of a files

Hi guys I have a folder full of binary files and I want to make a change to these files so that the hash of these files will change. I want to do this is a fashion that doesn't pertinently corrupt the files. Meaning that the change should still allow the file to operate normally or that I should be able to undo the change at any point ...

Nested Begin in a script file ,Stack Overflow during script execution

Hi, Recently I'm having requirement to generate script file from excel sheet. I'm able to acomplish task almost. Bu the problem is usage of Local varibales are more in script file are more.Becuase of more Local variale, During execution of script file in toad,it throws an error PL/SQL 102 Stack overflow exception during insertion script...

Learn a scripting language besides Python

Someone told me once, that programmers tend to learn one scripting language properly and ignore or dislike other scripting languages. Do you have similar experiences? I'm using Python as my choice for scripting for few years, however, I'm sure that there are many existing and emerging languages that could impress the Pythonistas. Can y...

Remove all redundant files in a directory

I have directoryA that gets populated as a replica of directoryB, and some files are changed or added. I want to automate the process of deleting all files from directoryA that have redundant copies in directoryB. Both directories have several layers of sub-directories, so the solution will likely have to be recursive. My first thought...

MAC Address using script in IE (activeX)

Hi , everybody, I have found a code sample to get the mac address of a PC but my problem is that it only work when launched on the desktop (locally) but when I upload the HTML page on my server it doesn't work at all. is there a way to sign this script inside a cab or something else to make it work online? thank you to help me. I am stu...

Advance PHP mail script

I have created an php mail script, And in the message of the mail i sent i am using many variables (data). For example i want to sent an mail with this body msg: Name: Somename Email: [email protected] City: Somecity State: somestate ......... What i am doing is this: $msg = "Name: $name (brake) Email: $email (brake).........

A PHP script to let users download a file from my website without revealing the actual file link in my website?

The question says it all.. How do I let the users download a file from my website and not let them see what link that file comes from? I understand that there might be a need for something like a download.php which will serve as the gateway but past that phase, I dunno what to script next... If it bothers you to write the whole code, a f...