0

I've just started to mess around with CasperJS and IronWorker and was first blocked by this error when trying to queue a worker :

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

This issue has already been documented and solved here : Permission denied when run casperjs in iron.io

But using chmod +x doesn't work when I need to launch casperjs with options :

chmod +x casperjs/bin/casperjs example.js --ssl-protocol=any

Resulting in : chmod: unrecognized option '--ssl-protocol=any' for more information.

Is it impossible to pass options to CasperJS in IronWorker ? If so, is there another way to open pages with SSL protection ?

Thx :)

Community
  • 1
  • 1
rafa1986
  • 45
  • 5

1 Answers1

0

chmod only needs a file name as argument - since it modifying file attributes.

Try it:

chmod +x casperjs/bin/casperjs
casperjs/bin/casperjs example.js --ssl-protocol=any
thousandsofthem
  • 1,355
  • 10
  • 9
  • Thanks a lot for your answer ! Made a little difference, but the worker still fails with this error : `chmod: cannot access 'casperjs/bin/casperjs\r': No such file or directory ./run.sh: 2: ./run.sh: casperjs/bin/casperjs: Permission denied` – rafa1986 Feb 16 '15 at 09:30
  • Ok, this last error happened because of line endings in the shell script... Shame on me for using Windows... Answer accepted, thank you thousandsofthem ! – rafa1986 Feb 16 '15 at 09:46