-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tail: added tail to dynamic apps #88
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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. | ||||
|
||||
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 | ||||
|
||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add wording, something like: "To run |
||||
|
||||
``` | ||||
tail text.txt | ||||
``` | ||||
|
||||
|
||||
Comment on lines
+35
to
+36
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
a | ||
b | ||
c | ||
d | ||
e | ||
f | ||
g | ||
h | ||
i | ||
j |
There was a problem hiding this comment.
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
.