Changes between Version 1 and Version 2 of GetFile
- Timestamp:
- Apr 25, 2007, 8:59:48 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GetFile
v1 v2 3 3 A persistent file can be retrieved from a specific host. This can be done using the function 4 4 5 6 5 {{{ 7 6 get_file(int host_id, const char* file_name) 8 7 }}} 9 or the command line program (run in the project root dir)10 8 9 or the command line program (run in the project root dir) 11 10 12 11 {{{ 13 12 get_file -host_id X -file_name Y 14 13 }}} 15 This program must be run in the project's root directory. get_file() creates a result with a name of the form:16 14 15 This program must be run in the project's root directory. get_file() creates a result with a name of the form: 17 16 18 17 {{{ 19 18 get_FILENAME_HOSTID_TIME 20 19 }}} 21 20 Example: get_test.mpg_34_123456789 is a result representing the upload of test.mpg from host number 34 at time 1234567891. 22 21 23 22 An upload message is created for the specific host and added to the msg_to_host table in the database. This message instructs the client to upload the file and acknowledge a successful upload. The upload message included in the next RPC reply to the host. The message has the form: 24 25 23 26 24 {{{ … … 44 42 </workunit> 45 43 }}} 46 44 Include 47 45 {{{<msg_to_host/>}}} 48 46 in config.xml. Currently 49 47 {{{<ignore_upload_certificates/>}}} 50 48 needs to be included as there is no way to send upload certificates with these files.