#!/usr/bin/python import sys import os for arg in sys.argv: print "Hello",arg cmd = 'cp input1 output1' print 'From input sandbox:',cmd os.system(cmd) cmd = 'cp /etc/fstab output2' print 'From the worker node',cmd os.system(cmd) cmd = 'wget http://cern.ch/Massimo.Lamanna/welcome.htm -o output3' print 'From the web...',cmd os.system(cmd) cmd = 'just_to_have_something_for_sure_in_the_stderr' print 'Broken command:',cmd os.system(cmd)