[Tutor] python & bash combination

Andrei Raevsky raevsky@hotmail.com
Sat, 09 Mar 2002 19:18:17 +0100


Hi!

I am total newbie at Python (I have been looking at it for a week or so) and 
I am curious as to whether and how I could combine Python and Bash commands 
in one single script.

If I begin my script with

#!/usr/bin/env python

I probably cannot suddently write:

#!/usr/bin/bash

now can I?

How could I write something combining 2-3 lines of Python, then say one Bash 
command (to for example load a string variable) and then continue with 2-3 
lines of Python?

Is this type of "expanding possible"?

Thanks,

Andrei

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.