> This was achieved as follows: > > $ECHO rm -r / > > where ECHO was either set to "echo" or nothing according to a command import os shellExecute = os.system def echoOnly (cmd): print cmd return 0 if testForOptions (...): shellExecute = echoOnly Daniel