Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Run and/or download code directly from perlmonk nodes.

by diotalevi (Canon)
on Aug 20, 2003 at 22:55 UTC ( #285317=note: print w/ replies, xml ) Need Help??


in reply to Run and/or download code directly from perlmonk nodes.

Most of the time I just use an even simpler shell script and redirect to whatever I feel needs the code. So `pmget 153861 | perl` would download the code from your node and just run it.

#!/bin/sh lynx -source "http://www.perlmonks.org/index.pl?displaytype=displaycod +e&node=$1"

Updated to add the displaytype=displaycode. I was typing it from memory and forgot that part. Oops!


Comment on Re: Run and/or download code directly from perlmonk nodes.
Download Code
Re: Re: Run and/or download code directly from perlmonk nodes.
by eric256 (Parson) on Aug 20, 2003 at 23:12 UTC

    maybe i'm crazy...but wouldn't that get all the source... including the tables etc?

    ___________
    Eric Hodges
Re: Re: Run and/or download code directly from perlmonk nodes.
by Dog and Pony (Priest) on Aug 21, 2003 at 00:37 UTC
    Heh. Suddenly this old node pops up and has a reply. :)

    Anyhow, almost any problem has multiple solutions, as usual. Yours doesn't work, for one thing - but that is a typo, right? ;-) Missing a &displaytype=displaycode if I read it correctly, I did not try it.

    With the typo fixed, I suppose it does (some of) the same job nicely, as long as one has lynx installed. I seem to recall that this script scratched an itch on Windows (which has lynx available if needs be), but mainly, all those scripts written and posted in those days was to learn and have fun.

    Fun to be reminded of the things one once did. :)


    You have moved into a dark place.
    It is pitch black. You are likely to be eaten by a grue.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://285317]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2014-08-22 20:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (164 votes), past polls