Differences

This shows you the differences between the selected revisions of the page.

2011-07-31 2011-08-16
~~NOINDEX~~ (martin) scriptcommand_* (martin)
Line 81: Line 81:
Downloads one or more files from remote directory to local directory. If only one parameter is specified downloads the file to local working directory. If more parameters are specified, all except the last one specify set of files to download. The last parameter specifies target local directory and optionally [[operation_mask|operation mask]] to store file(s) under different name. Destination directory must end with backslash. Filename can be replaced with [[file_mask|wildcard]] to select multiple files. To download more files to current working directory use ''.\'' as the last parameter. Downloads one or more files from remote directory to local directory. If only one parameter is specified downloads the file to local working directory. If more parameters are specified, all except the last one specify set of files to download. The last parameter specifies target local directory and optionally [[operation_mask|operation mask]] to store file(s) under different name. Destination directory must end with backslash. Filename can be replaced with [[file_mask|wildcard]] to select multiple files. To download more files to current working directory use ''.\'' as the last parameter.
-Use [[script_commands#option|option]] command to set [[transfer_settings|transfer options]].+Use [[scriptcommand_option|option]] command to set [[transfer_settings|transfer options]].
Alias: ''recv'' Alias: ''recv''
Line 94: Line 94:
| ''-speed=<kibps>''      | Limit transfer speed | | ''-speed=<kibps>''      | Limit transfer speed |
-Effective [[script_commands#option|options]]: ''transfer'', ''confirm'', ''exclude'', ''include'', ''reconnecttime''+Effective [[scriptcommand_option|options]]: ''transfer'', ''confirm'', ''exclude'', ''include'', ''reconnecttime''
XML Log Elements: ''[[logging_xml#download|download]]'', ''[[logging_xml#rm|rm]]'' (with ''-delete'') XML Log Elements: ''[[logging_xml#download|download]]'', ''[[logging_xml#rm|rm]]'' (with ''-delete'')
Line 107: Line 107:
</code> </code>
-See also ''[[script_commands#synchronize|synchronize]]'' if you need to transfer modified or non-existing files only.+See also ''[[scriptcommand_synchronize|synchronize]]'' if you need to transfer modified or non-existing files only.
===== help ===== ===== help =====
Line 140: Line 140:
| ''-speed=<kibps>''      | Limit transfer speed | | ''-speed=<kibps>''      | Limit transfer speed |
-Effective [[script_commands#option|options]]: ''transfer'', ''exclude'', ''include'', ''reconnecttime''+Effective [[scriptcommand_option|options]]: ''transfer'', ''exclude'', ''include'', ''reconnecttime''
XML Log Elements: ''[[logging_xml#upload|upload]]'', ''[[logging_xml#touch|touch]]'', ''[[logging_xml#chmod|chmod]]'' (with ''-permissions''), ''[[logging_xml#rm|rm]]'' (with ''-delete'') XML Log Elements: ''[[logging_xml#upload|upload]]'', ''[[logging_xml#touch|touch]]'', ''[[logging_xml#chmod|chmod]]'' (with ''-permissions''), ''[[logging_xml#rm|rm]]'' (with ''-delete'')
Line 283: Line 283:
| ''echo''        | ''%%on|off%%'' \\ Toggles echoing of command being executed. \\ Commands affected: all | | ''echo''        | ''%%on|off%%'' \\ Toggles echoing of command being executed. \\ Commands affected: all |
| ''batch''      | ''%%on|off|abort|continue%%'' \\ Toggles batch mode (all prompts are automatically replied negatively). When ''on'', it is recommended to set ''confirm'' to ''off'' to allow overwrites. With ''abort'' script is aborted when any error occurs. With ''continue'' all errors are ignored. \\ Commands affected: nearly all | | ''batch''      | ''%%on|off|abort|continue%%'' \\ Toggles batch mode (all prompts are automatically replied negatively). When ''on'', it is recommended to set ''confirm'' to ''off'' to allow overwrites. With ''abort'' script is aborted when any error occurs. With ''continue'' all errors are ignored. \\ Commands affected: nearly all |
-| ''confirm''    | ''%%on|off%%'' \\ Toggles confirmations (overwrite, etc.). \\ Commands affected: ''[[script_commands#get|get]]'', ''[[script_commands#put|put]]'' | +| ''confirm''    | ''%%on|off%%'' \\ Toggles confirmations (overwrite, etc.). \\ Commands affected: ''[[scriptcommand_get|get]]'', ''[[scriptcommand_put|put]]'' | 
-| ''transfer''    | ''%%binary|ascii|automatic%%'' \\ [[transfer_mode|Transfer mode]]: binary, ascii (text), automatic (by extension). \\ Commands affected: ''[[script_commands#get|get]]'', ''[[script_commands#put|put]]'', ''[[script_commands#synchronize|synchronize]]'', ''[[script_commands#keepuptodate|keepuptodate]]'' | +| ''transfer''    | ''%%binary|ascii|automatic%%'' \\ [[transfer_mode|Transfer mode]]: binary, ascii (text), automatic (by extension). \\ Commands affected: ''[[scriptcommand_get|get]]'', ''[[scriptcommand_put|put]]'', ''[[scriptcommand_synchronize|synchronize]]'', ''[[scriptcommand_keepuptodate|keepuptodate]]'' | 
-| ''exclude'' \\ ''include''    | ''%%clear | <mask>[;<mask2>...]%%'' \\ Sets [[ui_transfer#other_options|exclusion or inclusion]] [[file_mask|masks]] (only one can be set at time). \\ Commands affected: ''[[script_commands#get|get]]'', ''[[script_commands#put|put]]'', ''[[script_commands#synchronize|synchronize]]'', ''[[script_commands#keepuptodate|keepuptodate]]'' | +| ''exclude'' \\ ''include''    | ''%%clear | <mask>[;<mask2>...]%%'' \\ Sets [[ui_transfer#other_options|exclusion or inclusion]] [[file_mask|masks]] (only one can be set at time). \\ Commands affected: ''[[scriptcommand_get|get]]'', ''[[scriptcommand_put|put]]'', ''[[scriptcommand_synchronize|synchronize]]'', ''[[scriptcommand_keepuptodate|keepuptodate]]'' | 
-| ''reconnecttime''    | ''%%off | <sec>%%'' \\ Sets time limit in seconds to try reconnecting broken sessions. \\ Commands affected: ''[[script_commands#get|get]]'', ''[[script_commands#put|put]]'', ''[[script_commands#synchronize|synchronize]]'', ''[[script_commands#keepuptodate|keepuptodate]]'' |+| ''reconnecttime''    | ''%%off | <sec>%%'' \\ Sets time limit in seconds to try reconnecting broken sessions. \\ Commands affected: ''[[scriptcommand_get|get]]'', ''[[scriptcommand_put|put]]'', ''[[scriptcommand_synchronize|synchronize]]'', ''[[scriptcommand_keepuptodate|keepuptodate]]'' |
Aliases: ''ascii'' (for ''option transfer ascii''), ''binary'' (for ''option transfer binary'') Aliases: ''ascii'' (for ''option transfer ascii''), ''binary'' (for ''option transfer binary'')
Line 309: Line 309:
If only one parameter is specified uploads the file to remote working directory. If more parameters are specified, all except the last one specify set of files to upload. The last parameter specifies target remote directory and optionally [[operation_mask|operation mask]] to store file(s) under different name. Destination directory must end with slash. Filename can be replaced with Windows wildcard ((Windows wildcard supports ''*'' and ''?'' only. It does not support all the features of [[file_mask|file masks]].)) to select multiple files. To upload more files to current working directory use ''./'' as the last parameter. If only one parameter is specified uploads the file to remote working directory. If more parameters are specified, all except the last one specify set of files to upload. The last parameter specifies target remote directory and optionally [[operation_mask|operation mask]] to store file(s) under different name. Destination directory must end with slash. Filename can be replaced with Windows wildcard ((Windows wildcard supports ''*'' and ''?'' only. It does not support all the features of [[file_mask|file masks]].)) to select multiple files. To upload more files to current working directory use ''./'' as the last parameter.
-Use [[script_commands#option|option]] command to set [[transfer_settings|transfer options]].+Use [[scriptcommand_option|option]] command to set [[transfer_settings|transfer options]].
Switches: Switches:
Line 324: Line 324:
Alias: ''send'' Alias: ''send''
-Effective [[script_commands#option|options]]: ''transfer'', ''confirm'', ''exclude'', ''include'', ''reconnecttime''+Effective [[scriptcommand_option|options]]: ''transfer'', ''confirm'', ''exclude'', ''include'', ''reconnecttime''
XML Log Elements: ''[[logging_xml#upload|upload]]'', ''[[logging_xml#chmod|chmod]]'' (with ''-permissions''), ''[[logging_xml#touch|touch]]'' (with ''-preservetime'') XML Log Elements: ''[[logging_xml#upload|upload]]'', ''[[logging_xml#chmod|chmod]]'' (with ''-permissions''), ''[[logging_xml#touch|touch]]'' (with ''-preservetime'')
Line 337: Line 337:
</code> </code>
-See also ''[[script_commands#synchronize|synchronize]]'' if you need to transfer modified files only.+See also ''[[scriptcommand_synchronize|synchronize]]'' if you need to transfer modified files only.
===== pwd ===== ===== pwd =====
Line 407: Line 407:
| ''-speed=<kibps>''      | Limit transfer speed | | ''-speed=<kibps>''      | Limit transfer speed |
-Effective [[script_commands#option|options]]: ''transfer'', ''exclude'', ''include'', ''reconnecttime''+Effective [[scriptcommand_option|options]]: ''transfer'', ''exclude'', ''include'', ''reconnecttime''
XML Log Elements: ''[[logging_xml#download|download]]'' (with ''local'' or ''both''), ''[[logging_xml#upload|upload]]'' (with ''remote'' or ''both''), ''[[logging_xml#touch|touch]]'' (with ''remote'' or ''both''), ''[[logging_xml#chmod|chmod]]'' (with ''remote'' or ''both'' and ''-permissions''), ''[[logging_xml#rm|rm]]'' (with ''remote'' and ''-delete'') XML Log Elements: ''[[logging_xml#download|download]]'' (with ''local'' or ''both''), ''[[logging_xml#upload|upload]]'' (with ''remote'' or ''both''), ''[[logging_xml#touch|touch]]'' (with ''remote'' or ''both''), ''[[logging_xml#chmod|chmod]]'' (with ''remote'' or ''both'' and ''-permissions''), ''[[logging_xml#rm|rm]]'' (with ''remote'' and ''-delete'')