curl - Is it possible to execute stdout with cscript? -


i'm trying execute code remote repository directly on command line single command. i'm using codepile (https://www.codepile.net) allows raw file access code snippets. vbscript files, right can following:

curl -s http://raw.codepile.net/pile/al9bowz9.vbs > localscript.vbs cscript localscript.vbs del localscript.vbs 

as way of running remote code once , not leaving on pc. hoping do:

curl -s http://raw.codepile.net/pile/al9bowz9.vbs | cscript 

but doesn't work. error "failed writing body". can pipe curl stdout "| print" , see contents of remote file printed in console.

is there way in windows? i've seen examples showing syntax:

cscript <(curl -s http://raw.codepile.net/pile/al9bowz9.vbs) 

but doesn't seem work (the system cannot find file specified)

also, pipe syntax i'd use work other languages (like python instance):

curl -s http://raw.codepile.net/pile/nj4qboy8.py | python 

does print "hello world" console.

thanks help!

no, it's not possible. (padding)


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -