#!/usr/bin/env node 'use strict' const net = require('net') const path = require('path') let client = net.connect('7004', '127.0.0.1') client.pipe(process.stdout) client.once('connect', function () { if (process.argv[2]) { client.write('queue.push smart:' + process.argv[2] + '\r\n') } client.end('quit\r\n') })