---
name: "bpsendfile"
section: "1"
platform: "linux"
package: "ion"
version: "3.2.1+dfsg-1.1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/bpsendfile"
---

# bpsendfile(1)

Bundle Protocol (BP) file transmission utility

## NAME

bpsendfile - Bundle Protocol (BP) file transmission utility

## SYNOPSIS

**bpsendfile** *own\_endpoint\_ID* *destination\_endpoint\_ID* *file\_name* \[*class\_of\_service*\]

## DESCRIPTION

**bpsendfile** uses *bp\_send()* to issue a single bundle to a designated destination endpoint, containing the contents of the file identified by *file\_name*, then terminates.  The bundle is sent with no custody transfer requested, with TTL of 300 seconds (5 minutes).  When *class\_of\_service* is omitted, the bundle is sent at standard priority; for details of the *class\_of\_service* parameter, see [*bptrace*(1)](/bptrace/1.md).

## EXIT STATUS

- "0"

  **bpsendfile** has terminated.

## FILES

No configuration files are needed.

## ENVIRONMENT

No environment variables apply.

## DIAGNOSTICS

The following diagnostics may be issued to the **ion.log** log file:

- Can't attach to BP.

  **bpadmin** has not yet initialized BP operations.

- Can't open own endpoint.

  Another BP application task currently has *own\_endpoint\_ID* open for bundle origination and reception.  Try again after that task has terminated. If no such task exists, it may have crashed while still holding the endpoint open; the easiest workaround is to select a different source endpoint.

- Can't stat the file

  Operating system error.  Check errtext, correct problem, and rerun.

- bpsendfile can't create file ref.

  Probably an unrecoverable database error, in which case the local ION node must be terminated and re-initialized.

- bpsendfile can't create ZCO.

  Probably an unrecoverable database error, in which case the local ION node must be terminated and re-initialized.

- bpsendfile can't send file in bundle.

  BP system error.  Check for earlier diagnostic messages describing the cause of the error; correct problem and rerun.

## BUGS

Report bugs to \<ion-bugs@korgano.eecs.ohiou.edu\>

## SEE ALSO

[*bprecvfile*(1)](/bprecvfile/1.md), [*bp*(3)](/bp/3.md)
