Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Send messages to DCERouter [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
m_gustafsson
Apprentice
Apprentice


Joined: 18 Mar 2007
Posts: 243
Location: Sweden

PostPosted: Mon Dec 22, 2008 11:16 pm    Post subject: Send messages to DCERouter [Solved] Reply with quote

I have a router running a DCERouter and now I would like to send messages to it from another computer on my LAN via some kind of a script.

I can communicate in two ways with DCERouter.
The first way is to use a web browser and for example the following command would work if written as an address in the browser:
http://192.168.0.101:3451/messagesend?from=1&to=18&response=o&type=1&id=193
The second alternative to communicate is to log in on the router and write,
Code:
/usr/bin/MessageSend localhost 0 18 1 193

which does the same thing as the command sent with the browser. I think MessageSend is an application that comes with LinuxMCE.

So, now I am curious about if there is any application in Gentoo that does what MessageSend does, or if there is any way one can send an HTTP command like the one above with e.g. a perl script.

Many thanks for any ideas or suggestions.


Last edited by m_gustafsson on Tue Dec 23, 2008 7:20 am; edited 1 time in total
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Tue Dec 23, 2008 1:24 am    Post subject: Reply with quote

curl maybe?
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
m_gustafsson
Apprentice
Apprentice


Joined: 18 Mar 2007
Posts: 243
Location: Sweden

PostPosted: Tue Dec 23, 2008 7:20 am    Post subject: Reply with quote

I think curl might be just what I was looking for.
This will do the trick:
Code:
curl "http://192.168.0.101:3451/messagesend?from=1&to=18&response=o&type=1&id=193"

Many thanks :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum