The Artima Developer Community
Sponsored Link

Python Answers Forum
Need to run Python script on Unix box with no python S/W

3 replies on 1 page. Most recent reply: Nov 9, 2004 12:55 PM by Maverick

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Maverick

Posts: 11
Nickname: maverick43
Registered: Oct, 2004

Need to run Python script on Unix box with no python S/W Posted: Oct 26, 2004 12:10 PM
Reply to this message Reply
Advertisement
I have created a small python script (reads data from a text file and insert/update the records based on conditions). I have written this on Windows and would like to implement this in Unix shell script/cron (for scheduling).
How can i make this script run onthat box(it has no Python interpreter installed)

Thanks,


Guillaume Taglang

Posts: 18
Nickname: gouyou
Registered: Jul, 2003

Re: Need to run Python script on Unix box with no python S/W Posted: Oct 28, 2004 2:38 PM
Reply to this message Reply
By installing a python interpreter ;-)

There is py2exe existing for windows, so if you have WINE installed you may have a chance to get it running.
http://py2exe.sf.net/

Another solution: using java and jython.

Anyway, the easiest solution is probably to get a proper python interpreter installed on the box, most ot the unix-like operating systems are shipped with some python version installed this days (even MacOSX), and getting a precompiled package should be fairly easy.

Cheers,
Guillaume

Guillaume Taglang

Posts: 18
Nickname: gouyou
Registered: Jul, 2003

Re: Need to run Python script on Unix box with no python S/W Posted: Oct 28, 2004 7:21 PM
Reply to this message Reply
Was searching some unrelated stuff tonight and just found out that there was some progress ... Check out the following link:
http://www.python.org/doc/faq/programming.html#how-can-i-create-a-stand-alone-binary-from-a-python-script

Maverick

Posts: 11
Nickname: maverick43
Registered: Oct, 2004

Re: Need to run Python script on Unix box with no python S/W Posted: Nov 9, 2004 12:55 PM
Reply to this message Reply
Thank you. I am sorry couldn't reply back immediately. Appreciate your response on this.I'll check that URL and try to work it out.

Thanks again

Flat View: This topic has 3 replies on 1 page
Topic: Problem writing a class Previous Topic   Next Topic Topic: coursework

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use