Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^3: Perl and Javascript

by Corion (Pope)
on Sep 27, 2011 at 07:05 UTC ( #928027=note: print w/replies, xml ) Need Help??

in reply to Re^2: Perl and Javascript
in thread Perl and Javascript

If it is a server, then yes, you will have to make-do with the other solutions (Javascript). I'm currently working on getting nodejs to do the same as WWW::Mechanize::Firefox does, except without the need for a display, but that is still very much a work in progress, so I recommend you look at the other methods.

Alternatively, you could write a small Javascript wrapper for your sso.gen script and call it via node sso.gen-wrapper.js $ARG1 $ARG2 via backticks.

Replies are listed 'Best First'.
Re^4: Perl and Javascript
by mattdeans (Novice) on Sep 27, 2011 at 07:48 UTC
    Oh, when I mean a server, I mean I work in a server, that is , it has no X windows system, so I cannot install firefox.
    My perl script is a client.

      One long-shot alternative is to run Firefox within a virtual X display, like xvfb provides.

      Another, even more long-shot alternative would be to try to compile Firefox without its display components.

      I never tried either, as I have a dedicated machine that runs just Firefox for automation.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928027]
Discipulus open a red wine bottle and ..
Discipulus adds tozzetti alle mandorle to the platter on the sideboard.
[Discipulus]: the most monastic cookie!
[choroba]: Discipulus BTW, I loved Settembrini by Mulino Bianco years ago in Italy

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2017-04-27 10:32 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (503 votes). Check out past polls.