Javier Sega
Javier Sega

Reputation: 93

shell - Pass command line arguments to bash script does not work

I have a .sh script file and specifically the atguments are not going well, and I do not know the reason --engine = slimerjs and - headless

#!/bin/bash
xterm -e /usr/local/bin/casperjs --engine=slimerjs --headless /home/user/file.js

Upvotes: 0

Views: 902

Answers (1)

UtLox
UtLox

Reputation: 4154

Put the command in quotation marks:

#!/bin/bash
xterm -e "/usr/local/bin/casperjs --engine=slimerjs --headless /home/user/file.js"

Upvotes: 0

Related Questions