+ #Lines beginning with # are comments.
+ if(str[0]=="#"): return;
+ #Lines beginning with ! are Python.
+ if(str[0]=="!"):
+ try:
+ exec(str.lstrip('!'));
+ except:
+ print sys.exc_info()[0];
+ return;
+ #Backtick (`) indicates shell commands.
+ if(str[0]=='`'):
+ os.system(str.lstrip('`'));
+ return;
+ #By this point, we're looking at a GoodFET command.