Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added lib/x86_64-linux-gnu/libc.so.6
Binary file not shown.
Binary file added lib64/ld-linux-x86-64.so.2
Binary file not shown.
75 changes: 75 additions & 0 deletions tail/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Python Interpreter

This is the Python interpreter, as an ELF file pulled out from a standard Linux filesystem (Ubuntu 22.04).
It's meant to be used with the binary-compatibility mode of Unikraft.
Comment on lines +1 to +4
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not Python, this is tail.


The contents are:

* `tail`: the binary file
* `test.txt`: a txt file that can be used to test
* `lib/`, `lib64/`: pre-extracted dynamic libraries required to run the server
* `README.md`: this file

## (Re)Extract Dynamic Libraries

You can (re)extract the dynamic libraries required to run the server by using:

```console
../../extract.sh /usr/bin/tail
```

The command output signals the copying of the required dynamic libraries:

```text
Copying /lib/x86_64-linux-gnu/libc.so.6 ...
Copying /lib64/ld-linux-x86-64.so.2 ...
```


## Run tail on Linux

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add wording, something like: "To run tail on Linux, add a test file as an argument:"


```
tail text.txt
```


Comment on lines +35 to +36
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

You'll get the reply:

```text
a
b
c
d
e
f
g
h
i
j

```

## Run HTTP Server with Unikraft
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not an HTTP server.


Make sure you are in the /run-app-elfloader/ directory

```console
./run.sh -d -r ../dynamic-apps/tail/ tail test.txt
```

You'll get the reply:

```text
a
b
c
d
e
f
g
h
i
j
```
Can try with any file
Binary file added tail/lib/x86_64-linux-gnu/libc.so.6
Binary file not shown.
Binary file added tail/lib64/ld-linux-x86-64.so.2
Binary file not shown.
Binary file added tail/tail
Binary file not shown.
10 changes: 10 additions & 0 deletions tail/test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
a
b
c
d
e
f
g
h
i
j