Python script for windows & linux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nirmalarasu
    New Member
    • Jun 2007
    • 7

    Python script for windows & linux

    Hi All,
    Currently iam looking for one common script to work both in linux and windows
    target machines.The script what i going to write need to be loaded in CD.
    The CD scripts will be used both in Linix & Windows Machine.

    If I choose python as the script for my requirement ,is python installation needed in target machines?to run the script. I know verywell python installation is default in linux but in windows iam not sure.

    or if any other script suites my requirement please suggest me.

    thanks in advance
  • Laharl
    Recognized Expert Contributor
    • Sep 2007
    • 849

    #2
    Python is not standard in Windows. If you need platform independence, there are ways to install just enough of the JRE to run/install a Java application if the user does not have the JRE installed. I'm not quite sure how to go about doing this, but Google might be of use, as might the Java forum here.

    I don't believe any scripted languages are installed on Windows by default, so I think Java is your best bet.

    Comment

    • kaarthikeyapreyan
      New Member
      • Apr 2007
      • 106

      #3
      I would Prefer python over java simply because its very easy to script,it's easily extendable and what not...
      you would need to install python ofcourse but its pretty basic and too simple
      There is another way to get it on windows too without installing python,
      use the py2exe converter which will generate the necessary files for the application to run without python, as an exe file.But you will have to install python to get py2exe converter running. Install the converter, convert the .py to .exe and lo u could use it on any machine where python is not installed.

      Comment

      • ghostdog74
        Recognized Expert Contributor
        • Apr 2006
        • 511

        #4
        Originally posted by Laharl
        Python is not standard in Windows.
        from what I know, so does Java. you will need to install Jre somehow.
        .
        I don't believe any scripted languages are installed on Windows by default,
        vbscript is installed on Windows, by default.
        so I think Java is your best bet.
        so does Perl,Python,Rub y and others. Even if its a shell script, it can work (with minimal changes) in both unix/windows(cygwin) .

        Comment

        • nirmalarasu
          New Member
          • Jun 2007
          • 7

          #5
          thanks guys. I prefer to go with py2exe.

          Comment

          Working...