Changes between Version 52 and Version 53 of WrapperApp


Ignore:
Timestamp:
Jul 12, 2011, 10:44:52 PM (13 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WrapperApp

    v52 v53  
    8888Assume you have an executable program for a particular platform
    8989(say "worker_windows_intelx6_0.exe" for Win32).
    90 The program reads from '''infile''' and writes to '''outfile'''.
     90The program reads from '''in''' and writes to '''out'''.
     91(You can use the program in '''samples/worker/''' for this purpose).
    9192
    9293We assume that you have already [MakeProject created a project]
     
    111112    <task>
    112113        <application>worker</application>
    113         <stdin_filename>stdin</stdin_filename>
    114         <stdout_filename>stdout</stdout_filename>
    115114        <command_line>10</command_line>
    116115    </task>
     
    134133</version>
    135134}}}
    136  * In the 'PROJECT/templates' directory create a workunit template file called 'worker_wu':
     135 * In the 'PROJECT/templates' directory create a workunit template file called 'worker_in':
    137136{{{
    138137<file_info>
     
    149148</workunit>
    150149}}}
    151  and a result template file called 'worker_result'
     150 and a result template file called 'worker_out'
    152151{{{
    153152<file_info>
     
    161160    <file_ref>
    162161        <file_name><OUTFILE_0/></file_name>
    163         <open_name>outfile</open_name>
     162        <open_name>out</open_name>
    164163        <copy_file/>
    165164    </file_ref>
    166165</result>
    167166}}}
    168  * Run [UpdateVersions bin/update_versions] to create an app version and to copy the application files to the 'PROJECT/download' directory.
     167 * Run [UpdateVersions bin/update_versions] to create an app version.
    169168 * Run [StartTool 'bin/start'] to start the daemons.
    170169 * Run a script like
     
    172171#! /bin/sh
    173172cp download/input `bin/dir_hier_path input`
    174 cp download/input2 `bin/dir_hier_path input2`
    175 
    176 bin/create_work -appname worker -wu_name worker_nodelete \
    177 -wu_template templates/worker_wu \
    178 -result_template templates/worker_result \
    179 input input2
     173
     174bin/create_work --appname worker --wu_name worker_nodelete input
    180175}}}
    181176to generate a workunit.