0

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 Answers 5

2

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

Sign up to request clarification or add additional context in comments.

2 Comments

Does Python also deals with internals issues, like services on windows and for instance domain at unix ?
You can add the win32 extensions, a separate package, that provides access to almost all of Windows stuff. You can even create services with it.
1

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.

Comments

1

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.

Comments

0

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

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.