CutyCapt无法正常工作

时间:2012-09-06 08:14:43

标签: segmentation-fault cutycapt

CutyCapt工作得很好,但是很多只有1个网站失败了:

此: xvfb-run --server-args =“ - screen 0,1280x768x24”--auto-servernum / usr / local / bin / CutyCapt --url = http://www.boden.co.uk/ --out = /无功/网络/ screentest / test.png

结果: 分段错误。

有什么想法吗?

这是一个Debian框,如果有帮助的话。

1 个答案:

答案 0 :(得分:0)

我注意到某些页面存在同样的问题。但是,我注意到它“有时”甚至对这些页面也有效。不要问我何时以及为什么:)!因此,我在我的bash脚本中添加了一个循环,该循环尝试多次 - 请参阅下面的代码片段 - 最后放弃。你可能想尝试类似的东西。

try=1
while [[ ! -f tmp.jpg ]]
do
   cutycapt --url=example.org --out=tmp.jpg
   let try=try+1
   if [ $try -gt 100 ]; then
      exit 0
fi
done

希望有所帮助!

相关问题