[Tutor] how to do "bash here"

Al Bogner python-tutor at ml03q3.pinguin.uni.cc
Sun Nov 16 18:04:34 EST 2003

I try to learn python by writing working bash-scripts in python. How can I do 
a bash-syntax like this with python:

mysql --host=$MYSQLHOST -A --user=$MYSQLUSER --password=$MYSQLPWD $MYSQLDB 
<<END_OF_SQLINPUT | sed '1,/^export/d' > "$FDIMPORT"

Thanks a lot for your help!


More information about the Tutor mailing list