00001 #!/usr/bin/env python 00002 import os 00003 import sys 00004 import roslib; roslib.load_manifest("rosshell") 00005 import rospy 00006 00007 print sys.argv 00008 00009 ret = 0 00010 for command in range(1,len(sys.argv)): 00011 ret=ret|os.system(sys.argv[command]) 00012 00013 ret=ret>>8 00014 rospy.signal_shutdown('finish') 00015 sys.exit(ret)