“退出状态 1”是什么意思?在 ScraperWiki 中的意思是,这是失败吗?
用户从爬虫运行中收到此消息。
Run succeeded: - ran 1 times, most recently for 2073 seconds (288
scraped pages, 2 records) 17:45, 5 May 2011 Hide Details
EXECUTIONSTATUS: uml=uml003
runid=1304613933.039043_3bf3b898b74f46d9e85aa2189ce9e1ee2c7a328c
EXECUTIONSTATUS: 2071 seconds elapsed, 142 CPU seconds used, exit status 1
什么是“退出状态 1”?这是成功还是失败?如果它是一个
失败了,有日志文件吗?
A user was getting this message from a scraper run.
Run succeeded: - ran 1 times, most recently for 2073 seconds (288
scraped pages, 2 records) 17:45, 5 May 2011 Hide Details
EXECUTIONSTATUS: uml=uml003
runid=1304613933.039043_3bf3b898b74f46d9e85aa2189ce9e1ee2c7a328c
EXECUTIONSTATUS: 2071 seconds elapsed, 142 CPU seconds used, exit status 1
What is "exit status 1"? Is that a success or a failure? If it's a
failure, is there a log file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“退出状态”只是 Ruby 脚本的 Unix 风格退出状态的显示。
例如,如果您从 Ruby 脚本执行“exit 73”,它将显示退出状态 73。
在 Unix 中,0 表示没有错误,因此 1 确实表示某种错误或行为不正确。
日志系统只是使用 print(或更有用的是,puts)语句。您将能够在计划运行的历史记录窗口中看到这一点,或者在开发中运行时在控制台中看到这一点。
The "exit status" is just a display of the Unix-style exit status of the Ruby script.
e.g. If you did "exit 73" from a Ruby script, it would display exit status 73.
In Unix, 0 means no error, so 1 does mean an error of some sort, or something behaving incorrectly.
The logging system is simply to use print (or more usefully, puts) statements. You'll be able to see this in the history window for scheduled runs, or in the console while running in development.