Hi ,

I resolved the problem . I am able to start the vmware as per my
requirements.
The command works  as <command mode="'shell'">'%s %s %s ' % (vmware_root,
start, vmware_name[0]) </command>

Regards
Sangram

On Thu, Aug 20, 2009 at 5:34 PM, Sangram Bakshi <san...@gmail.com> wrote:

> Hi ,
>
> I am trying to start a vmware from a stax job .
>
> From the command line of a windows machine we can start  a vmware by doing
> a:
>
>
> "C:\Program Files\VMware\VMware Workstation\vmrun.exe" start
> "C:\vmware\RedHat\rhel3.vmx"
>
> Considering if i want to start the vmware "C:\vmware\RedHat\rhel3.vmx".
>
>
> Now i want the same to be done from a stax job.
>
> The machine from where i am trying to start the vmware is staf-stax active
> i.e staf runs here .
> Now the code i use is (I am not using the function which is there in the
> STAF faq ,i am simply trying to use the command to start the vmware.)
> somemachine = machine where staf and stax is running already.
>
> <script>
>
>  vmware_name = ['"c:\\vmware\RedHat\rhel3.vmx"']
>  vmware_root = '"c:\\Program Files\VMware\\VMware Workstation\\vmrun.exe"'
>  machList = ['somemachine']
>  start = 'start'
>
> </script>
>
>
>   <paralleliterate var="machName" in="machList" indexvar="i">
>         <process name="'Starting VMware on machine %s.....' % machName">
>               <location>machName</location>
>               <command mode="'shell'">'%s %s %s ' % (vmware_root, start,
> vmware_name) </command>
>         </process>
>     </paralleliterate>
>
>
> Kindly suggest any improvements so that i can start the vmware just by
> giving the command.
>
>
> Regards
> Sangram
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to