---
name: "gen-adapter"
section: "1"
platform: "linux"
package: "xt-toolbus"
version: "0.25-2"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/gen-adapter"
---

# gen-adapter(1)

Execute an arbitrary Unix command as tool

## NAME

gen-adapter - Execute an arbitrary Unix command as tool

## SYNOPSIS

**gen-adapter** \[ **-help** \] \[ **-keepnewline** \] \[ **-addnewline** \] \[ **-string-output** \] \[ **-binary-output** \] \[ **-term-output** \] \[ **-cmd** *C1 ...* \]

## DESCRIPTION

This manual page briefly describes the **gen-adapter** commands.

## OPTIONS

- **-help**

  print a description of all arguments and exit

- **-keepnewline**

  keep the last newline character in the output generated by the command. Without this argument, tha last newline character is always removed

- **-addnewline**

  always add a newline character ti the standard input fot the command

- **-string-output**

  return the output of the command as string (type: "str"). When no output format has ben specified, -string-output is used.

- **-binary-output**

  return the output of command as a binary string(type: "bstr").

- **-term-output**

  return the output of the command as term(type: "term")

## SEE ALSO

[toolbus(1)](/toolbus/1.md), [perl-adapter(1)](/perl-adapter/1.md), [tifstoc(1)](/tifstoc/1.md)

## AUTHOR

This manual page was written by Julien LEMOINE \<speedblue@debian.org\>. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts.
