NullLogic

download latest test release of NSP (via http)

#!/usr/bin/nsp /* * the following code performs the same task as: * wget http://nulllogic.ca/files/nsp-current.tar.gz */ if (!net.http.client) { dl.load("net") if (!net.http.client) throw "net.http.client is not a function"; } url="http://nulllogic.ca/files/nsp-current.tar.gz"; hconn=new net.http.client(url); print("\tsucking "+url+"\n"); io.flush(); if (typeof(x=hconn.send())=='table') { print("\t", x.status, "\n"); // system("rm -rf nsp-*"); file.writeall("nsp-current.tar.gz", x.body); // system("tar zxf nsp-current.tar.gz"); }