Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command line control #11

Closed
skibz opened this issue Mar 6, 2015 · 3 comments
Closed

command line control #11

skibz opened this issue Mar 6, 2015 · 3 comments

Comments

@skibz
Copy link

skibz commented Mar 6, 2015

i wrote an awfully simple node script for controlling the icon...

#!/usr/bin/env node

var dgram = require('dgram'),
    anybarSocket = dgram.createSocket('udp4'),
    message = new Buffer(process.argv[2]);

anybarSocket.send(
  message,
  0,
  message.length,
  process.argv[3] || 1738,
  'localhost',
  function() {
    process.exit();
  }
);

if you chmod +x scriptname then you can ./scriptname question or ./scriptname question 1234.

i'm not sure if this is useful for anyone, but i got a little tired of doing echo -n "color" | nc blah blah...

@johntdyer
Copy link

I also created a small client in go ( #12 ), which might be helpful for those people that don't have Node installed.

@justincampbell
Copy link

@tonsky
Copy link
Owner

tonsky commented Mar 7, 2015

Added list of alternative clients to README.md

@tonsky tonsky closed this as completed Mar 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants