<ftp-chmod>

Execute a chmod command as an ftp pass-through (necessary on UNITREE, for instance, where ssh connectivity is missing). Uses jglobus Gridftp library.

Takes either a single file URI, or a directory URI; in the latter case, if recursive is true, the entire directory is recursively chmod'd; else only the top level is.

Purpose/Function

Attributes

NAME

TYPE

DEFAULT VALUE

DESCRIPTION

delay

long

30000

pause in milliseconds between retries

dir

java.net.URI

null

directory to chmod (endpoint must support Gridftp)

proxyFile

java.lang.String

null

path to the user's proxy (if not set, uses the default mechanisms for finding the proxy)

permissions

java.lang.String

(required)

chmod argument (three-digit string: [0:7][0:7][0:7])

recursive

boolean

false

= chmod -R

retry

int

2

number of times to retry the command

file

java.net.URI

null

file to chmod (endpoint must support Gridftp)

Elements

None.

ReturnValues

None.

Examples

<ogrescript>
   ...
   <ftp-chmod recursive="true" permissions="755" dir="${MSS.uri}/${FcstID}/WRF"/>
   ...	
</ogrescript>
  • No labels