diff options
| author | Adam Soltys <[email protected]> | 2013-02-27 20:12:18 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2013-02-27 20:12:29 -0800 |
| commit | 93a437fe56e53f670bfc883605d95ecd4ddfc9dc (patch) | |
| tree | 89e2f0a080986c6ebdef8b173ea6a90385d24af9 /app.coffee | |
| parent | 0b486c8c55060be71d9a97c79b5f5b32ea69d30c (diff) | |
| download | coinos-server-93a437fe56e53f670bfc883605d95ecd4ddfc9dc.tar.gz coinos-server-93a437fe56e53f670bfc883605d95ecd4ddfc9dc.zip | |
Change exec command
Diffstat (limited to 'app.coffee')
| -rw-r--r-- | app.coffee | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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, '<br />'), - js: (-> global.js), - css: (-> global.css) - ) + res.write(out) + res.end() ) ) |
