Scripting
Ben Trumbore
Cornell Center for Advanced Computing
Revisions: 8/2022, 10/2019, 9/2018 (original)
When a multi-step task is to be performed repeatedly, it is convenient to build a script that executes those steps so that the task can be run by issuing a single command. If you are using Globus to transfer data to and from your computation resources, it is likely that such a script will include some Globus Command Line Interface (CLI) commands. This section discusses some considerations and techniques for including Globus commands in scripts. All examples are presented as excerpts of a bash script file.
Objectives
After you complete this segment, you should be able to:
- List the advantages of creating a script using Globus CLI commands
- Explain the purpose of endpoint activation
- Demonstrate tracking a task's status
- Demonstrate scripting a multifile transfer
Prerequisites
- Complete the basic Globus Data Transfer topic.
- Have a familiarity with basic Linux shell commands, in particular those commands that work with files and folders.