Is there a way to put a string like this into a shell script to run the javascript? I want to pipe it to cURL after the string is generated
javascript:echo("some-site.org/get?id=JCqwurtdkcA&h="+info.h+"&r="+tstamp());
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are several options for running javascript from the command-line. If you just want Javascript by itself, then node.js is the popular option. For a full “browser” environment which is controlled by javascript on the command-line, try PhantomJS.