[Tutor] Re: Tutor digest, Vol 1 #313 - 8 msgs

David Porter jcm@bigskytel.com
Sat, 20 May 2000 15:27:18 -0600


* W.W. van den Broek <vdbroekw@wxs.nl>:
[monstrous snip]
> I am using python on suse 6.3, cannot find the python command for
> executing scripts. Tried /user/bin, /usr/sbin, /usr/local/bin,
> /usr/local/sbin, /usr/bin/env python
> Does anybody know were it is on suse 6.3??

The python command for executing scripts is 'python', as in:

  python your_script.py

To make your script executable in itself, you need to do two things. First
add this line to the beginning of the script:

  #!/usr/bin/env python 

then, make the script executable:

  chmod +x your_script.py
  

    \david

    
PS, could you please not quote the entire message you are replying to,
especially when it is so long (436 out of 460 lines in your mail) and has
nothing to do with your message? It is best to only quote the relevent part
of a message that you are replying to.