0

I have a Node Server and I need to call some PhantomJS commands from NodeJS server. Like this command.

phantomjs phantom-server.js http://example.com

I got some answers on this topic on the following question. But it's not so clear what are the arguments I have to pass for that.

Is it possible to run PhantomJS from node.js as a command line argument

In this example there's a line like folloes.

'some other argument (passed to phantomjs script)'

And I can't figure it out what to pass there.

2

1 Answer 1

0

It means that in the childArgs array, other than the path to your phantomjs script, you can also add the arguments required by your script. So if you wanted to execute

phantomjs phantom-server.js http://example.com

you would pass the string 'http://example.com' along with your script's path.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.