LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 06-13-2006, 07:25 AM   #1
nutthick
Member
 
Registered: Jun 2004
Distribution: Slack
Posts: 214

Rep: Reputation: 30
Python on windows will work on Linux?


I need to write a serial routine for Linux, but I want to use my Windows box to write it. If I write the routine on Windows and get it working on windows, will the software successfully port over to Linux?

Thanks
 
Old 06-13-2006, 08:27 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 10.04, Crunchbang Statler
Posts: 3,325

Rep: Reputation: 168Reputation: 168
Not sure as I'm not familiar with Python. I know TCL scripts work on both.

One warning (and that's why I replied): line ends in dos/windows differ from those in Unix/Linux. This might make life difficult. So either use an editor in windows that can store the file in Unix format or convert them on your linux box before running them (I haven't found that function in Slack, so I use sed when I have to convert).
 
Old 06-13-2006, 09:31 AM   #3
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Puppy
Posts: 3,048

Rep: Reputation: 95
true, the scripts will need maybe the ^M removed (especially on the #! line)

Quote:
Originally Posted by Wim Sturkenboom
(I haven't found that function in Slack, so I use sed when I have to convert).
aint you got unix2dos dos2unix on your box?

Last edited by bigearsbilly; 06-13-2006 at 09:32 AM.
 
Old 06-13-2006, 11:34 PM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 10.04, Crunchbang Statler
Posts: 3,325

Rep: Reputation: 168Reputation: 168
Haven't found it yet. I know it's available on my RH8 box, but does not seem to be the case on Slack 10.0/10.1. Hence some sed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tk for Python doesn't work datbenik Linux - Software 0 12-30-2005 01:42 PM
Python doesn't work zirtik Programming 9 10-17-2005 05:28 AM
getting wxPython to work with python servnov Linux - Newbie 0 01-09-2005 11:48 AM
python doesn´t work little_ball Linux - Newbie 4 12-04-2004 09:09 AM
Python XML won't work. Travis86 Programming 0 09-14-2004 05:13 PM


All times are GMT -5. The time now is 02:56 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration