https://github.com/willbarkoff/airport
🛫 A simple program for redirecting stdout and stdin to the network.
https://github.com/willbarkoff/airport
Last synced: 5 months ago
JSON representation
🛫 A simple program for redirecting stdout and stdin to the network.
- Host: GitHub
- URL: https://github.com/willbarkoff/airport
- Owner: willbarkoff
- License: mit
- Created: 2020-06-05T23:23:42.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-05T23:55:14.000Z (about 6 years ago)
- Last Synced: 2024-06-20T06:38:46.127Z (almost 2 years ago)
- Language: Go
- Homepage: https://willbarkoff.dev/airport
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Airport
A simple program for redirecting stdout and stdin to network ports.

[](https://github.com/willbarkoff/airport/releases)
[](./LICENSE.md)
- [⬇️ **Download**](https://github.com/willbarkoff/airport/releases)
- [🐛 **Report a bug**](https://github.com/willbarkoff/airport/issues/new)
---
## Examples
> ⚠️ `bash` is used in this example just as a simple program. **You should not use bash or another shell with airport, as it will expose your computer over the network**.
Using airport is super simple. It takes one argument, the command to run. For example:
```shell
$ airport /bin/bash
```
Then, in another terminal window:
```shell
$ nc localhost 8080
cat hello.txt
Hello, world
```
To specify a port, simply use the `address` flag.
```shell
$ airport --address :1234 /bin/bash
```
As of right now, `stdin` and `stdout` are redirected over the network, while `stderr` is output to the local computer's stderr. If you want you can change this with the `--redirectStderr` flag, for example:
```shell
$ airport --address :1234 --redirectStderr /bin/bash
```
## Usage
```shell
$ airport --help
Usage of airport:
-address string
the address to listen on (default ":8080")
-redirectStderr
redirects stderr over the network
```