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

How to use cli to post to remote server #106

Closed
el-davo opened this issue Mar 3, 2016 · 6 comments
Closed

How to use cli to post to remote server #106

el-davo opened this issue Mar 3, 2016 · 6 comments
Assignees
Labels

Comments

@el-davo
Copy link

el-davo commented Mar 3, 2016

Hi Sorry for opening another issue. This is more of a general query around the cli use. Is there a way to send a message to a remote server using the cli. for example maybe something like

notify -t title -m message --host=10.74.55.66 --port=23053

@el-davo
Copy link
Author

el-davo commented May 26, 2016

Hello. I still cant get this to work. It seems to always send to localhost. I have installed the latest version and used the cmd below

notify --host 10.73.66.153 --port 23053 -m "test" -t "title"

@mikaelbr
Copy link
Owner

Hi! It hit's me that I've might misunderstood the requirement here. You are trying to pass host and port to a Growl implementation, yes?

@el-davo
Copy link
Author

el-davo commented May 26, 2016

Yes the way i have this setup is i have growl running on a remote server. I then want to send a notification to that server which in turns sends a notification out to all subscribers of that server. But trying the command above i do see a notification bubble on my local machine but not on the remote server

@mikaelbr
Copy link
Owner

I don't have Growl on this machine so I can't test from end-to-end, but when I try running:

notify --host 127.0.0.1 --port 3000 -m Hello

And right before the notification is sent I print out the host and port, I get 127.0.0.1:3000, which is what I expect.

Do you get any error? You are sure you are running node-notifier@4.6.0 (verify by using npm ls node-notifier).

@el-davo
Copy link
Author

el-davo commented May 26, 2016

Yep i have the latest version - 4.6.0. Didn't see any errors either.

I can do some debugging and get back to you.

Also its just the cli im talking about the node implementation works perfecto and have been using it for a long time now!!

@mikaelbr
Copy link
Owner

Would be great if you could do some digging 👍 You could try printing out options in the Growl constructor function, inside checkGrowl in checkGrowl.js and inside notify in the Growly package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants