Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Running Shell Command #115

Closed
bhavinkamani opened this Issue May 20, 2012 · 9 comments

Comments

Projects
None yet
6 participants

Hi,

Is it possible to run a shell command. I am using casperjs to scrape certain web sites. As part of scraping I am taking secret token from the user through stdin. I would like to hide the echo while user enters the token. For this I need to run a system shell command.

Thanks for the wonderful library. That made my work very easy.

Edit: PhantomJS related issue

Owner

n1k0 commented May 22, 2012

I honestly have no idea how I could achieve that. Is it already possible using plain phantomjs?

I searched on phantomjs forums. I did see a mention of system module under development. However, I did not see mention of this functionality. Just wanted to check if anyone here has any idea. I have posed the same question in phantomjs forum.

Owner

n1k0 commented May 22, 2012

Thanks. I'm not closing the issue as I'll probably implement the feature when it will be available in PhantomJS.

@n1k0 n1k0 closed this May 27, 2012

dmitris commented Mar 21, 2013

Do you know if it is possible now with phantomjs?

Contributor

lizjulien commented Oct 8, 2013

ping
follow ariya/phantomjs#11457

Owner

n1k0 commented Oct 8, 2013

I'm not working on it atm, but I'd warmly welcome any help on this front.

Contributor

clochix commented Oct 8, 2013

Here is a sample code to call a shell script https://gist.github.com/clochix/6882184 (feel free to add it to the list of code snippets)

Owner

n1k0 commented Oct 8, 2013

@clochix could you please add it yourself? definitely useful, and I definitely need help :) thanks!

edit: I mean the snippets wiki page

Owner

mickaelandrieu commented Oct 8, 2013

@clochix brillant !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment