View previous topic :: View next topic |
Author |
Message |
m_gustafsson Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/486444594471b02c6cc1c6.png)
Joined: 18 Mar 2007 Posts: 243 Location: Sweden
|
Posted: Mon Dec 22, 2008 11:16 pm Post subject: Send messages to DCERouter [Solved] |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
bunder Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
Joined: 10 Apr 2004 Posts: 5947
|
Posted: Tue Dec 23, 2008 1:24 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
m_gustafsson Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/486444594471b02c6cc1c6.png)
Joined: 18 Mar 2007 Posts: 243 Location: Sweden
|
Posted: Tue Dec 23, 2008 7:20 am Post subject: |
|
|
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 ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|