473,388 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

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
Feb 6 '08 #1
4 1863
Laharl
849 Expert 512MB
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.
Feb 7 '08 #2
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.
Feb 7 '08 #3
ghostdog74
511 Expert 256MB
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,Ruby and others. Even if its a shell script, it can work (with minimal changes) in both unix/windows(cygwin).
Feb 7 '08 #4
thanks guys. I prefer to go with py2exe.
Feb 7 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Ben Finney | last post by:
Howdy all, I'm experimenting with carrying my personal computing environment around on a keychain USB flash storage device. I have the usual suspects on there: SSH keys, GPG keys, program...
3
by: james blair | last post by:
Hi I have a search page & the reults for the search are fetched from the database. I want that on the results page only first 25 results are shown & a link "next 25 results" be shown.Same for the...
2
by: jacques | last post by:
hello everybody i have a computer with redhat linux. on this computer i have some python scripts i want to run. i don't want to run them with linux but with windows. so i have a second computer...
4
by: A. B., Khalid | last post by:
Hello all. This is to inform those interested in getting Python to compile in MinGW that the pyMinGW patch is now able to help compile both Python 2.3.4 Final and Python 2.4a3 and the resulting...
13
by: Darren Dale | last post by:
Some time ago I asked about executing a python program or script. For windows, I was informed that the .py extension could be added to some list of executable extensions, and then I could just type...
3
by: diffuser78 | last post by:
I am a newbie in Python and want your help in writing python script. I have to remotely shut the windows px from linux box. I run OpenSSH on windows PC. I remotely connect it from Linux box using...
15
by: kyosohma | last post by:
Hi, I am trying to get a small group of volunteers together to create Windows binaries for any Python extension developer that needs them, much like the package/extension builders who volunteer...
3
by: bsagert | last post by:
Some web feeds use decimal character entities that seem to confuse Python (or me). For example, the string "doesn't" may be coded as "doesn’t" which should produce a right leaning apostrophe....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.