Examples: Transfer Using cfsend or cfrecv Command
To perform a file transfer on the command line, you can use the cfsend or cfrecv command with specific parameters and options.
Note: Use the equal sign (=) or the colon (:) to separate the transfer parameters from their values.
The examples below assume that a profile has been configured for the defined node.
- To send a file to a remote system, use the
cfsend command. For example:
cfsend node:NYServer lf:/home/usr/file rf:dataset.name
- To receive a file from a remote system, use the
cfrecv command. For example:
cfrecv node:NYServer lf:/home/usr/file rf:"c:\temp\test.txt"
- To run a command in the background, add an ampersand (&) at the end of the command. For example:
cfrecv n:ParisNode lf:/home/usr/file rf:"c:\temp\test.txt" &
- To log off before a command is completed, add a prefix
nohup
at the beginning of the command. For example:nohup cfrecv n:ParisNode lf:/home/usr/file rf:"c:\temp\test.txt"
- To send screen output of a command to a specific file, add the file path at the end of the command. For example:
cfsend n:LondonNode lf:/home/usr/file rf:dataset.name > /tmp/file 2>&1