[XML-SIG] XML Parsing problem

Matt Gushee Matt Gushee <mgushee@havenrock.com>
Wed, 25 Sep 2002 16:58:55 -0600


On Wed, Sep 25, 2002 at 03:53:55PM -0700, kumar s wrote:
> 
> $ ./format.sh
> : bad interpreter: Permission deniedn/python2.1
> : bad interpreter: Permission deniedn/python2.1
> 
> My script is :
> 
> #!/bin/sh
> 
> rm entries;
> 
> for file in ./home/files/xml/*
>     do
>         ./XMLParse1.py $file>>entries
>         ./XMLParse2.py $file >>entries
>     done

What is the first line of XMLParse1.py? If it is the same as this:

> My XMLparse.py file
> 
> #!/usr/bin/python2.1

then what is the result of 

  $ file /usr/bin/python2.1

and

  $ ls -l /usr/bin/python2.1

?

By the way, unless you have more than one version of Python on your
system, you're probably better off using

  #!/usr/bin/env python

It's much more portable.

-- 
Matt Gushee
Englewood, Colorado, USA
mgushee@havenrock.com
http://www.havenrock.com/