Skip to content

Instantly share code, notes, and snippets.

@paulbaumgart
Created September 4, 2010 02:04
Show Gist options
  • Save paulbaumgart/564819 to your computer and use it in GitHub Desktop.
Save paulbaumgart/564819 to your computer and use it in GitHub Desktop.
var OS = require("os");
try
{
OS.command("");
}
catch (e)
{
OS.command = function(command)
{
var newCommand = command + " 2>/dev/null",
process = OS.popen(newCommand),
results = [],
tmpResult;
do
{
tmpResult = process.stdout.read();
results.push(tmpResult);
}
while (tmpResult !== "");
var status = process.wait();
if (status !== 0)
throw new Error("command: \"" + command + "\" returned status: " + status);
return results.join("");
};
}
@darren200709
Copy link

darren200709 commented Nov 22, 2016

how to do this?

@em976935
Copy link

em976935 commented Mar 2, 2017

it is easy

Copy link

ghost commented Nov 18, 2019

how do this

@nils258
Copy link

nils258 commented Sep 20, 2020

comment hacer narwhal ?

@lama-ducat
Copy link

comment faire ?? pour utiliser le script

@gonxkurapika
Copy link

Hacker narwhal

@gonxkurapika
Copy link

hacer narwhal

@gonxkurapika
Copy link

Hacker narwhal

@gonxkurapika
Copy link

hacer narwhal

@gonxkurapika
Copy link

hacer narwhal

@gonxkurapika
Copy link

hacer narwhal hacer narwhal hacer narwhal hacer narwhal hacer narwhal hacer narwhal hacer narwhal hacer narwhal hacer narwhal hacer narwhal

@gonxkurapika
Copy link

hacer narwhal

@gonxkurapika
Copy link

faire

@gonxkurapika
Copy link

How do I get hack code

@10202400
Copy link

Hacker narwhal

@junkbotbossoil
Copy link

what the code

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