Command Examples

GET Command

The following example is for a GET command with absolute paths and destination filename specified:

$ uftp -host ftp://sb-l23-x64 -user test -pwd test -f /home/build1/workspaces/ftp-client/GET_Command

Command file contents:

-cmd GET -src /qa/durability_export/readme -dst /home/build1/workspaces/ftp-client/uftp/GET_test

PUT Command

The following example is a PUT command with relative paths and using source filename in destination:

$ uftp -host ftp://sb-l23-x64 -user test -pwd test -f /home/build1/workspaces/ftp-client/PUT_Command

Command file contents:

-cmd PUT -src uftp/put_test -dst durability_export

MGET (Wildcard)

The following example is for an MGET wildcard command with no paths:

$ uftp -host ftp://sb-l23-x64 -user test -pwd test -f /home/build1/workspaces/ftp-client/MGET_Command_Wildcard

Command file contents:

-cmd MGET -src ?mit.???*

MGET (Regular Expression)

The following example is for an MGET Regular Expression command with absolute paths:

$ uftp -host ftp://sb-123-x64 -user test -pwd test -cmd MGET -src /qa/sA-Cstore.d(b|b.orig) -dst /home/build1/workspaces/ftp-client -regex

MPUT (Wildcard)

The following example is for an MPUT Wildcard command with relative paths:

$ uftp -host ftp://sb-l23-x64 -user test -pwd test -f /home/build1/workspaces/ftp-client/MPUT_Command_Wildcard

Command file contents:

-cmd MPUT -src ftp-client/uftp/?mit.???* -dst qa

MPUT (Regular Expression)

The following example is for an MPUT Regular Expression command with no paths:

$ uftp -host ftp://sb-l23-x64 -user test -pwd test -f /home/build1/workspaces/ftp-client/MPUT_Command_Regex

Command file contents:

-cmd MPUT -src r-tmit.(script|transaction) -regex

DELETE

The following example is for a DELETE command with an absolute path:

$ uftp -f /home/build1/workspaces/ftp-client/FTP_DELETE_Command

Command file contents:

-host ftp://sb-l23-x64 -src /qa/durability_export/ftp-client_test_file -user test -password test -cmd DELETE

MDELETE (Wildcard)

The following example is for an MDELET Wildcard command with a relative path:

$ uftp -f /home/build1/workspaces/ftp-client/FTP_MDELETE_Command_Wildcard

Command file contents:

-host ftp://sb-l23-x64 -src durability_export/?mit.???* -user test -password test -cmd MDELETE

MDELETE (Regular Expression)

The following example is for an MDELETE Regular Expression command with no path:

$ uftp -f /home/build1/workspaces/ftp-client/FTP_MDELETE_Command

Command file contents:

-host ftp://sb-l23-x64 -src r-tmit.(script|transaction) -user test -password test -cmd MDELETE -regex

MKDIR

The following example is for an MKDIR command with an absolute path:

$ uftp -f /home/build1/workspaces/ftp-client/FTP_MKDIR_Command

Command file contents:

-host ftp://sb-l23-x64 -src /qa/durability_export/ftp-client/ -user test -password test -cmd MKDIR

RMDIR

The following example is for a RMDIR command with a relative path:

$ uftp -f /home/build1/workspaces/ftp-client/FTP_RMDIR_Command

Command file contents:

-host ftp://sb-l23-x64 -src ftp-client/ -user test -password test -cmd RMDIR

LIST

The following example is for a LIST command with no path:

$ uftp -host ftp://sb-l23-x64 -user test -pwd test -cmd LIST