valeur de retour à partir d'un script python script shell

suis nouveau en python. suis créer un script python qui retourne une chaîne de caractères bonjour tout le monde. et je suis de créer un script shell. ajoutez un appel de shell script python.

  1. j'ai besoin de passer des arguments à partir de shell python.
  2. j'ai besoin d'imprimer la valeur de retour de python dans le script shell.

c'est mon code

shellscript1.sh

#!/bin/bash
# script for tesing
clear
echo "............script started............"
sleep 1
python python/pythonScript1.py
exit

pythonScript1.py

#!/usr/bin/python
import sys

print "Starting python script!"
try:
    sys.exit('helloWorld1') 
except:
     sys.exit('helloWorld2') 

OriginalL'auteur Abdul Manaf | 2015-12-09