Permission denied when run casperjs in iron.io

2020-03-26 13:04发布

问题:

I'm testing casperjs in iron.io as this example

https://github.com/iron-io/iron_worker_examples/blob/master/binary/casperjs/googlelinks.js

but when iron_worker complete this task, it gives an error message

./run.sh: 2: ./run.sh: casperjs/bin/casperjs: Permission denied

Any idea on how to fix this?

Thanks

回答1:

in run.sh:

..
chmod +x casperjs/bin/casperjs
..