# File to Job Transfers

You can use the cfsend or cfrecv command to send or receive a file and run it as a job remotely or locally.

To perform a file to job transfer, you have to set the TransferType parameter to J (J stands for job). This parameter can be set on the command line or in templates.

File to job transfers can be performed in either direction. You can receive a file from a remote system and run it locally, or send a file to a remote system and run it remotely. The file name can be either local or remote, depending on transfer directions.

- If you receive a file from a remote system and run it in the local system, specify only the name of the remote file, which is an executable file. You do not have to specify a local file name because the output is not written to any local file.
- If you send a file to a remote system and run it in the remote system, specify only the local file name, which is an executable file. You do not have to specify a remote file name because the output is not written to any remote file.

## Examples: File to Job Transfers

The following example is a file to job transfer using the cfsend command:

`cfsend lf:/home/usr/job n:LANode trtype:j`

Copyright © 2022. TIBCO Software Inc. All Rights Reserved.