ISTREAM(1)

πŸ“¦ version 5.0.2, in nixos 26.05

πŸŽ€ ISTREAM(1) πŸŽ€

okay so bestie, this is istream β€” an iRODS iCommand, and it is literally here to stream bytes for you. Let’s get into it πŸ’–


🌸 NAME 🌸

istream β€” an iRODS iCommand ✨


✨ SYNOPSIS ✨

istream read [-R RESC_NAME] [-o INTEGER] [-c INTEGER] LOGICAL_PATH

πŸ¦‹ DESCRIPTION πŸ¦‹

The usage vibes are giving:

Usage: istream read [-n REPLICA_NUMBER] [-o INTEGER] [-c INTEGER] LOGICAL_PATH
Usage: istream write [-R RESC_NAME] [-k] [-o INTEGER] [-c INTEGER] [--no-trunc] [-a] LOGICAL_PATH
Usage: istream write [-n REPLICA_NUMBER] [-k] [-o INTEGER] [-c INTEGER] [--no-trunc] [-a] LOGICAL_PATH

Streams bytes to/from iRODS via stdin/stdout. It reads bytes from the target data object and prints them to stdout. It also writes bytes from stdin to the target data object. iconic behavior, no cap πŸ’…

Writing to a non-existent data object will create it by default. Writing to an existing data object always truncates it. Truncation can be disabled by passing --no-trunc. However, using --no-trunc disables creation of data objects. that’s the tradeoff, bestie 😭

😭 heads up: if the client-side of the connection is interrupted before the data object is closed, then the catalog will not be updated and the data object will have a replica status of intermediate or stale. Information such as data object size and checksum will not be available.

If the target data object does not reside on the connected server, istream will not attempt to redirect to the server hosting the replica. Traffic will always flow through the connected server. periodt 🫢


πŸ’… OPTIONS πŸ’…

  • -R, --resource β€” the root resource to read from or write to. Cannot be used with --replica.
  • -n, --replica β€” the replica number of the replica to read from or write to. Replica numbers cannot be used to create new data objects. Cannot be used with --resource.
  • -o, --offset β€” the number of bytes to skip within the data object before reading/writing. Value must be positive. Defaults to zero.
  • -c, --count β€” the number of bytes to read/write. Value must be positive. Defaults to all bytes.
  • -a, --append β€” appends bytes read from stdin to the data object. Implies --no-trunc.
  • --no-trunc β€” does not truncate the data object. Disables creation of data objects. Ignored by write operations when --append is set.
  • -k, --checksum β€” compute checksum.
  • -h, --help β€” prints this message.

πŸ’– xoxo bestie, that’s the whole page. Shoutout to iRODS Version 5.0.2 and istream; the footer source/version is istream iRODS-5.0.2, dated January 1980. slay πŸŽ€βœ¨

πŸ“¦ where this page comes from