Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/viraptor/libremotec
https://github.com/viraptor/libremotec
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/viraptor/libremotec
- Owner: viraptor
- Created: 2015-02-13T18:08:32.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-25T01:02:50.000Z (almost 10 years ago)
- Last Synced: 2023-03-11T03:57:52.093Z (almost 2 years ago)
- Language: C
- Size: 156 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# libremotec
This is a toy project which provides "real remote execution". That means, operations like accessing the file system (the only one implemented now) can be sent to another host transparently. It uses the `LD_PRELOAD` mechanism to achieve this.
# Compatibility
GCC and Clang work. Only posix'y OSes is supported.
# Example
To run the `cat` application which reads a file from remote location, run the following:
# on remote (file access side)
./server
# on local (cat execution side)
LD_PRELOAD=./libremotec.so LOCAL_PATHS=/dev:/usr/lib REMOTE_SERVER=remote.ip.addr LIBREMOTEC_DEBUG=1 cat /etc/resolv.confThe result should give some idea about what's going on:
open() on remote file /etc/resolv.conf
opened /etc/resolv.conf, local 2048, remote 5
fstat() on remote fd 2048
read() 131072 bytes on remote fd 2048
# Generated by resolvconf
nameserver 192.168.0.1
read() 131072 bytes on remote fd 2048