| Author |
run a remote command
|
|
|
| I would like to use VFP on A machine to run a command on B machine.
How can I achieve it?
| |
| Cindy Winegarden 2005-09-01, 8:26 pm |
| Hi Kam,
I'm a little unclear on what you're trying to do. Do you want a VFP
application on one machine to call an application or program on another
machine? Just include the path when you call the other app.
Do X:\MyPath\MyApp.app && .exe, .fxp
--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
cindy_winegarden@msn
.com www.cindywinegarden.com
Blog: http://spaces.msn.com/members/cindywinegarden
"Kam" <Kam@discussions.microsoft.com> wrote in message
news:F775121E-1DD5-4B60-B2B1- 1055B6625332@microso
ft.com...
>I would like to use VFP on A machine to run a command on B machine.
> How can I achieve it?
| |
|
| Cindy,
I would like to have a VFP program work as a control centre.
If the user submit any request, the machine A will find the available PC/
right PC to run the process/Program. (i.e. .exe/.bat or start services)).
So the control PC "Machine A" must be able to run a remote command on others
PC.
I wish it is clear about what I want to achieve
"Cindy Winegarden" wrote:
> Hi Kam,
>
> I'm a little unclear on what you're trying to do. Do you want a VFP
> application on one machine to call an application or program on another
> machine? Just include the path when you call the other app.
>
> Do X:\MyPath\MyApp.app && .exe, .fxp
>
> --
> Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
> cindy_winegarden@msn
.com www.cindywinegarden.com
> Blog: http://spaces.msn.com/members/cindywinegarden
>
>
> "Kam" <Kam@discussions.microsoft.com> wrote in message
> news:F775121E-1DD5-4B60-B2B1- 1055B6625332@microso
ft.com...
>
>
>
| |
| Stefan Wuebbe 2005-09-02, 11:25 am |
|
"Kam" <Kam@discussions.microsoft.com> schrieb im Newsbeitrag
news:4E43B4F8-79BA-4FAD-A148- 20DA8E39DFF3@microso
ft.com...
> Cindy,
> I would like to have a VFP program work as a control centre.
> If the user submit any request, the machine A will find the available PC/
> right PC to run the process/Program. (i.e. .exe/.bat or start services)).
>
> So the control PC "Machine A" must be able to run a remote command on others
> PC.
A native FoxPro way might be to let each client read a shared
messages.DBF or flag files frequently using timer objects.
hth
-Stefan
--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------
| |
|
| can I do it buy submitting a remote command?
"Stefan Wuebbe" wrote:
>
> "Kam" <Kam@discussions.microsoft.com> schrieb im Newsbeitrag
> news:4E43B4F8-79BA-4FAD-A148- 20DA8E39DFF3@microso
ft.com...
>
> A native FoxPro way might be to let each client read a shared
> messages.DBF or flag files frequently using timer objects.
>
>
> hth
> -Stefan
>
>
>
> --
> |\_/| ------ ProLib - programmers liberty -----------------
> (.. ) Our MVPs and MCPs make the Fox run....
> - / See us at www.prolib.de or www.AFPages.de
> -----------------------------------------------------------
>
>
>
| |
| Stefan Wuebbe 2005-09-05, 10:03 am |
|
"Kam" <Kam@discussions.microsoft.com> schrieb im Newsbeitrag
news:B2BCAB20-1EDE-4540-8BF0- F99F049ED67A@microso
ft.com...
> can I do it buy submitting a remote command?
A running VFP.exe with a GUI does not listen to remote
commands natively. IMO, it would not be trivial to implement
such an approach.
(If I had to do so, my keywords for further invetigation would
probably be the VFP "COM Server" abilities, VFP9 BindEvent()
with Windows messages or maybe "named pipes".)
hth
-Stefan
--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------
| |
| Gerhard Gentele 2005-10-27, 8:34 am |
| I have done it two different ways always using a timer.
First way: From PC A copy a file to PC B for example named "UPDATE.BAT"
on PC B have a PRG running that is looking frequently for any files in this
directory. If there is any - execute it via a shell().
Second way: Do the same but use a DBF on a location both PCs have access to.
Greetings: Gerhard
"Kam" <Kam@discussions.microsoft.com> schrieb im Newsbeitrag
news:F775121E-1DD5-4B60-B2B1- 1055B6625332@microso
ft.com...
>I would like to use VFP on A machine to run a command on B machine.
> How can I achieve it?
| |
|
| it can be done with DCOM, but not trivial.
also not the right way to do it, since you dont want to hard code into
an application to look for another specific process or machine.
the better design is to "publish" or "broadcast" your request and any
valid "listeners" will respond to it! this way it is scalable!
Kam wrote:[color=darkred
]
> can I do it buy submitting a remote command?
>
> "Stefan Wuebbe" wrote:
>
>
|
|
|
|