LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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
  Search this Thread
Old 02-09-2006, 02:13 AM   #1
GameMaker
LQ Newbie
 
Registered: Feb 2006
Posts: 22

Rep: Reputation: 15
Execute python scripts


How to execute scripts to make them stand alone programs ?
 
Old 02-09-2006, 03:22 AM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Make sure you have a shebang as the first line:
Code:
#!/usr/bin/python
where /usr/bin/python is the path to python (replace it with whatever is appropriate)

and then make sure it is executable (chmod +x whatever)
 
Old 02-09-2006, 04:46 AM   #3
GameMaker
LQ Newbie
 
Registered: Feb 2006
Posts: 22

Original Poster
Rep: Reputation: 15
Thank you ...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to execute sh scripts zowey Mandriva 2 12-23-2004 03:59 PM
I can't execute scripts in mounted fs Dasc Linux - General 3 12-16-2004 06:36 PM
execute bash scripts vapor Programming 9 07-14-2003 02:54 PM
cant execute any scripts Phonics3k Linux - Newbie 2 06-19-2002 08:00 AM
How to execute Linux scripts LenkaNguyen Linux - General 2 12-07-2001 03:12 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:14 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration