run StafProc.exe on both machines
create an xml file with the following contents
*xyz.xml*
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE stax SYSTEM "stax.dtd">
<stax>
<defaultcall function="Main"/>
<function name = "Main">
<sequence>
*<stafcmd>
<location>'remoteMachine'</location>
<service>'PROCESS'</service>
<request>'START COMMAND notepad'</request>
</stafcmd>
* <if expr="*RC* != STAFRC.Ok">
<log message="1"> 'Starting Notepad failed with RC=%s
STAFResult=%s' % (*RC*, *STAFResult*) </log>
</if>
</sequence>
</function>
</stax>
select the follwing file in STAXMonitor on host machine and run it.
the notepad wil be opened on your remote machine.
set the trust level of both the machines in staf.cfg file on both machines
to 5.
--
Thanks and Regards,
Sunny
On Wed, Sep 22, 2010 at 12:10 PM, fazal waseem <fazal.was...@gmail.com>wrote:
> Thanks sunny
>
> Can you guide me on how to write these commands and execute them.
>
>
>
> On Wed, Sep 22, 2010 at 3:59 PM, sunny arora <sunnyaror...@gmail.com>wrote:
>
>> Hi,
>>
>> you can do the same as below:
>>
>> *<stafcmd>
>> <location>'remoteMachine'</location>
>> <service>'PROCESS'</service>
>> <request>'START COMMAND notepad'</request>
>> </stafcmd>
>> *<if expr="*RC* != STAFRC.Ok">
>> <log message="1"> 'Starting Notepad failed with RC=%s STAFResult=%s'
>> % (*RC*, *STAFResult*) </log>
>> </if>
>>
>> Thanks and Regards,
>> Sunny
>>
>> On Wed, Sep 22, 2010 at 11:16 AM, fazal waseem <fazal.was...@gmail.com>wrote:
>>
>>> Hi,
>>>
>>> I am pretty new to use STAF. My requirements is such that I want to
>>> remotely open a notepad in another machine so that I can learn the framework
>>> functioning. Can someone help me on how to do it.
>>>
>>> Thanks,
>>> Waseem
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Start uncovering the many advantages of virtual appliances
>>> and start using them to simplify application deployment and
>>> accelerate your shift to cloud computing.
>>> http://p.sf.net/sfu/novell-sfdev2dev
>>> _______________________________________________
>>> staf-users mailing list
>>> staf-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/staf-users
>>>
>>>
>>
>>
>> --
>>
>>
>
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users