scripting

Script to write contents of incoming outlook messages to file

Hi I'd like to automatically write incoming outlook messages to a text-file on the drive. How can i do this? Thanks. ...

the future of Javascript

how do you see the future of javascript as a (main) web browser scripting language? there are browser-dependent variations of javascript support, javascript itself has some flaws. this could possible lead to incorporation of some dominant js framework into the leading open-source browsers, or promotion of a different (or completely new)...

Anyone with experience on embedding CINT into a C++ app?

I'm talking about ROOT's CINT. I've been developing a game in c++ wich uses Python for programming the AI. As much as I love Python, and how easy it makes programming the AI (generators and FP are really sexy), it makes non trivial algorythms run so slow. Then I remembered I read somewhere about CINT, and how it can be embedable. N...

need a script which will invoke other process/script and exit, but the invoked process should continue running

Hi All, I'm trying to run a script, which internally invokes other script but, the main script should exit after invoking and the invoked script should run independently on the background. How can i achieve this in shell scripting? or is there any other alternative way to do this? Regrads, senny ...

How can a bash script write out a binary file, without using uudecode?

Hi all, I've got a little puzzler here for the bash scripting experts... I have a bash script that needs to create a small (80 byte) binary file when it runs. The contents of the file need to be contained inside the script itself (i.e. I don't want to just package the file along with the script). My script currently does it like this:...

How do I calculate the mean of a column

Hello every one... Anyone know how can I calculate the mean of one these columns (on linux)?? sda 2.91 20.44 6.13 2.95 217.53 186.67 44.55 0.84 92.97 sda 0.00 0.00 2.00 0.00 80.00 0.00 40.00 0.22 110.00 sda 0.00 0.00 2.00 0.00 144.00 ...

What is the the difference in writing different style Script tags?

What is the the difference in writing different Script tags like <script>.... or <script language="javascript">..... or <script type="text/javascript">...........? They all do same things, what is different? ...

Arithmetic problem with shell script

I've got some issues on scripting... if someone could help me, it would be really good ! My script has: VISITS=$((WR + RD)); SERVICE_DEMAND=$((VISITS*SERVICE_DEMAND)); And I'm getting this error: ./calc_serv_demand.sh: line 12: 0.0895406: syntax error: invalid arithmetic operator (error token is ".0895406") Can someone hel...

Is it possible to use Android scripts created with ASE as typical application for Android (e.g. written in Java)?

Hi, I am very very new to Android. I was encouraged to take a closer look at Android when I heard about possbility to write applications on Android in scripting languages like Python. This sounds great and in fact works great. I did some experiments and everything looks very interesting. I have noticed that I can either write my script...

Need help modifying curl php image get script please

I need to modify this simple script, have searched the web for hours but getting nowhere with it. What I need to do is firstly fetch the url to be used from either a text file on my site or from a decoded json output - such as "$FullPicURL = "http://somesite.com" . $data[2];" or "file_put_contents($image, file_get_contents("http://somes...

Scripting in C# - Portable Library for XNA and 360?

I'm just wondering if this is even possible; how to do non-complicated scripting within C#. Basically, let's say I have a structure as such: Structure int a int b int c Function ParseValue(pString as String) try return interpret(pString) catch return 0 end try End F...

Adding BOM to UTF-8 files

Hello, I'm searching (without success) a script, which would work as a batch file and allow me to prepend a UTF-8 text file with a BOM if it doesn't have one. Neither the language it is written in (perl, python, c, bash) or the OS it works on matters to me. I have access to a wide range of computers. I've found a lot of script to do t...

Python script header

The typical header should be #!/usr/bin/env python But I found below also works when executing the script like $python ./my_script.py #!/usr/bin/python #!python What's difference between these 2 headers? What could be the problem for 2nd one? Please also discussing the case for python interpreter is in PATH or not. Thanks. ...

how to ref. a value from another powershell script?

hi, suppose i have 2 powershell scripts, test1.ps1 and test2.ps1 #test1.ps1 $a="test1" ################## #test2.ps1 echo $a how to ref. $a in test2.ps1 from test1.ps1? ...

how to create and execute C# script in visual studio platform ?

I want to know how to create a script and how to execute it in visual studio platform ? plz someone help me...... ...

Is it possible to install an msi using python?

is it possible to write a script in python that installs an msi? or is it possible to to make it through any other script? ...

Bash script - store stderr in variable

I'm writing a script to backup a database. I have the following line: mysqldump --user=$dbuser --password=$dbpswd \ --host=$host $mysqldb | gzip > $filename I want to assign the stderr to a variable, so that it will send an email to myself letting me know what happened if something goes wrong. I've found solutions to redirect stde...

how to include a ":" as a parameter in powershell?

hi i have a simple powershell script, like this sqlcmd -S. -E -Q 'select ''$(x)''' -v x="c:a" but i always got the error message Sqlcmd: ':a': Invalid argument. Enter '-?' for help. i figured out that it is the ":" in the argument caused the problem, but i do not know how to escape it. thanks, David ...

Image folder download using wget

i need to write a line in my script to download a directory(having about 10 images)from a url like abc.com/Image/images/,trying wget command as below in the script : wget -e robots=off -r -l1 --no-parent -A.gif http://abc.com/Image/images/ OR wget -A "*.gif" http://abc.com/Image/images/ but it is giving error as : HTTP request sent, ...

How can I create a sequential SQL creation script for Oracle?

Something like: create table Employee( ID int primary key, Name nvarchar(200) IDArea int foreign key references Area(ID) ); go create table Area( ID int primary key, Name nvarchar(200) ); Does something like this exist in Oracle? ...