Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
client-server/README.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
30 lines (29 sloc)
590 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A remote shell program in C. For an academic project. If you need a remote shell, please use ssh. | |
To Run: | |
1. download/fork repo | |
2. go into repo | |
```shell | |
cd client-server | |
``` | |
3. Run the Makefile | |
```shell | |
make | |
``` | |
if Makefile fails run: | |
```shell | |
gcc -o client client.c | |
gcc -o server server.c | |
``` | |
4. Find location of bash | |
```shell | |
which bash | |
``` | |
6. start the server | |
```shell | |
./server <filepath to bash> | |
``` | |
7. open another terminal and run client | |
```shell | |
./client | |
``` | |
8. You can run any bash commands like ls, cat, and grep in the client and the server will return the result of the command |