Scripting language on Windows and Unix

863 views Asked by At

I need to write a script that handle files. Its aim is to open and copy some sections from the file, in a binary context. The problem is I need to run it on both Windows and Unix.

Is there a scripting language that can handle both operating systems?

5

There are 5 answers

2
Keith On BEST ANSWER

Python runs on both. The Windows version doesn't even need cygwin. If you have cygwin, then you can also use bash script.

0
Jackson On

I've successfully used Tcl across Unix and Windows; you can find more information here and here.

0
dogbane On

You can install a scripting language such as Python or Perl and use it on both systems.

Alternatively, install Cygwin on Windows, which will allow you to run a Bash shell under Windows.

0
DarkDust On

Ruby also runs on both systems just fine and has support for manipulating paths for both worlds. There's a nice installer for Windows and most Linux distros also ship it in their default installation.

0
user2496748 On

The command shell "bash", native on Unices, is also available on Windows.