GLOBUS ENDPOINT LOCAL-ID
DESCRIPTION
Look for data referring to a local installation of Globus Connect Personal software and display the associated endpoint ID.
This operates by looking for Globus Connect Personal data in the current user’s home directory.
OPTIONS
- --personal
-
Use local Globus Connect Personal endpoint (default)
- -v, --verbose
-
Control level of output, make it more verbose.
- --quiet
-
Suppress non-essential output. This is higher precedence than
--verbose
. - -h, --help
-
Show this message and exit.
EXAMPLES
Do a Globus ls command on the current local endpoint.
$ globus ls "$(globus endpoint local-id)"':/~/'
On the assumption that the default directory for Globus Connect Personal is the user’s homedir, list files in the current working directory via Globus:
#!/bin/bash
# NOTE: this script only works in subdirs of $HOME
if [[ $PWD/ != $HOME/* ]]; then
echo "Only works in homedir" >&2
exit 1
fi
# get the CWD as a path relative to the homedir
dir_to_ls=${PWD/#$HOME/'~'}
ep_id="$(globus endpoint local-id)"
globus ls "${ep_id}:/${dir_to_ls}"
EXIT STATUS
0 on success.
1 if an error occurred.
2 if the command was used improperly.
3 if the command was used on the wrong type of object, e.g. a collection command used on an endpoint.
4 if the command has authentication or authorization requirements which were not met, as in ConsentRequired errors or missing logins.