From 93a437fe56e53f670bfc883605d95ecd4ddfc9dc Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 27 Feb 2013 20:12:18 -0800 Subject: Change exec command --- app.coffee | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'app.coffee') diff --git a/app.coffee b/app.coffee index d27fd803..dbd50851 100644 --- a/app.coffee +++ b/app.coffee @@ -59,15 +59,14 @@ app.get('/deposit', (req, res) -> ) -app.get('/exec', (req, res) -> +app.get('/issue/:amount', (req, res) -> exec = require('child_process').exec + +# exec("opentxs sendcheque --myacct issuer --args \"memo \\\"here are your OT bitcoins.\\\" amount #{req.params.amount}\" --args \\\"validfor 2592001\\\"", (err, out, stderr) -> exec("opentxs stat", (err, out, stderr) -> - res.render('main/exec', - out: out.replace(/\n/g, '
'), - js: (-> global.js), - css: (-> global.css) - ) + res.write(out) + res.end() ) ) -- cgit v1.2.3