Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
linux 指令特性, 流程
command1 && command2
command1 的exit code == 0 才會繼續command2
# execute the command with the raw arguments.
return_val = cmd.execute(raw_args)
except Exception, e:
from traceback import print_exception
可以明顯的看到 你在cli程式出錯後 接到exception 沒有送exit code.. 所以流程&&沒用..
def complain(self, msg):
'''Print an error message msg with the name of this program to stderr.'''
print >> sys.stderr, '%s: %s' % (self.name, msg)
The text was updated successfully, but these errors were encountered:
fixed with commit bdc2fca. Thanks for reminder.
Sorry, something went wrong.
No branches or pull requests