#!/bin/bash MYSTRING="Do something in bash" echo $MYSTRING python - << EOF myPyString = "Do something on python" print myPyString EOF echo "Back to bash"